This commit is contained in:
@@ -706,6 +706,12 @@ async function clickHandler(menuItem) {
|
||||
});
|
||||
}
|
||||
break;
|
||||
case "PartSerialNumbersAvailable":
|
||||
m.vm.$router.push({
|
||||
name: "inv-part-serials",
|
||||
params: { recordid: m.vm.obj.id }
|
||||
});
|
||||
break;
|
||||
|
||||
default:
|
||||
window.$gz.eventBus.$emit(
|
||||
@@ -804,6 +810,15 @@ function generateMenu(vm) {
|
||||
vm: vm
|
||||
});
|
||||
|
||||
if (vm.obj.id != null && vm.obj.id != 0) {
|
||||
menuOptions.menuItems.push({
|
||||
title: "PartSerialNumbersAvailable",
|
||||
icon: "$ayiPallet",
|
||||
key: FORM_KEY + ":PartSerialNumbersAvailable",
|
||||
vm: vm
|
||||
});
|
||||
}
|
||||
|
||||
menuOptions.menuItems.push({ divider: true, inset: false });
|
||||
|
||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||
@@ -827,6 +842,7 @@ async function fetchTranslatedText(vm) {
|
||||
await window.$gz.translation.cacheTranslations([
|
||||
"Part",
|
||||
"PartByWarehouseInventoryList",
|
||||
"PartSerialNumbersAvailable",
|
||||
"PartName",
|
||||
"PartNotes",
|
||||
"PartPartNumber",
|
||||
|
||||
Reference in New Issue
Block a user