diff --git a/ayanova/src/router.js b/ayanova/src/router.js index 5ca46e18..5a05df55 100644 --- a/ayanova/src/router.js +++ b/ayanova/src/router.js @@ -413,6 +413,14 @@ export default new Router({ component: () => import(/* webpackChunkName: "inv" */ "./views/inv-part-serials.vue") }, + { + path: "/inv-part-stock-levels/:recordid", + name: "inv-part-stock-levels", + component: () => + import( + /* webpackChunkName: "inv" */ "./views/inv-part-stock-levels.vue" + ) + }, { path: "/inv-part-assemblies", name: "inv-part-assemblies", diff --git a/ayanova/src/views/inv-part-stock-levels.vue b/ayanova/src/views/inv-part-stock-levels.vue new file mode 100644 index 00000000..9654e0d7 --- /dev/null +++ b/ayanova/src/views/inv-part-stock-levels.vue @@ -0,0 +1,390 @@ + + + + + + + + + + + + + + + + + + + {{ $ay.t("PartSerialNumbersAvailable") }} + + + + + + + + {{ item }} + + + + $ayiTrashAlt + + + + + + + + + + + + + + + + + diff --git a/ayanova/src/views/inv-part.vue b/ayanova/src/views/inv-part.vue index 0671b6ff..790f3c4e 100644 --- a/ayanova/src/views/inv-part.vue +++ b/ayanova/src/views/inv-part.vue @@ -712,6 +712,12 @@ async function clickHandler(menuItem) { params: { recordid: m.vm.obj.id } }); break; + case "PartStockingLevels": + m.vm.$router.push({ + name: "inv-part-stocking-levels", + params: { recordid: m.vm.obj.id } + }); + break; default: window.$gz.eventBus.$emit( @@ -803,7 +809,11 @@ function generateMenu(vm) { //---- SHOW ALL --- //MIGRATE_OUTSTANDING part inventory link from part form - if (window.$gz.store.state.globalSettings.useInventory) { + if ( + vm.obj.id != null && + vm.obj.id != 0 && + window.$gz.store.state.globalSettings.useInventory + ) { menuOptions.menuItems.push({ title: "PartByWarehouseInventoryList", icon: "$ayiPallet", @@ -820,6 +830,13 @@ function generateMenu(vm) { ":TODO-PartByWareHouseInventoryTransactionListLinkForThisPart", vm: vm }); + + menuOptions.menuItems.push({ + title: "PartStockingLevels", + icon: null, + key: FORM_KEY + ":PartStockingLevels", + vm: vm + }); } if (vm.obj.id != null && vm.obj.id != 0) {