| | |
| | | } |
| | | } |
| | | if (complete) { |
| | | if (!completeCPakOut(FBillNo)) { |
| | | log.error("{}出库单标记完成失败", FBillNo); |
| | | } |
| | | List<OutStockBillEntry> select1 = this.selectList(new EntityWrapper<OutStockBillEntry>().eq("FInterID", FInterID)); |
| | | if(select1.size()==1){ |
| | | if (!completeCPakOut(FBillNo) ) { |
| | | log.error("{}出库单标记完成失败", FBillNo); |
| | | } |
| | | } |
| | | } |
| | | return true; |
| | | } else { |
| | |
| | | Integer FInterI = outStockService.queryOutStockFInterID(fbillNo); // 获取出库单主表主键 |
| | | Wrapper wrapper1 = new EntityWrapper<OutStockBillEntry>().eq("FInterID",FInterI).eq("Fnumber",detlDto.getLocDetl().getMatnr()); |
| | | OutStockBillEntry outStockBillEntry = outStockService.selectOne(wrapper1); |
| | | outStockBillEntry.setFAmount(outStockBillEntry.getFAmount().add(BigDecimal.valueOf(anfme))); //借用amount字段,控制下发出库任务数量 |
| | | outStockBillEntry.setFAmount(outStockBillEntry.getFAmount().add(BigDecimal.valueOf(anfme))); //借用famount字段,控制下发出库任务数量 |
| | | outStockBillEntry.setFAuxQty(outStockBillEntry.getFAuxQty().subtract(BigDecimal.valueOf(anfme))); |
| | | if(!outStockService.update(outStockBillEntry,wrapper1)){ |
| | | throw new CoolException("更新出库通知档明细FAmount失败[FInterID="+FInterI+",Fnumber="+detlDto.getLocDetl().getMatnr()+"]"); |
| | | } |