This commit is contained in:
2021-01-25 20:02:44 +00:00
parent 84a7fa9027
commit aefc8f0d68
3 changed files with 416 additions and 1 deletions

View File

@@ -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) {