shish 2 лет назад
Родитель
Сommit
f294583f83
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-ghs/controllers/ProductController.php

+ 1 - 1
app-ghs/controllers/ProductController.php

@@ -306,7 +306,7 @@ class ProductController extends BaseController
         } elseif ($requestType == 'warning') {
             $field = 'id,py,cover,name,cost,itemId,classId,skPrice,variety,price,discountPrice,stock,onStock,actualSold,presell,bigUnit,stockWarning,status,frontHide';
             $itemInfoData = Product::find()->where("mainId={$this->mainId}")
-                ->andWhere('`stock`<`stockWarning`')
+                ->andWhere('`stock`+`onStock`<`stockWarning`')
                 ->andWhere("delStatus=0")
                 ->select($field)->asArray()->all();
             $itemInfoData = ProductClass::warningGroup($itemInfoData, $level);