diff --git a/src/views/biz-license.vue b/src/views/biz-license.vue index f85f949..c6c9e83 100644 --- a/src/views/biz-license.vue +++ b/src/views/biz-license.vue @@ -1270,10 +1270,9 @@ export default { this.obj.active = false; this.obj.fetchedOn = null; this.obj.fetchCode = null; - this.obj.licenseExpire = null; this.obj.created = window.$gz.locale.nowUTC8601String(); this.obj.notificationSent = false; - this.obj.renewal=true; + this.obj.renewal = true; // this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( // "Copy" // )}`; @@ -1703,14 +1702,16 @@ function generateMenu(vm) { }); } - if (vm.rights.change && vm.$route.params.recordid != 0) { - menuOptions.menuItems.push({ - title: "Duplicate", - icon: "$sockiClone", - key: FORM_KEY + ":duplicate", - vm: vm - }); - } + //Licenses should only be created from scratch or from subscription + //not from other licenses now that subscriptions have been added + // if (vm.rights.change && vm.$route.params.recordid != 0) { + // menuOptions.menuItems.push({ + // title: "Duplicate", + // icon: "$sockiClone", + // key: FORM_KEY + ":duplicate", + // vm: vm + // }); + // } if (vm.rights.delete && vm.$route.params.recordid != 0) { menuOptions.menuItems.push({ title: "Delete", diff --git a/src/views/biz-subscription.vue b/src/views/biz-subscription.vue index 8294e39..7f231de 100644 --- a/src/views/biz-subscription.vue +++ b/src/views/biz-subscription.vue @@ -1013,7 +1013,7 @@ async function clickHandler(menuItem) { concurrency: 0, created: window.$gz.locale.nowUTC8601String(), active: false, //here, active means it's ready for pickup - customerId: null, + customerId: m.vm.obj.customerId, pGroup: m.vm.obj.pGroup, regTo: m.vm.obj.regTo, key: null, @@ -1219,8 +1219,8 @@ async function clickHandler(menuItem) { break; } - - this.$router.push({ + console.log(l); + m.vm.$router.push({ name: "license-edit", params: { recordid: 0,