Merge pull request #3998 from nabinhait/fix7
[fix] Gross Profit report should not include return entries
This commit is contained in:
commit
0b17a91aba
@ -226,7 +226,7 @@ class GrossProfitGenerator(object):
|
|||||||
inner join `tabSales Invoice Item` item on item.parent = si.name
|
inner join `tabSales Invoice Item` item on item.parent = si.name
|
||||||
left join `tabSales Team` sales on sales.parent = si.name
|
left join `tabSales Team` sales on sales.parent = si.name
|
||||||
where
|
where
|
||||||
si.docstatus = 1 %s
|
si.docstatus = 1 and si.is_return != 1 %s
|
||||||
order by
|
order by
|
||||||
si.posting_date desc, si.posting_time desc""" % (conditions,), self.filters, as_dict=1)
|
si.posting_date desc, si.posting_time desc""" % (conditions,), self.filters, as_dict=1)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user