| | |
| | | sql = "select * from OutStockbillEntry where 1=1 and FInterID = {1,number,#}"; |
| | | sql = MessageFormat.format(sql, Fnumber, FInterID); |
| | | List<OutStockBillEntry> select1 = erpSqlServer.select(sql, OutStockBillEntry.class); |
| | | if(select1.size()<=1){ |
| | | |
| | | boolean flag = true; |
| | | for(OutStockBillEntry outStockBillEntry1 : select1){ |
| | | if (outStockBillEntry1.getFAuxCommitQty().compareTo(outStockBillEntry1.getFQty()) == -1) { |
| | | flag = false; |
| | | } |
| | | } |
| | | |
| | | if(flag){ |
| | | if (!completeCPakOut(FBillNo) ) { |
| | | log.error("{}出库单标记完成失败", FBillNo); |
| | | } |