case 4504

This commit is contained in:
2023-04-17 23:06:21 +00:00
parent 07e9051cc4
commit c611a451f3
2 changed files with 14 additions and 13 deletions

View File

@@ -1270,10 +1270,9 @@ export default {
this.obj.active = false; this.obj.active = false;
this.obj.fetchedOn = null; this.obj.fetchedOn = null;
this.obj.fetchCode = null; this.obj.fetchCode = null;
this.obj.licenseExpire = null;
this.obj.created = window.$gz.locale.nowUTC8601String(); this.obj.created = window.$gz.locale.nowUTC8601String();
this.obj.notificationSent = false; this.obj.notificationSent = false;
this.obj.renewal=true; this.obj.renewal = true;
// this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( // this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
// "Copy" // "Copy"
// )}`; // )}`;
@@ -1703,14 +1702,16 @@ function generateMenu(vm) {
}); });
} }
if (vm.rights.change && vm.$route.params.recordid != 0) { //Licenses should only be created from scratch or from subscription
menuOptions.menuItems.push({ //not from other licenses now that subscriptions have been added
title: "Duplicate", // if (vm.rights.change && vm.$route.params.recordid != 0) {
icon: "$sockiClone", // menuOptions.menuItems.push({
key: FORM_KEY + ":duplicate", // title: "Duplicate",
vm: vm // icon: "$sockiClone",
}); // key: FORM_KEY + ":duplicate",
} // vm: vm
// });
// }
if (vm.rights.delete && vm.$route.params.recordid != 0) { if (vm.rights.delete && vm.$route.params.recordid != 0) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: "Delete", title: "Delete",

View File

@@ -1013,7 +1013,7 @@ async function clickHandler(menuItem) {
concurrency: 0, concurrency: 0,
created: window.$gz.locale.nowUTC8601String(), created: window.$gz.locale.nowUTC8601String(),
active: false, //here, active means it's ready for pickup active: false, //here, active means it's ready for pickup
customerId: null, customerId: m.vm.obj.customerId,
pGroup: m.vm.obj.pGroup, pGroup: m.vm.obj.pGroup,
regTo: m.vm.obj.regTo, regTo: m.vm.obj.regTo,
key: null, key: null,
@@ -1219,8 +1219,8 @@ async function clickHandler(menuItem) {
break; break;
} }
console.log(l);
this.$router.push({ m.vm.$router.push({
name: "license-edit", name: "license-edit",
params: { params: {
recordid: 0, recordid: 0,