Fixed calculation Error

This commit is contained in:
2023-09-08 07:16:33 +00:00
parent a487804c7c
commit b14eeff0b3

View File

@@ -70,6 +70,8 @@ def generateProductionOverviewCacheData():
soItem.currentWarehouseQty = calculateCurrentWarehouseQty(
soItem.item_code, soItem.qty, currentWarehouseQtyList)
soItem.totalWarehouseQty = getAmountInWarehouses(soItem.item_code)
soItem.due_in = getDueInDays(soItem.delivery_date)
soItem.customer = shortenCustomerName(frappe.get_value(
@@ -125,4 +127,4 @@ def getSalesorderOverviewList():
salesOrderItems = generateProductionOverviewCacheData()
frappe.cache().set_value('production_overview', salesOrderItems, expires_in_sec=60)
return salesOrderItems
return generateProductionOverviewCacheData()