mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
Move actions menu to standard menu
This commit is contained in:
@@ -56,21 +56,21 @@ erpnext.accounts.bankReconciliation = class BankReconciliation {
|
|||||||
add_actions() {
|
add_actions() {
|
||||||
const me = this;
|
const me = this;
|
||||||
|
|
||||||
me.page.show_actions_menu()
|
me.page.show_menu()
|
||||||
|
|
||||||
me.page.add_action_item(__("Upload a statement"), function() {
|
me.page.add_menu_item(__("Upload a statement"), function() {
|
||||||
me.clear_page_content();
|
me.clear_page_content();
|
||||||
new erpnext.accounts.bankTransactionUpload(me);
|
new erpnext.accounts.bankTransactionUpload(me);
|
||||||
}, true)
|
}, true)
|
||||||
|
|
||||||
if (me.plaid_status==="active") {
|
if (me.plaid_status==="active") {
|
||||||
me.page.add_action_item(__("Synchronize this account"), function() {
|
me.page.add_menu_item(__("Synchronize this account"), function() {
|
||||||
me.clear_page_content();
|
me.clear_page_content();
|
||||||
new erpnext.accounts.bankTransactionSync(me);
|
new erpnext.accounts.bankTransactionSync(me);
|
||||||
}, true)
|
}, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
me.page.add_action_item(__("Reconcile this account"), function() {
|
me.page.add_menu_item(__("Reconcile this account"), function() {
|
||||||
me.clear_page_content();
|
me.clear_page_content();
|
||||||
me.make_reconciliation_tool();
|
me.make_reconciliation_tool();
|
||||||
}, true)
|
}, true)
|
||||||
@@ -277,8 +277,6 @@ erpnext.accounts.ReconciliationTool = class ReconciliationTool extends frappe.vi
|
|||||||
const row = $('<div class="list-row-container">').data("data", value).appendTo(me.$result).get(0);
|
const row = $('<div class="list-row-container">').data("data", value).appendTo(me.$result).get(0);
|
||||||
new erpnext.accounts.ReconciliationRow(row, value);
|
new erpnext.accounts.ReconciliationRow(row, value);
|
||||||
})
|
})
|
||||||
|
|
||||||
me.parent.page.hide_menu()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render_header() {
|
render_header() {
|
||||||
|
|||||||
Reference in New Issue
Block a user