入库调整记录修改;

This commit is contained in:
王奎兴
2026-04-20 18:13:40 +08:00
parent 2fa09050cc
commit c22b28c484
3 changed files with 6 additions and 2 deletions
@@ -634,7 +634,7 @@ public class MaterialInventoryImpl extends ServiceImpl<MaterialInventoryMapper,
inventoryAdjustmentRecord.setAdjustedVolume(materialInventory.getVolume());
inventoryAdjustmentRecord.setAdjustedArea(materialInventory.getArea());
} else if ("入库".equals(adjustAction)){
if (materialInventory == null) {
if ("1".equals(materialInventoryParamDO.getIsNew())) {
inventoryAdjustmentRecord.setAllocationBeforeQuantity(BigDecimal.ZERO);
inventoryAdjustmentRecord.setAllocationAfterQuantity(materialInventoryParamDO.getQuantity());
inventoryAdjustmentRecord.setFreezeBeforeQuantity(BigDecimal.ZERO);
@@ -100,4 +100,6 @@ public class MaterialInventoryParamDO extends MaterialBaseDO {
private String batchNumber;
private String isNew;
}
@@ -1062,6 +1062,7 @@ public class StockShelfOrderDomainService {
// materialInventoryMapper.insert(materialInventory);
inventoryParamDO.setType("1");
inventoryParamDO.setIsNew("1");
//库存调整记录
materialInventoryService.xgkc(inventoryParamDO);
@@ -1119,9 +1120,10 @@ public class StockShelfOrderDomainService {
inventoryParamDO.setQuantity(shelfMaterialDetail.getShelvesQuantity());
inventoryParamDO.setType("1");
inventoryParamDO.setUpdateTime(new Date());
materialInventoryService.xgkc(inventoryParamDO);
//库存调整记录
materialInventoryService.kctzjl(inventoryParamDO, "入库", loginUser);
materialInventoryService.xgkc(inventoryParamDO);
//抄码商品对照数据插入
copyCodeProductComparison(materialBaseInfo,shelfMaterialDetail,inventoryParamDO);
}