yingzi %!s(int64=2) %!d(string=hai) anos
pai
achega
37989b6229
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Model/Finance/MReceived.Class.php

+ 2 - 0
Model/Finance/MReceived.Class.php

@@ -592,6 +592,7 @@ class MReceived extends MBaseModel
         // 添加客户往来余额明细,修改客户往来余额
         $result = $this->objMCustomerBalanceDetail->addCustomerBalanceDetail($detailData);
         if (!$result->isSuccess()) {
+            var_dump("添加客户往来[".$receivedData['customerId']."]余额明细错误:");
             $this->objDReceived->rollBack();
             return ResultWrapper::fail($result->getData(), $result->getErrorCode());
         }
@@ -600,6 +601,7 @@ class MReceived extends MBaseModel
         $changedMoney = $receivedData['totalMoney'] > 0 ? -1 * $receivedData['totalFinalMoney'] : abs($receivedData['totalFinalMoney']);
         $result = $this->objMCustomerBalance->addCustomerBalance($receivedData['customerId'], $changedMoney);
         if (!$result->isSuccess()) {
+            var_dump("编辑客户往来[".$receivedData['customerId']."]余额错误:");
             $this->objDReceived->rollBack();
             return ResultWrapper::fail($result->getData(), $result->getErrorCode());
         }