浏览代码

Merge remote-tracking branch 'origin/develop' into develop

shenjingwei 4 月之前
父节点
当前提交
3bc53e2cce
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/custom/restcontroller/webmanage/sale/sendplan/sendplandetail.java

+ 3 - 2
src/custom/restcontroller/webmanage/sale/sendplan/sendplandetail.java

@@ -85,7 +85,8 @@ public class sendplandetail extends Controller {
                 // 查询库存总量
                 invbalqty = invbalSalerowsMap.get(row.getString("itemid")).get(0).getBigDecimal("qty");
             }
-            insertSQL.setValue("willinqty", willoutqty);
+            insertSQL.setValue("willinqty", 0);
+            insertSQL.setValue("willoutqty", willoutqty);
             insertSQL.setValue("sendqty", getBigDecimalOrZero(row.getBigDecimal("sendqty")));
 
 
@@ -104,7 +105,7 @@ public class sendplandetail extends Controller {
 
             // 设置计算后的值
             insertSQL.setValue("canuseqty",oldCanuseqty);
-            insertSQL.setValue("willinqty",oldWilloutqty);
+            insertSQL.setValue("willoutqty",oldWilloutqty);
 
 
             // 如果可用量<=0,设置发货量为0