diff --git a/src/utils/sidebarConfig.ts b/src/utils/sidebarConfig.ts index c040569f..8268e69e 100644 --- a/src/utils/sidebarConfig.ts +++ b/src/utils/sidebarConfig.ts @@ -216,6 +216,13 @@ function getCompleteSidebar(): SidebarConfig { schemaName: 'Lead', hidden: () => !fyo.singles.AccountingSettings?.enableLead, }, + { + label: t`Pricing Rule`, + name: 'pricing-rule', + route: '/list/PricingRule', + schemaName: 'PricingRule', + hidden: () => !fyo.singles.AccountingSettings?.enablePricingRule, + }, { label: t`Coupon Code`, name: 'coupon-code', @@ -293,13 +300,6 @@ function getCompleteSidebar(): SidebarConfig { schemaName: 'PriceList', hidden: () => !fyo.singles.AccountingSettings?.enablePriceList, }, - { - label: t`Pricing Rule`, - name: 'pricing-rule', - route: '/list/PricingRule', - schemaName: 'PricingRule', - hidden: () => !fyo.singles.AccountingSettings?.enablePricingRule, - }, ] as SidebarItem[], }, getReportSidebar(),