Browse Source

smt的申报金额不可为0

lvhao 3 tháng trước cách đây
mục cha
commit
e94b451714
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      core/CoreApp/controllers/Fullordersmt.php

+ 7 - 0
core/CoreApp/controllers/Fullordersmt.php

@@ -3563,6 +3563,13 @@ class Fullordersmt extends Start_Controller {
 					}
 				}
 			}
+			if(empty($post['zsbjz']*1)){
+				echo json_encode(array('msg'=>'申报金额不可为0!','success'=>false));exit;
+			}
+			if(empty($post['dtsbjz']*1)){
+				echo json_encode(array('msg'=>'单条申报价值不能为0!','success'=>false));exit;
+			}
+			
 			$thisdata =  $data;
 			$warehouse = $this->warehouse->read($thisdata['type']);
 			$warehousenew = $this->warehouse->read($post['type']);