From 8003f0883ec5fedb7e1a289d961e3d5068c5d288 Mon Sep 17 00:00:00 2001 From: AbleKSaju <126228406+AbleKSaju@users.noreply.github.com> Date: Mon, 14 Oct 2024 16:05:06 +0530 Subject: [PATCH] fix: move pricing rule to sales instead of common --- src/utils/sidebarConfig.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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(),