Merge pull request #39331 from FHenry/dev_fix_payment_terms_status_for_sales_order_report

fix: Payment Terms Status for Sales Order report show all payment terms from orders (not only when there is a payment terms template)
This commit is contained in:
ruthra kumar 2024-01-24 16:11:52 +05:30 committed by GitHub
commit 4f1e729b7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -210,7 +210,6 @@ def get_so_with_invoices(filters):
.where(
(so.docstatus == 1)
& (so.status.isin(["To Deliver and Bill", "To Bill", "To Pay"]))
& (so.payment_terms_template != "NULL")
& (so.company == conditions.company)
& (so.transaction_date[conditions.start_date : conditions.end_date])
)