|
@@ -579,7 +579,7 @@ public class WmsDocAsnHeaderServiceImpl implements IWmsDocAsnHeaderService {
|
|
|
InvLotLocId query = new InvLotLocId();
|
|
|
query.setLotnum(unlockForm.getLotnum());
|
|
|
query.setSku(unlockForm.getSku());
|
|
|
- //query.setLocationId(wmsBoxInfo.getLocationId().toString());
|
|
|
+ query.setLocationId(wmsBoxInfo.getLocationId().toString());
|
|
|
List<InvLotLocId> invLotLocIdList = invLotLocIdMapper.selectInvLotLocIdList(query);
|
|
|
if (invLotLocIdList == null || invLotLocIdList.size() == 0) {
|
|
|
return AjaxResult.error("该托盘不存在库存");
|
|
@@ -595,18 +595,19 @@ public class WmsDocAsnHeaderServiceImpl implements IWmsDocAsnHeaderService {
|
|
|
for (WmsDocAsnDetails d : details) {
|
|
|
wmsDocAsnDetailsMapper.updateWmsReceivedQty(d.getAsnNo(), d.getAsnLineNo().intValue(), BigDecimal.valueOf(-1 * inv.getQty().doubleValue()), "30");
|
|
|
}
|
|
|
- //查询入库单明细并进行修改
|
|
|
+ //删除库存
|
|
|
invLotLocIdMapper.deleteInvLotLocIdBy(inv.getLotnum(), inv.getSku(), inv.getLocationId(), inv.getCustomerId());
|
|
|
}
|
|
|
//查询分配单
|
|
|
- ActAllocationDetails allQuery = new ActAllocationDetails();
|
|
|
- allQuery.setUserdefine1(unlockForm.getPalletNo());
|
|
|
- List<ActAllocationDetails> allocationDetails = actAllocationDetailsService.selectActAllocationDetailsList(allQuery);
|
|
|
- for (ActAllocationDetails actAllocationDetails : allocationDetails) {
|
|
|
- //删除分配表
|
|
|
- actAllocationDetailsService.deleteActAllocationDetailsByAllocationId(actAllocationDetails.getAllocationId());
|
|
|
- wmsDocOrderDetailsMapper.updateOrderDetailsStock(actAllocationDetails.getOrderNo(), actAllocationDetails.getLineNo(), (-1 * actAllocationDetails.getQty().doubleValue()), "00");
|
|
|
- }
|
|
|
+// ActAllocationDetails allQuery = new ActAllocationDetails();
|
|
|
+// allQuery.setLotnum(unlockForm.getLotnum());
|
|
|
+// allQuery.setUserdefine1(unlockForm.getPalletNo());
|
|
|
+// List<ActAllocationDetails> allocationDetails = actAllocationDetailsService.selectActAllocationDetailsList(allQuery);
|
|
|
+// for (ActAllocationDetails actAllocationDetails : allocationDetails) {
|
|
|
+// //删除分配表
|
|
|
+// actAllocationDetailsService.deleteActAllocationDetailsByAllocationId(actAllocationDetails.getAllocationId());
|
|
|
+// wmsDocOrderDetailsMapper.updateOrderDetailsStock(actAllocationDetails.getOrderNo(), actAllocationDetails.getLineNo(), (-1 * actAllocationDetails.getQty().doubleValue()), "00");
|
|
|
+// }
|
|
|
return AjaxResult.success("解绑成功");
|
|
|
}
|
|
|
|