refactor: more buttons
This commit is contained in:
parent
2de3e6ce6d
commit
a427029151
@ -3,10 +3,21 @@
|
||||
|
||||
frappe.ui.form.on("Bisect Accounting Statements", {
|
||||
refresh(frm) {
|
||||
frm.add_custom_button(__('Bisect Left'), () =>
|
||||
frm.trigger("bisect_left")
|
||||
);
|
||||
|
||||
frm.add_custom_button(__('Bisect Right'), () =>
|
||||
frm.trigger("bisect_right")
|
||||
);
|
||||
|
||||
frm.add_custom_button(__('Up'), () =>
|
||||
frm.trigger("move_up")
|
||||
);
|
||||
frm.add_custom_button(__('Bisect'), () =>
|
||||
frm.trigger("bisect")
|
||||
);
|
||||
frm.change_custom_button_type(__('Bisect'), null, 'primary');
|
||||
// frm.change_custom_button_type(__('Bisect'), null, 'primary');
|
||||
},
|
||||
bisect(frm) {
|
||||
frm.call({
|
||||
|
Loading…
x
Reference in New Issue
Block a user