|
@@ -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");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|