解决进销存统计报表的库存金额计算错误的问题

This commit is contained in:
jishenghua
2024-06-04 23:24:31 +08:00
parent 37c8c01c1e
commit c2f757a7ac

View File

@@ -377,7 +377,11 @@ public class DepotItemController {
} else { } else {
item.put("unitPrice", diEx.getPurchaseDecimal()); item.put("unitPrice", diEx.getPurchaseDecimal());
} }
item.put("thisAllPrice", thisSum.multiply(diEx.getPurchaseDecimal())); if(moveAvgPriceFlag) {
item.put("thisAllPrice", thisSum.multiply(diEx.getCurrentUnitPrice()));
} else {
item.put("thisAllPrice", thisSum.multiply(diEx.getPurchaseDecimal()));
}
dataArray.add(item); dataArray.add(item);
} }
} }