Merge pull request #39538 from frappe/mergify/bp/version-15-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:27:29 +05:30 committed by GitHub
commit bd7e8ed230
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"]))
& (so.payment_terms_template != "NULL")
& (so.company == conditions.company)
& (so.transaction_date[conditions.start_date : conditions.end_date])
)