diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 29d35fac..787bb0af 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -114,6 +114,7 @@ export default { }, async mounted() { this.companyName = await sidebarConfig.getTitle(); + const { country } = await frappe.getSingle('AccountingSettings'); this.groups = sidebarConfig.groups.filter((group) => { if ( group.route === '/get-started' && @@ -124,6 +125,16 @@ export default { return true; }); + if (country !== 'India') { + this.groups.forEach((group) => { + if (group.title === 'Reports') { + group.items = group.items.filter( + (item) => !item.label.toLowerCase().includes('gst') + ); + } + }); + } + this.setActiveGroup(); router.afterEach(() => { this.setActiveGroup();