|
|
@@ -82,14 +82,21 @@ class CustomController extends Controller
|
|
|
|
|
|
if ($customSaveDebtAmount != $ghsOrderDebtAmount) {
|
|
|
echo "*********客户 {$customId} 欠款总金额 和 订单总合 不一致 $customSaveDebtAmount $ghsOrderDebtAmount \n";
|
|
|
+
|
|
|
+ echo "已更:".$hdCgOrderDebtAmount.' '.$ghsOrderDebtAmount."\n";
|
|
|
+ \bizHd\ghs\classes\GhsClass::updateById($ghsId, ['debtAmount' => $hdCgOrderDebtAmount]);
|
|
|
+ CustomClass::updateById($customId, ['debtAmount' => $ghsOrderDebtAmount]);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if ($ghsSaveDebtAmount != $hdCgOrderDebtAmount) {
|
|
|
echo "#########欠供应商 {$ghsId} 金额 和 订单总合 不一致 $ghsSaveDebtAmount $hdCgOrderDebtAmount \n";
|
|
|
- }
|
|
|
|
|
|
- //\bizHd\ghs\classes\GhsClass::updateById($ghsId, ['debtAmount' => $hdCgOrderDebtAmount]);
|
|
|
- //CustomClass::updateById($customId, ['debtAmount' => $ghsOrderDebtAmount]);
|
|
|
+ echo "已更:".$hdCgOrderDebtAmount.' '.$ghsOrderDebtAmount."\n";
|
|
|
+ \bizHd\ghs\classes\GhsClass::updateById($ghsId, ['debtAmount' => $hdCgOrderDebtAmount]);
|
|
|
+ CustomClass::updateById($customId, ['debtAmount' => $ghsOrderDebtAmount]);
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|