mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-18 10:57:56 +00:00
Merge branch 'master' into develop
This commit is contained in:
@@ -317,7 +317,7 @@ def update_company_current_month_sales(company):
|
||||
|
||||
results = frappe.db.sql(('''
|
||||
select
|
||||
sum(grand_total) as total, date_format(posting_date, '%m-%Y') as month_year
|
||||
sum(base_grand_total) as total, date_format(posting_date, '%m-%Y') as month_year
|
||||
from
|
||||
`tabSales Invoice`
|
||||
where
|
||||
|
||||
@@ -14,7 +14,7 @@ def get_data():
|
||||
'goal_history_field': 'sales_monthly_history',
|
||||
'goal_doctype': 'Sales Invoice',
|
||||
'goal_doctype_link': 'company',
|
||||
'goal_field': 'grand_total',
|
||||
'goal_field': 'base_grand_total',
|
||||
'date_field': 'posting_date',
|
||||
'filter_str': 'status != "Draft"',
|
||||
'aggregation': 'sum'
|
||||
|
||||
Reference in New Issue
Block a user