chore: code cleanup
This commit is contained in:
parent
c4c3090f46
commit
5e2d21c033
@ -50,7 +50,7 @@ frappe.ui.form.on("Bisect Accounting Statements", {
|
|||||||
start: new Date(frm.doc.from_date),
|
start: new Date(frm.doc.from_date),
|
||||||
end: new Date(frm.doc.to_date),
|
end: new Date(frm.doc.to_date),
|
||||||
},
|
},
|
||||||
countLabel: 'Difference',
|
countLabel: 'Bisecting',
|
||||||
discreteDomains: 1,
|
discreteDomains: 1,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@ -114,7 +114,11 @@ class BisectAccountingStatements(Document):
|
|||||||
|
|
||||||
# set root as current node
|
# set root as current node
|
||||||
root = frappe.db.get_all("Bisect Nodes", filters={"root": ["is", "not set"]})[0]
|
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):
|
def get_report_summary(self):
|
||||||
filters = {
|
filters = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user