2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 10:58:59 +00:00

fix: move pricing rule to sales instead of common

This commit is contained in:
AbleKSaju 2024-10-14 16:05:06 +05:30
parent 1e41c0803c
commit 8003f0883e

View File

@ -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(),