shish 3 vuotta sitten
vanhempi
commit
c9ddc344b5
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      biz-ghs/order/services/RefundOrderService.php

+ 2 - 0
biz-ghs/order/services/RefundOrderService.php

@@ -20,6 +20,7 @@ use bizGhs\shop\classes\ShopMoneyClass;
 use bizGhs\stock\classes\StockRecordClass;
 use bizHd\purchase\classes\PurchaseClass;
 use common\components\dict;
+use common\components\noticeUtil;
 use common\components\orderSn;
 use common\components\util;
 use bizGhs\product\classes\ProductClass;
@@ -216,6 +217,7 @@ class RefundOrderService extends BaseService
                 //门店应收款减少
                 $currentMayGathering = bcsub($main->mayGathering, $refundPrice, 2);
                 if ($currentMayGathering < 0) {
+                    noticeUtil::push("应付款有问题 {$main->mayGathering} {$refundPrice}", '15280215347');
                     util::fail('应付款有问题');
                 }
                 $main->mayGathering = $currentMayGathering;