mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
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:
@@ -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