This commit is contained in:
2021-02-26 19:30:14 +00:00
parent 6b59585c89
commit 80133e98f2
14 changed files with 137 additions and 66 deletions

View File

@@ -375,12 +375,12 @@ function initNavPanel() {
});
}
//PART ASSEMBLIES
if (window.$gz.role.canOpen(window.$gz.type.PartAssembly)) {
//PURCHASE ORDERS
if (useInventory && window.$gz.role.canOpen(window.$gz.type.PurchaseOrder)) {
sub.push({
title: "PartAssemblyList",
icon: "$ayiObjectGroup",
route: "/inv-part-assemblies",
title: "InventoryPurchaseOrders",
icon: "$ayiTruckLoading",
route: "/inv-purchase-orders",
key: key++
});
}
@@ -395,6 +395,29 @@ function initNavPanel() {
});
}
//INVENTORY TRANSACTIONS
if (useInventory && window.$gz.role.canOpen(window.$gz.type.PartInventory)) {
sub.push({
title: "PartInventoryTransactionList",
icon: "$ayiPeopleCarry",
route: "/inv-part-inventory-transactions",
key: key++
});
}
//RESTOCK REQUIRED
if (
useInventory &&
window.$gz.role.canOpen(window.$gz.type.WorkOrderItemPartRequest)
) {
sub.push({
title: "PurchaseOrderUIRestockList",
icon: "$ayiClipboardList",
route: "/inv-part-restocks",
key: key++
});
}
//PART REQUESTS
if (
useInventory &&
@@ -402,46 +425,30 @@ function initNavPanel() {
) {
sub.push({
title: "WorkOrderItemPartRequestList",
icon: "$ayiPaperPlane",
icon: "$ayiParachuteBox",
route: "/inv-part-requests",
key: key++
});
}
//PURCHASE ORDERS
if (useInventory && window.$gz.role.canOpen(window.$gz.type.PurchaseOrder)) {
//PART ASSEMBLIES
if (window.$gz.role.canOpen(window.$gz.type.PartAssembly)) {
sub.push({
title: "InventoryPurchaseOrders",
icon: "$ayiDollyFlatbed",
route: "/inv-purchase-orders",
title: "PartAssemblyList",
icon: "$ayiObjectGroup",
route: "/inv-part-assemblies",
key: key++
});
}
//ADJUSTMENTS
if (
useInventory &&
window.$gz.role.canOpen(window.$gz.type.PartInventory)
) {
sub.push({
title: "PartInventoryTransactionList",
icon: "$ayiDolly",
route: "/inv-part-inventory-transactions",
key: key++
});
}
//WAREHOUSES
if (
useInventory &&
window.$gz.role.canOpen(window.$gz.type.PartWarehouse)
) {
sub.push({
title: "PartWarehouseList",
icon: "$ayiWarehouse",
route: "/inv-part-warehouses",
key: key++
});
}
//WAREHOUSES
if (useInventory && window.$gz.role.canOpen(window.$gz.type.PartWarehouse)) {
sub.push({
title: "PartWarehouseList",
icon: "$ayiWarehouse",
route: "/inv-part-warehouses",
key: key++
});
}
//**** INVENTORY (TOP GROUP)