fix: production plan not showing grand total against sales order (#19283)

This commit is contained in:
rohitwaghchaure 2019-10-12 16:49:38 +05:30 committed by Nabin Hait
parent a0c162c2d6
commit 86870b0aa6

View File

@ -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")