fix: add date filter for getting return invoice items

(cherry picked from commit 2abb011816)
This commit is contained in:
Navin-S-R
2025-09-18 16:32:44 +05:30
committed by Mergify
parent 5abb2d510d
commit bc77704462

View File

@@ -677,7 +677,9 @@ class GrossProfitGenerator:
si.name = si_item.parent
and si.docstatus = 1
and si.is_return = 1
and si.posting_date between %(from_date)s and %(to_date)s
""",
{"from_date": self.filters.from_date, "to_date": self.filters.to_date},
as_dict=1,
)