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:
Ali 2026-06-23 10:41:37 +00:00
parent 5d2a218087
commit cd34b4ca87
1 changed files with 1 additions and 1 deletions

View File

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