fix(report): filter Purchase invoice info report by agricultural_goods
Switch the inclusion condition from purchase_type=1 to the newly added agricultural_goods=1 flag on Purchase Invoice. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5d2a218087
commit
cd34b4ca87
|
|
@ -83,7 +83,7 @@ def get_data(filters=None):
|
|||
`tabSupplier` sup ON sup.name = pi.supplier
|
||||
WHERE
|
||||
pi.docstatus = 1
|
||||
AND pi.purchase_type = 1
|
||||
AND pi.agricultural_goods = 1
|
||||
{conditions}
|
||||
ORDER BY
|
||||
pi.posting_date DESC, pi.name
|
||||
|
|
|
|||
Loading…
Reference in New Issue