diff --git a/src/pages/ChartOfAccounts.vue b/src/pages/ChartOfAccounts.vue index fa19c67b..2b92a64b 100644 --- a/src/pages/ChartOfAccounts.vue +++ b/src/pages/ChartOfAccounts.vue @@ -141,7 +141,8 @@ import { isCredit } from 'models/helpers'; import { ModelNameEnum } from 'models/types'; import PageHeader from 'src/components/PageHeader'; import { fyo } from 'src/initFyo'; -import { openQuickEdit } from 'src/utils/ui'; +import { docsPathMap } from 'src/utils/misc'; +import { docsPath, openQuickEdit } from 'src/utils/ui'; import { nextTick } from 'vue'; import { handleErrorWithDialog } from '../errorHandling'; @@ -163,6 +164,10 @@ export default { if (fyo.store.isDevelopment) { window.coa = this; } + docsPath.value = docsPathMap.ChartOfAccounts + }, + deactivated() { + docsPath.value = ''; }, methods: { getBalanceString(account) { diff --git a/src/utils/misc.ts b/src/utils/misc.ts index 9cd79d27..987ba920 100644 --- a/src/utils/misc.ts +++ b/src/utils/misc.ts @@ -106,4 +106,5 @@ export const docsPathMap: Record = { NumberSeries: 'miscellaneous/number-series', DataImport: 'miscellaneous/data-import', Settings: 'miscellaneous/settings', + ChartOfAccounts: 'miscellaneous/chart-of-accounts', };