Merge pull request #9426 from tundebabzy/issue-9096

Gross Profit Does not display Reversal of sales invoice #9096
This commit is contained in:
Makarand Bauskar 2017-07-03 15:23:21 +05:30 committed by GitHub
commit 960208bae0

View File

@ -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,