From 86870b0aa65c6e7f7d0974c052b81513717d9e4b Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Sat, 12 Oct 2019 16:49:38 +0530 Subject: [PATCH] fix: production plan not showing grand total against sales order (#19283) --- .../manufacturing/doctype/production_plan/production_plan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index 04359e3f5d..4dc98e7ade 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -558,7 +558,7 @@ def get_sales_orders(self): item_filter += " and so_item.item_code = %(item)s" open_so = frappe.db.sql(""" - select distinct so.name, so.transaction_date, so.customer, so.base_grand_total + select distinct so.name, so.transaction_date, so.customer, so.base_grand_total as grand_total from `tabSales Order` so, `tabSales Order Item` so_item where so_item.parent = so.name and so.docstatus = 1 and so.status not in ("Stopped", "Closed")