|
@@ -527,6 +527,7 @@ public class InvLotLocIdServiceImpl implements IInvLotLocIdService {
|
|
|
BigDecimal sumQty = BigDecimal.ZERO;
|
|
|
if (invLotLocIds != null && invLotLocIds.size() > 0) {
|
|
|
for (InvLotLocId inv : invLotLocIds) {
|
|
|
+ InvLotAtt att = invLotAttMapper.selectInvLotAttByLotnum(inv.getLotnum());
|
|
|
BigDecimal currentQtyTotal = inv.getQty().subtract(inv.getQtyallocated());
|
|
|
BigDecimal currentQty;
|
|
|
if (currentQtyTotal.compareTo(total) == 1) {
|
|
@@ -538,13 +539,13 @@ public class InvLotLocIdServiceImpl implements IInvLotLocIdService {
|
|
|
}
|
|
|
//目标库位生成新库存
|
|
|
LotattDTO newLot = new LotattDTO();
|
|
|
- BeanUtils.copyProperties(lotattDTO, newLot);
|
|
|
+ BeanUtils.copyProperties(att, newLot);
|
|
|
newLot.setLotatt07(palletNoTo);
|
|
|
invLotLocIdService.initInv(wmsBoxInfoTo.getLocationId().toString(), inv.getSku(), inv.getCustomerId(), currentQty.doubleValue(), newLot, BigDecimal.ZERO);
|
|
|
|
|
|
//扣减原库存
|
|
|
inv.setQty(inv.getQty().subtract(currentQty));
|
|
|
- inv.setQtyEach(inv.getQty().subtract(currentQty));
|
|
|
+ inv.setQtyEach(inv.getQty());
|
|
|
//inv.setQtyallocated(inv.getQtyallocated().subtract(currentQty));
|
|
|
//inv.setQtyallocatedEach(inv.getQtyallocatedEach().subtract(currentQty));
|
|
|
invLotLocIdService.updateInvLotLocId(inv);
|