This commit is contained in:
@@ -455,31 +455,40 @@ function initNavPanel() {
|
||||
}
|
||||
|
||||
//****************** ACCOUNTING
|
||||
if (
|
||||
window.$gz.role.hasRole([
|
||||
role.BizAdminFull,
|
||||
role.AccountingFull,
|
||||
role.BizAdminLimited
|
||||
])
|
||||
) {
|
||||
sub = [];
|
||||
|
||||
//RATES
|
||||
sub = [];
|
||||
|
||||
//SERVICE RATES
|
||||
if (window.$gz.role.canOpen(window.$gz.type.ServiceRate)) {
|
||||
sub.push({
|
||||
title: "RateList",
|
||||
title: "ServiceRateList",
|
||||
icon: "$ayiCalculator",
|
||||
route: "/acc-accounting",
|
||||
route: "/acc-service-rates",
|
||||
key: key++
|
||||
});
|
||||
}
|
||||
|
||||
//TRAVEL RATES
|
||||
if (window.$gz.role.canOpen(window.$gz.type.TravelRate)) {
|
||||
sub.push({
|
||||
title: "TaxCodeList",
|
||||
icon: "$ayiPercent",
|
||||
route: "/acc-accounting",
|
||||
title: "TravelRateList",
|
||||
icon: "$ayiCalculator",
|
||||
route: "/acc-travel-rates",
|
||||
key: key++
|
||||
});
|
||||
}
|
||||
|
||||
// ** ACCOUNTING (TOP)
|
||||
// if (window.$gz.role.canOpen(window.$gz.type.TaxCode)) {
|
||||
// sub.push({
|
||||
// title: "TaxCodeList",
|
||||
// icon: "$ayiPercent",
|
||||
// route: "/acc-accounting",
|
||||
// key: key++
|
||||
// });
|
||||
// }
|
||||
|
||||
// ** ACCOUNTING (TOP)
|
||||
if (sub.length > 0) {
|
||||
addNavItem("Accounting", "$ayiCoins", undefined, sub, key++, "accounting");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user