fix: check page obj before adding menu
(cherry picked from commit 2486b646a1e28a61c02db911b6b538c3f63cc915)
This commit is contained in:
parent
a118417645
commit
0aa73e31ce
@ -125,6 +125,7 @@ erpnext.financial_statements = {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (report.page){
|
||||||
const views_menu = report.page.add_custom_button_group(__('Financial Statements'));
|
const views_menu = report.page.add_custom_button_group(__('Financial Statements'));
|
||||||
|
|
||||||
report.page.add_custom_menu_item(views_menu, __("Balance Sheet"), function() {
|
report.page.add_custom_menu_item(views_menu, __("Balance Sheet"), function() {
|
||||||
@ -142,6 +143,7 @@ erpnext.financial_statements = {
|
|||||||
frappe.set_route('query-report', 'Cash Flow', {company: filters.company});
|
frappe.set_route('query-report', 'Cash Flow', {company: filters.company});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function get_filters() {
|
function get_filters() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user