fix: Payment Terms Status for Sales Order report should show all payment terms from order not only this comming from template

(cherry picked from commit 6c8f52b26f0601135ec0dd1be94835951936cd11)
This commit is contained in:
Florian HENRY 2024-01-11 16:00:48 +01:00 committed by Mergify
parent 84a94cec6b
commit b2e0d24954

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])
)