feat(Lot合批):

1.产生新批号时,新批号的原始批次数量应和现有数量保持一致
This commit is contained in:
leiqiaozhen 2024-12-02 09:12:03 +08:00
parent 70fd962d20
commit 203afcfea0

View File

@ -957,6 +957,7 @@ public class ZWmsInventoryServiceImpl extends ServiceImpl<ZWmsInventoryMapper, I
BeanUtils.copyProperties(inventory, newInventory);
newInventory.setInventoryId(newLotNo);
newInventory.setHandle(Inventory.genHandle(site, newLotNo));
newInventory.setOriginalQty(totalQty);
newInventory.setQtyOnHand(totalQty);
newInventory.setCreator(SecurityUtils.getUserName());
newInventory.setCreateTime(LocalDateTime.now());