mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-28 06:08:25 +00:00
[fix] company graph based on base currency
This commit is contained in:
@@ -340,7 +340,7 @@ def update_company_monthly_sales(company):
|
||||
from frappe.utils.goal import get_monthly_results
|
||||
import json
|
||||
filter_str = "company = '{0}' and status != 'Draft'".format(frappe.db.escape(company))
|
||||
month_to_value_dict = get_monthly_results("Sales Invoice", "grand_total", "posting_date", filter_str, "sum")
|
||||
month_to_value_dict = get_monthly_results("Sales Invoice", "base_grand_total", "posting_date", filter_str, "sum")
|
||||
|
||||
frappe.db.sql(('''
|
||||
update tabCompany set sales_monthly_history = %s where name=%s
|
||||
|
||||
Reference in New Issue
Block a user