mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-15 16:28:20 +00:00
fix: process statement to_date override
This commit is contained in:
committed by
GitHub
parent
20794ac9ce
commit
378d15d388
@@ -34,6 +34,7 @@ class ProcessStatementOfAccounts(Document):
|
|||||||
frappe.throw(_('Customers not selected.'))
|
frappe.throw(_('Customers not selected.'))
|
||||||
|
|
||||||
if self.enable_auto_email:
|
if self.enable_auto_email:
|
||||||
|
if self.start_date and getdate(self.start_date) >= getdate(today()):
|
||||||
self.to_date = self.start_date
|
self.to_date = self.start_date
|
||||||
self.from_date = add_months(self.to_date, -1 * self.filter_duration)
|
self.from_date = add_months(self.to_date, -1 * self.filter_duration)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user