This commit is contained in:
2020-12-28 21:52:19 +00:00
parent 2ff75df862
commit 5c18d5d6ce
2 changed files with 109 additions and 64 deletions

View File

@@ -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");
}