mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 22:19:18 +00:00
refactor(test): process statement of acc remove commit
(cherry picked from commit bc2b8da597)
This commit is contained in:
@@ -563,10 +563,10 @@ def send_emails(document_name, from_scheduler=False, posting_date=None):
|
|||||||
new_from_date = add_months(new_to_date, -1 * doc.filter_duration)
|
new_from_date = add_months(new_to_date, -1 * doc.filter_duration)
|
||||||
doc.add_comment("Comment", "Emails sent on: " + frappe.utils.format_datetime(frappe.utils.now()))
|
doc.add_comment("Comment", "Emails sent on: " + frappe.utils.format_datetime(frappe.utils.now()))
|
||||||
if doc.report == "General Ledger":
|
if doc.report == "General Ledger":
|
||||||
doc.db_set("to_date", new_to_date, commit=True)
|
frappe.db.set_value(doc.doctype, doc.name, "to_date", new_to_date)
|
||||||
doc.db_set("from_date", new_from_date, commit=True)
|
frappe.db.set_value(doc.doctype, doc.name, "from_date", new_from_date)
|
||||||
else:
|
else:
|
||||||
doc.db_set("posting_date", new_to_date, commit=True)
|
frappe.db.set_value(doc.doctype, doc.name, "posting_date", new_to_date)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user