Browse Source

出库单bug修复(测试)

hu 2 years ago
parent
commit
9ae66df8cb

+ 1 - 1
src/custom/restcontroller/webmanage/lsak3/stockbill/stockbill.java

@@ -259,7 +259,7 @@ public class stockbill extends Controller {
             /**
              * 更新发货单数量
              */
-            Rows stockbillrows =dbConnect.runSqlQuery("select st_stockbillid,status from st_stockbill where billno='"+fbillnum+"' and siteid='lsa1986'");
+            Rows stockbillrows =dbConnect.runSqlQuery("select st_stockbillid,status,rb from st_stockbill where billno='"+fbillnum+"' and siteid='lsa1986'");
             ArrayList<String> sqldispatchitems =new ArrayList<>();
             if(stockbillrows.isNotEmpty()){
                 Rows stockbilldetailrows =dbConnect.runSqlQuery("select t1.sa_dispatch_itemsid,sum(t1.qty) qty,t2.sa_dispatchid from st_stockbill_items t1 inner join  sa_dispatch_items t2 on t1.sa_dispatch_itemsid=t2.sa_dispatch_itemsid and t1.siteid=t2.siteid where t1.st_stockbillid = "+stockbillrows.get(0).getLong("st_stockbillid")+" and t1.siteid='lsa1986' group by t1.sa_dispatch_itemsid");