瀏覽代碼

订单修改数量控制调整

沈静伟 4 年之前
父節點
當前提交
35f83526e0
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/apps/saorderdetail/saorderdetail.java

+ 3 - 3
src/apps/saorderdetail/saorderdetail.java

@@ -305,15 +305,15 @@ public class saorderdetail extends PaoCust {
         }
         }
         if ("FCHANGEQTY".equals(fieldname)) {
         if ("FCHANGEQTY".equals(fieldname)) {
             double fundeliqty = getDouble("fundeliqty");
             double fundeliqty = getDouble("fundeliqty");
-            double FCHANGEQTY = getDouble("FCHANGEQTY");
+            double FCHANGEQTY = getDouble(fieldname);
             double foldqty = getDouble("fqty");
             double foldqty = getDouble("fqty");
             if (FCHANGEQTY >= foldqty) {
             if (FCHANGEQTY >= foldqty) {
                 throw new P2AppException("", "修改数量必须小于原订单数量" + foldqty);
                 throw new P2AppException("", "修改数量必须小于原订单数量" + foldqty);
             }
             }
-            if (getDouble(fieldname) < Math.sub(foldqty, fundeliqty)) {
+            if (FCHANGEQTY< Math.sub(foldqty, fundeliqty)) {
                 throw new P2AppException("", "修改数量必须大于等于已发货数量" + Math.sub(foldqty, fundeliqty));
                 throw new P2AppException("", "修改数量必须大于等于已发货数量" + Math.sub(foldqty, fundeliqty));
             }
             }
-            if (getDouble(fieldname) < 0) {
+            if (FCHANGEQTY < 0) {
                 throw new P2AppException("", "修改数量不可小于0");
                 throw new P2AppException("", "修改数量不可小于0");
             }
             }
         }
         }