refactor(test): process statement of acc remove commit

(cherry picked from commit bc2b8da597)
This commit is contained in:
ruthra kumar
2026-03-24 16:05:54 +05:30
parent 7f29245eb6
commit e91cbd94b4

View File

@@ -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