fix: cancelled sales invoices are considered in billed quantity calculation
This commit is contained in:
parent
7292f5476d
commit
44139fbac5
@ -73,7 +73,7 @@ def get_data(conditions, filters):
|
||||
`tabSales Order` so,
|
||||
`tabSales Order Item` soi
|
||||
LEFT JOIN `tabSales Invoice Item` sii
|
||||
ON sii.so_detail = soi.name
|
||||
ON sii.so_detail = soi.name and sii.docstatus = 1
|
||||
WHERE
|
||||
soi.parent = so.name
|
||||
and so.status not in ('Stopped', 'Closed', 'On Hold')
|
||||
|
Loading…
Reference in New Issue
Block a user