From 7555f5f6130c20bfb9d608810a0215752dd7914c Mon Sep 17 00:00:00 2001 From: casesolved-co-uk Date: Thu, 8 Apr 2021 23:54:34 +0000 Subject: [PATCH] fix: add to workspace and fix lint --- erpnext/accounts/report/tax_detail/tax_detail.js | 12 ++---------- .../accounts/workspace/accounting/accounting.json | 10 ++++++++++ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/erpnext/accounts/report/tax_detail/tax_detail.js b/erpnext/accounts/report/tax_detail/tax_detail.js index 0c0397ab046..098096ce0bf 100644 --- a/erpnext/accounts/report/tax_detail/tax_detail.js +++ b/erpnext/accounts/report/tax_detail/tax_detail.js @@ -376,16 +376,8 @@ erpnext.TaxDetail = class TaxDetail { this.controls = controls; } show_help() { - const help = __(`Help: Your custom report is built from General Ledger Entries within the date range. - You can add multiple sections to the report using the New Section button. - Each component added to a section adds a subset of the data into the specified section. - Beware of duplicated data rows. - The Filtered Row component type saves the datatable column filters to specify the added data. - The Section component type refers to the data in a previously defined section, but it cannot refer to its parent section. - The Amount column is summed to give the section subtotal. - Use the Show Detail box to see the data rows included in each section in the final report. - Once finished, hit Save & Run. Report contributed by`); - this.qr.$report_footer.append(`
${help} Case Solved
`); + const help = __('Your custom report is built from General Ledger Entries within the date range. You can add multiple sections to the report using the New Section button. Each component added to a section adds a subset of the data into the specified section. Beware of duplicated data rows. The Filtered Row component type saves the datatable column filters to specify the added data. The Section component type refers to the data in a previously defined section, but it cannot refer to its parent section. The Amount column is summed to give the section subtotal. Use the Show Detail box to see the data rows included in each section in the final report. Once finished, hit Save & Run. Report contributed by'); + this.qr.$report_footer.append('
' + __('Help') + `: ${help} Case Solved
`); } } diff --git a/erpnext/accounts/workspace/accounting/accounting.json b/erpnext/accounts/workspace/accounting/accounting.json index df68318052f..cbfba7e31c4 100644 --- a/erpnext/accounts/workspace/accounting/accounting.json +++ b/erpnext/accounts/workspace/accounting/accounting.json @@ -434,6 +434,16 @@ "onboard": 0, "type": "Link" }, + { + "dependencies": "GL Entry", + "hidden": 0, + "is_query_report": 1, + "label": "Tax Detail", + "link_to": "Tax Detail", + "link_type": "Report", + "onboard": 0, + "type": "Link" + }, { "dependencies": "GL Entry", "hidden": 0,