修复库存状况报表bug
This commit is contained in:
@@ -395,6 +395,9 @@ public class DepotItemController {
|
|||||||
Long mId = diEx.getMId();
|
Long mId = diEx.getMId();
|
||||||
BigDecimal thisSum = depotItemService.getStockByParam(depotId,mId,null,endTime,tenantId);
|
BigDecimal thisSum = depotItemService.getStockByParam(depotId,mId,null,endTime,tenantId);
|
||||||
BigDecimal unitPrice = diEx.getPurchaseDecimal();
|
BigDecimal unitPrice = diEx.getPurchaseDecimal();
|
||||||
|
if(unitPrice == null) {
|
||||||
|
unitPrice = BigDecimal.ZERO;
|
||||||
|
}
|
||||||
thisAllPrice = thisAllPrice.add(thisSum.multiply(unitPrice));
|
thisAllPrice = thisAllPrice.add(thisSum.multiply(unitPrice));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user