|
|
@@ -84,14 +84,14 @@ class CustomController extends Controller
|
|
|
}
|
|
|
}
|
|
|
if ($ghsOrderDebtAmount < 0 || $hdCgOrderDebtAmount < 0) {
|
|
|
- //noticeUtil::push("!!!!!!!供应商 {$ghsId} 客户id {$customId} 出现负数 $ghsOrderDebtAmount $hdCgOrderDebtAmount", '15280215347');
|
|
|
+ noticeUtil::push("!!!!!!!供应商 {$ghsId} 客户id {$customId} 出现负数 $ghsOrderDebtAmount $hdCgOrderDebtAmount", '15280215347');
|
|
|
echo "@@@@@@@@@@@@@供应商 {$ghsId} 客户id {$customId} 出现负数 $ghsOrderDebtAmount $hdCgOrderDebtAmount \n";
|
|
|
}
|
|
|
$ghsOrderDebtAmount = floatval($ghsOrderDebtAmount);
|
|
|
$hdCgOrderDebtAmount = floatval($hdCgOrderDebtAmount);
|
|
|
|
|
|
if ($ghsOrderDebtAmount != $hdCgOrderDebtAmount) {
|
|
|
- //noticeUtil::push("!!!!!!!供应商 {$ghsId} 客户id {$customId} 二边欠款单总金额不一致", '15280215347');
|
|
|
+ noticeUtil::push("!!!!!!!供应商 {$ghsId} 客户id {$customId} 二边欠款单总金额不一致", '15280215347');
|
|
|
echo "---------供应商 {$ghsId} 客户id {$customId} 二边 欠款单 总金额 不一致 {$ghsOrderDebtAmount} {$hdCgOrderDebtAmount} \n";
|
|
|
continue;
|
|
|
}
|
|
|
@@ -102,22 +102,22 @@ class CustomController extends Controller
|
|
|
if ($customSaveDebtAmount != $ghsOrderDebtAmount) {
|
|
|
echo "*********客户 {$customId} 欠款 和 订单总额 不一致 $customSaveDebtAmount $ghsOrderDebtAmount \n";
|
|
|
|
|
|
- //noticeUtil::push("*********客户 {$customId} 欠款总金额 和 订单总合 不一致 $customSaveDebtAmount $ghsOrderDebtAmount ", '15280215347');
|
|
|
+ noticeUtil::push("*********客户 {$customId} 欠款总金额 和 订单总合 不一致 $customSaveDebtAmount $ghsOrderDebtAmount ", '15280215347');
|
|
|
|
|
|
- echo "已更:".$hdCgOrderDebtAmount.' '.$ghsOrderDebtAmount."\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]);
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if ($ghsSaveDebtAmount != $hdCgOrderDebtAmount) {
|
|
|
echo "#########欠供应商 {$ghsId} 和 订单总额 不一致 $ghsSaveDebtAmount $hdCgOrderDebtAmount \n";
|
|
|
|
|
|
- //noticeUtil::push("#########欠供应商 {$ghsId} 金额 和 订单总合 不一致 $ghsSaveDebtAmount $hdCgOrderDebtAmount ", '15280215347');
|
|
|
+ noticeUtil::push("#########欠供应商 {$ghsId} 金额 和 订单总合 不一致 $ghsSaveDebtAmount $hdCgOrderDebtAmount ", '15280215347');
|
|
|
|
|
|
- echo "已更:".$hdCgOrderDebtAmount.' '.$ghsOrderDebtAmount."\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]);
|
|
|
continue;
|
|
|
}
|
|
|
|