This commit is contained in:
2020-01-03 20:31:26 +00:00
parent d08ff54187
commit 5088549672

View File

@@ -133,6 +133,17 @@ export default function initialize() {
);
//****************** SERVICE
if (
window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull,
window.$gz.role.AUTHORIZATION_ROLES.BizAdminLimited,
window.$gz.role.AUTHORIZATION_ROLES.AccountingFull,
window.$gz.role.AUTHORIZATION_ROLES.DispatchFull,
window.$gz.role.AUTHORIZATION_ROLES.DispatchLimited,
window.$gz.role.AUTHORIZATION_ROLES.InventoryFull,
window.$gz.role.AUTHORIZATION_ROLES.InventoryLimitedKF
])
) {
//clear sublevel array
sub = [];
@@ -172,7 +183,9 @@ export default function initialize() {
//PM LIST
sub.push({
title: window.$gz.locale.get("WorkorderPreventiveMaintenanceList"),
title: window.$gz.locale.get(
"WorkorderPreventiveMaintenanceList"
),
icon: "business-time",
route: "/svc-pm-list",
key: key++
@@ -226,8 +239,17 @@ export default function initialize() {
sub,
key++
);
}
//****************** INVENTORY
if (
window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull,
window.$gz.role.AUTHORIZATION_ROLES.BizAdminLimited,
window.$gz.role.AUTHORIZATION_ROLES.InventoryFull,
window.$gz.role.AUTHORIZATION_ROLES.InventoryLimited
])
) {
//clear sublevel array
sub = [];
@@ -275,6 +297,8 @@ export default function initialize() {
//NOTE: V7 HAD PORECEIPTITEMS, THAT MAY BE AN ANACHRONISM NOW SO NOT PUTTING HERE
//NOTE: Warehouses? Shouldn't they be here as well??
//ADJUSTMENTS
sub.push({
title: window.$gz.locale.get("InventoryPartInventoryAdjustments"),
@@ -291,8 +315,20 @@ export default function initialize() {
sub,
key++
);
}
//**** VENDORS (TOP GROUP)
if (
window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull,
window.$gz.role.AUTHORIZATION_ROLES.BizAdminLimited,
window.$gz.role.AUTHORIZATION_ROLES.AccountingFull,
window.$gz.role.AUTHORIZATION_ROLES.DispatchFull,
window.$gz.role.AUTHORIZATION_ROLES.DispatchLimited,
window.$gz.role.AUTHORIZATION_ROLES.InventoryFull,
window.$gz.role.AUTHORIZATION_ROLES.InventoryLimitedKF
])
) {
addNavItem(
window.$gz.locale.get("VendorList"),
"store",
@@ -300,9 +336,16 @@ export default function initialize() {
[],
key++
);
}
//****************** ACCOUNTING
if (
window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull,
window.$gz.role.AUTHORIZATION_ROLES.AccountingFull,
window.$gz.role.AUTHORIZATION_ROLES.BizAdminLimited
])
) {
sub = [];
//FAKE subitem as is still TBD
@@ -313,7 +356,7 @@ export default function initialize() {
key: key++
});
// ** CUSTOMER (TOP)
// ** ACCOUNTING (TOP)
addNavItem(
window.$gz.locale.get("Accounting"),
"calculator",
@@ -321,8 +364,15 @@ export default function initialize() {
sub,
key++
);
}
//****************** ADMINISTRATION
if (
window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull,
window.$gz.role.AUTHORIZATION_ROLES.BizAdminLimited
])
) {
//clear sublevel array
sub = [];
@@ -400,6 +450,7 @@ export default function initialize() {
sub,
key++
);
}
//****************** OPERATIONS
if (