Explorar el Código

订单修改数量控制调整

沈静伟 hace 4 años
padre
commit
35f83526e0
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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)) {
             double fundeliqty = getDouble("fundeliqty");
-            double FCHANGEQTY = getDouble("FCHANGEQTY");
+            double FCHANGEQTY = getDouble(fieldname);
             double foldqty = getDouble("fqty");
             if (FCHANGEQTY >= 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));
             }
-            if (getDouble(fieldname) < 0) {
+            if (FCHANGEQTY < 0) {
                 throw new P2AppException("", "修改数量不可小于0");
             }
         }