Merge pull request #48036 from aerele/accounts-receivable-summary-ageing

fix: add validation for calculate ageing with filter for summary and …
This commit is contained in:
ruthra kumar
2025-06-16 08:38:38 +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
)