2 Commits
Author SHA1 Message Date
christian f8b9e28258 Merge pull request 'Fixed calculation Error' (#3) from develop into version-14
Reviewed-on: #3
2023-09-08 09:17:08 +02:00
christian b14eeff0b3 Fixed calculation Error 2023-09-08 07:16:33 +00:00
@@ -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()