mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 20:05:09 +00:00
fix: add validation for calculate ageing with filter for summary and other reports
(cherry picked from commit c630aa9fe8)
This commit is contained in:
@@ -49,7 +49,8 @@ class ReceivablePayableReport:
|
|||||||
self.filters.report_date = getdate(self.filters.report_date or nowdate())
|
self.filters.report_date = getdate(self.filters.report_date or nowdate())
|
||||||
self.age_as_on = (
|
self.age_as_on = (
|
||||||
getdate(nowdate())
|
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
|
else self.filters.report_date
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user