From 96e629a635fc8b27ee88d3f3981614345fe454c8 Mon Sep 17 00:00:00 2001 From: tunde Date: Thu, 22 Jun 2017 10:04:33 +0100 Subject: [PATCH] adds credits notes to report since double entry for P or L affects sales --- erpnext/accounts/report/gross_profit/gross_profit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/gross_profit/gross_profit.py b/erpnext/accounts/report/gross_profit/gross_profit.py index 4b28f1f35d..adc3deb62f 100644 --- a/erpnext/accounts/report/gross_profit/gross_profit.py +++ b/erpnext/accounts/report/gross_profit/gross_profit.py @@ -278,7 +278,7 @@ class GrossProfitGenerator(object): inner join `tabSales Invoice Item` on `tabSales Invoice Item`.parent = `tabSales Invoice`.name {sales_team_table} where - `tabSales Invoice`.docstatus = 1 and `tabSales Invoice`.is_return != 1 {conditions} {match_cond} + `tabSales Invoice`.docstatus = 1 {conditions} {match_cond} order by `tabSales Invoice`.posting_date desc, `tabSales Invoice`.posting_time desc""" .format(conditions=conditions, sales_person_cols=sales_person_cols,