chore: code cleanup

This commit is contained in:
ruthra kumar 2023-09-27 15:27:27 +05:30
parent c4c3090f46
commit 5e2d21c033
2 changed files with 6 additions and 2 deletions

View File

@ -50,7 +50,7 @@ frappe.ui.form.on("Bisect Accounting Statements", {
start: new Date(frm.doc.from_date),
end: new Date(frm.doc.to_date),
},
countLabel: 'Difference',
countLabel: 'Bisecting',
discreteDomains: 1,
});
},

View File

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