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 6c8f52b26f)
This commit is contained in:
@@ -210,7 +210,6 @@ def get_so_with_invoices(filters):
|
|||||||
.where(
|
.where(
|
||||||
(so.docstatus == 1)
|
(so.docstatus == 1)
|
||||||
& (so.status.isin(["To Deliver and Bill", "To Bill"]))
|
& (so.status.isin(["To Deliver and Bill", "To Bill"]))
|
||||||
& (so.payment_terms_template != "NULL")
|
|
||||||
& (so.company == conditions.company)
|
& (so.company == conditions.company)
|
||||||
& (so.transaction_date[conditions.start_date : conditions.end_date])
|
& (so.transaction_date[conditions.start_date : conditions.end_date])
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user