Merge pull request #48063 from frappe/mergify/bp/version-15-hotfix/pr-48036

fix: add validation for calculate ageing with filter for summary and … (backport #48036)
This commit is contained in:
ruthra kumar
2025-06-16 09:52:37 +05:30
committed by GitHub

View File

@@ -49,7 +49,8 @@ class ReceivablePayableReport:
self.filters.report_date = getdate(self.filters.report_date or nowdate())
self.age_as_on = (
getdate(nowdate())
if self.filters.calculate_ageing_with == "Today Date"
if "calculate_ageing_with" not in self.filters
or self.filters.calculate_ageing_with == "Today Date"
else self.filters.report_date
)