Merge pull request #39537 from frappe/mergify/bp/version-14-hotfix/pr-39331

fix: Payment Terms Status for Sales Order report show all payment terms from orders (not only when there is a payment terms template) (backport #39331)
This commit is contained in:
ruthra kumar
2024-01-24 16:33:50 +05:30
committed by GitHub

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"]))
& (so.payment_terms_template != "NULL")
& (so.company == conditions.company)
& (so.transaction_date[conditions.start_date : conditions.end_date])
)