Skip to content

Commit

Permalink
fix: remove report field db set
Browse files Browse the repository at this point in the history
(cherry picked from commit 060da2c)
  • Loading branch information
GursheenK authored and mergify[bot] committed Sep 10, 2023
1 parent f9f1ac3 commit 284181d
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,11 @@ def send_emails(document_name, from_scheduler=False, posting_date=None):
doc.add_comment(
"Comment", "Emails sent on: " + frappe.utils.format_datetime(frappe.utils.now())
)
doc.db_set("to_date", new_to_date, commit=True)
doc.db_set("from_date", new_from_date, commit=True)
doc.db_set("posting_date", new_to_date, commit=True)
doc.db_set("report", doc.report, commit=True)
if doc.report == "General Ledger":
doc.db_set("to_date", new_to_date, commit=True)
doc.db_set("from_date", new_from_date, commit=True)
else:
doc.db_set("posting_date", new_to_date, commit=True)
return True
else:
return False
Expand Down

0 comments on commit 284181d

Please sign in to comment.