From 23505254ed84d9954ff8639bb6547a47ff742225 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 17 Dec 2019 19:32:56 +0000 Subject: [PATCH] --- ayanova/src/api/initialize.js | 105 ++++++++++++++++++++++++++++------ ayanova/src/api/locale.js | 3 + 2 files changed, 90 insertions(+), 18 deletions(-) diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index 553e0892..737e5d0a 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -134,24 +134,6 @@ export default function initialize() { subSub = []; sub = []; - /** - * - * - WORKORDERS (was "service" in v7, now all "service" workorders are just workorders) - - ALL LEVELS - - NOTE: Either all levels still in menu at left here or somehow at right in separate boxes maybe, I like the idea of the in menu better with single right pane for simplicity - - TEMPLATES - - QUOTES - - See "Workorders" above same layout - - PREVENTIVE MAINTENANCE - - See "Workorders" above same layout - - UNITS - - UNIT MODELS - - CONTRACTS - - CUSTOMER SERVICE REQUESTS - - LOANERS (not 100% certain about this location for this item) - - SCHEDULE (all users not just current one) - */ - //SCHEDULE (combined) sub.push({ title: window.$gz.locale.get("Schedule"), @@ -291,6 +273,93 @@ export default function initialize() { key++ ); + //- INVENTORY + // - PARTS (part list) + // - INVENTORY + // - PART REQUESTS + // - PURCHASE ORDERS + // - PO ITEMS (WEIRD) + // - PO RECEIPTS + // - PO RECEIPT ITEMS (ALSO WEIRD) + // - ADJUSTMENTS + // - WIDGETS (for testing purposes) + + //****************** INVENTORY + //clear sublevel arrays + subSub = []; + sub = []; + + //PARTS (part list) + sub.push({ + title: window.$gz.locale.get("PartList"), + icon: "cubes", + route: "/parts", + key: key++ + }); + + //INVENTORY + sub.push({ + title: window.$gz.locale.get("PartByWarehouseInventoryList"), + icon: "pallet", + route: "/partinventory", + key: key++ + }); + + //PART REQUESTS + sub.push({ + title: window.$gz.locale.get("WorkorderItemPartRequestList"), + icon: undefined, + route: "/partrequests", + key: key++ + }); + + //PURCHASE ORDERS + sub.push({ + title: window.$gz.locale.get("Schedule"), + icon: "calendar-alt", + route: "/schedule/all", + key: key++ + }); + + //NOTE: V7 HAD POITEMS, THAT MAY BE AN ANACHRONISM NOW SO NOT PUTTING HERE + + //PURCHASE ORDER RECEIPTS + sub.push({ + title: window.$gz.locale.get("Schedule"), + icon: "calendar-alt", + route: "/schedule/all", + key: key++ + }); + + //NOTE: V7 HAD PORECEIPTITEMS, THAT MAY BE AN ANACHRONISM NOW SO NOT PUTTING HERE + + //ADJUSTMENTS + sub.push({ + title: window.$gz.locale.get("Schedule"), + icon: "calendar-alt", + route: "/schedule/all", + key: key++ + }); + + //WIDGETS + sub.push({ + title: window.$gz.locale.get("Schedule"), + icon: "calendar-alt", + route: "/schedule/all", + key: key++ + }); + + + + //**** INVENTORY (TOP GROUP) + addNavItem( + window.$gz.locale.get("Service"), + "toolbox", + undefined, + sub, + key++ + ); + //NOTE: If a user has read full record or better then they should have access to that area // if ( diff --git a/ayanova/src/api/locale.js b/ayanova/src/api/locale.js index 680a5100..2996f009 100644 --- a/ayanova/src/api/locale.js +++ b/ayanova/src/api/locale.js @@ -69,6 +69,9 @@ export default { "ContractList", "ClientServiceRequestList", "LoanItemList", + "PartList", + "PartByWarehouseInventoryList", + "WorkorderItemPartRequestList", //"Dispatch", "Inventory", "Accounting",