shish пре 2 година
родитељ
комит
45afcda3ad
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      app-ghs/controllers/StatItemController.php

+ 5 - 0
app-ghs/controllers/StatItemController.php

@@ -9,6 +9,7 @@ use bizGhs\product\classes\ProductClass;
 use bizGhs\shop\classes\ShopAdminClass;
 use common\components\arrayUtil;
 use common\components\dateUtil;
+use common\components\noticeUtil;
 use Yii;
 use common\components\util;
 
@@ -75,6 +76,10 @@ class StatItemController extends BaseController
 
                     $totalMl = bcadd($totalMl, $currentGross, 2);
 
+                    if ($currentGross < 0) {
+                        noticeUtil::push($item->id . ' 毛利是负的', '15280215347');
+                    }
+
                     $stat[$productId]['productId'] = $productId;
                     $stat[$productId]['name'] = $name;
                     $stat[$productId]['py'] = $py;