|
@@ -153,7 +153,7 @@ public class InboundPurchaseService extends BaseService<Inbound> {
|
|
|
//region 查询当前入库明细中是否存在未空或者0的入库价,如果存在去库存流水差最近一条有价格的数据赋值到当前明细
|
|
//region 查询当前入库明细中是否存在未空或者0的入库价,如果存在去库存流水差最近一条有价格的数据赋值到当前明细
|
|
|
Boolean priceIntoFlag = false;
|
|
Boolean priceIntoFlag = false;
|
|
|
for (InboundItemVO inboundItemVO : inboundVO.getItemList()) {
|
|
for (InboundItemVO inboundItemVO : inboundVO.getItemList()) {
|
|
|
- if(inboundItemVO.getPriceInto() == null || inboundItemVO.getPriceInto().compareTo(BigDecimal.ZERO)==0){
|
|
|
|
|
|
|
+ if(inboundItemVO.getCostPrice() == null || inboundItemVO.getCostPrice().compareTo(BigDecimal.ZERO)==0){
|
|
|
priceIntoFlag = true;
|
|
priceIntoFlag = true;
|
|
|
//查询库存批次最近一条入库价
|
|
//查询库存批次最近一条入库价
|
|
|
InboundItemResponse inboundItemResponse = this.selectPriceInto(inboundItemVO);
|
|
InboundItemResponse inboundItemResponse = this.selectPriceInto(inboundItemVO);
|