소스 검색

Merge branch 'wugg' of wugg/phpstock into version1.5

wugg 2 년 전
부모
커밋
acf4ae7cdf
1개의 변경된 파일23개의 추가작업 그리고 0개의 파일을 삭제
  1. 23 0
      app/admin/controller/Cat.php

+ 23 - 0
app/admin/controller/Cat.php

@@ -504,6 +504,29 @@ public function status(){
     if($status===""){
         return error_show(1002,"参数status不能为空");
     }
+    if($status==1){
+        if($stn['rate']===""){
+            return error_show(1003,"单品修改下限未设置");
+        }
+        if($stn['order_rate']===""){
+            return error_show(1003,"预算成本利率未设置");
+        }
+        if($stn['sale_rate']===""){
+            return error_show(1003,"分类成本售价利率未设置");
+        }
+        if($stn['lower_rate']===""){
+            return error_show(1003,"分类最低毛利率未设置");
+        }
+//        if($stn['money_rate']==""){
+//            return error_show(1003,"分类财务利率未设置");
+//        }
+//        if($stn['low_rate']==""){
+//            return error_show(1003,"分类最低毛利未设置");
+//        }
+        if($stn['fund_code']==""){
+            return error_show(1003,"分类核算码未设置");
+        }
+    }
     if ($stn['level']==3) {
         if($status==1){
             $can = made($stn['id']);