|
|
@@ -386,7 +386,8 @@ public class OutboundSaleReturnService extends BaseService<Outbound> {
|
|
|
//region 查询当前入库明细中是否存在未空或者0的入库价,如果存在去库存流水差最近一条有价格的数据赋值到当前明细
|
|
|
Boolean priceIntoFlag = false;
|
|
|
for (OutboundItemVO outboundItemVO : outboundVO.getItemList()) {
|
|
|
- if (outboundItemVO.getPriceOut() == null || outboundItemVO.getPriceOut().compareTo(BigDecimal.ZERO) == 0) {
|
|
|
+ //todo 2024-7-5 11:44:12 z确认修改为cost
|
|
|
+ if (outboundItemVO.getCostPrice() == null || outboundItemVO.getCostPrice().compareTo(BigDecimal.ZERO) == 0) {
|
|
|
priceIntoFlag = true;
|
|
|
//查询库存批次最近一条入库价
|
|
|
InboundItemResponse inboundItemResponse = this.selectPriceInto(outboundItemVO);
|
|
|
@@ -873,7 +874,6 @@ public class OutboundSaleReturnService extends BaseService<Outbound> {
|
|
|
);
|
|
|
//endregion
|
|
|
|
|
|
-
|
|
|
//region 修改库存
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("delOutDetail", outboundItemResponseList);
|