2
0
mirror of https://github.com/frappe/books.git synced 2025-01-03 15:17:30 +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', schemaName: 'Lead',
hidden: () => !fyo.singles.AccountingSettings?.enableLead, 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`, label: t`Coupon Code`,
name: 'coupon-code', name: 'coupon-code',
@ -293,13 +300,6 @@ function getCompleteSidebar(): SidebarConfig {
schemaName: 'PriceList', schemaName: 'PriceList',
hidden: () => !fyo.singles.AccountingSettings?.enablePriceList, hidden: () => !fyo.singles.AccountingSettings?.enablePriceList,
}, },
{
label: t`Pricing Rule`,
name: 'pricing-rule',
route: '/list/PricingRule',
schemaName: 'PricingRule',
hidden: () => !fyo.singles.AccountingSettings?.enablePricingRule,
},
] as SidebarItem[], ] as SidebarItem[],
}, },
getReportSidebar(), getReportSidebar(),