2
0
mirror of https://github.com/frappe/books.git synced 2025-01-03 07:12:21 +00:00

Merge pull request #977 from AbleKSaju/fix-sidebar-order

fix: moved pricing rule from common to sales in sidebar
This commit is contained in:
Akshay 2024-10-15 10:12:19 +05:30 committed by GitHub
commit 9516e5f3a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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