解决库存状态统计的bug

This commit is contained in:
季圣华
2020-02-19 17:11:51 +08:00
parent d23f1f4117
commit e1e133d9fd
5 changed files with 6 additions and 48 deletions

View File

@@ -298,8 +298,10 @@ public class DepotItemController {
item.put("thisSum", thisSum);
for(MaterialExtend me:meList) {
if(me.getMaterialId().longValue() == diEx.getMId().longValue()) {
item.put("UnitPrice", me.getPurchaseDecimal());
item.put("thisAllPrice", thisSum.multiply(me.getPurchaseDecimal()));
if(me.getPurchaseDecimal()!=null) {
item.put("UnitPrice", me.getPurchaseDecimal());
item.put("thisAllPrice", thisSum.multiply(me.getPurchaseDecimal()));
}
}
}
dataArray.add(item);