Merge pull request #40294 from barredterra/fix-bisect-accounting-statements

fix: define dates before usage
This commit is contained in:
Deepesh Garg
2024-03-10 19:30:29 +05:30
committed by GitHub

View File

@@ -138,10 +138,11 @@ class BisectAccountingStatements(Document):
# set root as current node
root = frappe.db.get_all("Bisect Nodes", filters={"root": ["is", "not set"]})[0]
self.get_report_summary()
self.current_node = root.name
self.current_from_date = self.from_date
self.current_to_date = self.to_date
self.get_report_summary()
self.save()
def get_report_summary(self):