mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
fixes in sales personwise transaction summary report
This commit is contained in:
@@ -39,10 +39,7 @@ report.get_query = function() {
|
|||||||
sp = this.get_filter('Sales Person', 'Sales Person').get_value();
|
sp = this.get_filter('Sales Person', 'Sales Person').get_value();
|
||||||
|
|
||||||
date_fld = 'transaction_date';
|
date_fld = 'transaction_date';
|
||||||
if(based_on == 'Sales Invoice') {
|
if(based_on == 'Sales Invoice' || based_on == "Delivery Note") date_fld = 'posting_date';
|
||||||
based_on = 'Sales Invoice';
|
|
||||||
date_fld = 'posting_date';
|
|
||||||
}
|
|
||||||
|
|
||||||
sp_cond = '';
|
sp_cond = '';
|
||||||
if (from_date) sp_cond += ' AND t1.' + date_fld + '>= "' + from_date + '"';
|
if (from_date) sp_cond += ' AND t1.' + date_fld + '>= "' + from_date + '"';
|
||||||
|
|||||||
Reference in New Issue
Block a user