修复 10.例:最新进价18元,上一次进价25元,入库后外层进价显示0.18,包装单位里面进价显示25元。对不上价格
This commit is contained in:
1 parent
36388e43b3
commit
d46393cf64
1 file changed
+9
+9
@@ -174,7 +174,16 @@ public class SmErpInventoryRecordsServiceImpl extends ServiceImpl<SmErpInventory
|
||||
smErpSpuEntity.setId(erpSpuId);
|
||||
// 更新库存成本价
|
||||
smErpSpuMapper.updateById(smErpSpuEntity);
|
||||
|
||||
|
||||
//更新实际进价到商品包装单位里
|
||||
SmErpUnitEntity smErpUnitEntity = new SmErpUnitEntity();
|
||||
smErpUnitEntity.setPurchasePrice(item.getRealPrice());
|
||||
smErpUnitEntity.setId(item.getUnitId());
|
||||
smErpUnitMapper.updateById(smErpUnitEntity);
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
return insert;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user