shish пре 2 година
родитељ
комит
1debd324ad
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 2 1
      biz-ghs/order/classes/OrderItemClass.php
  2. 1 1
      console/controllers/GlobalController.php

+ 2 - 1
biz-ghs/order/classes/OrderItemClass.php

@@ -426,8 +426,9 @@ class OrderItemClass extends BaseClass
         foreach ($belongList as $info) {
             $id = $info['id'];
             $belongCost = $info['belongCost'];
-            noticeUtil::push('变更花材的成本和收入' . $id . ' ' . $belongCost, '15280215347');
+            noticeUtil::push('变更单独统计' . $id . ' ' . $belongCost, '15280215347');
             self::updateByCondition(['productId' => $id], ['belongCost' => $belongCost]);
+            PurchaseOrderItemClass::updateByCondition(['productId' => $id], ['belongCost' => $belongCost]);
         }
     }
 

+ 1 - 1
console/controllers/GlobalController.php

@@ -35,7 +35,7 @@ class GlobalController extends Controller
             ProductClass::allShopStockWarningFromQueue();
         }
 
-        //花材变成收入还是成本,需要刷新订单花材表
+        //花材单独统计
         OrderItemClass::refreshBelongCost();
 
         if ((int)date('i') % 20 == 0) {