From da3da97262ca652811584942564cfffbc33e05a0 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 7 Jan 2023 20:52:30 +0000 Subject: [PATCH] --- src/views/biz-license.vue | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/views/biz-license.vue b/src/views/biz-license.vue index 7213ee2..6e6eac3 100644 --- a/src/views/biz-license.vue +++ b/src/views/biz-license.vue @@ -1259,26 +1259,20 @@ export default { } }, customerChanged(newName) { - console.log("CUSTOMER CHANGED"); this.obj.regTo = newName; }, dtAddOneWeek: function(propName) { - // // eslint-disable-next-line - // debugger; - const now = window.$gz.locale.nowUTC8601String(this.timeZoneName); - this.obj[propName] = window.$gz.locale.addDurationToUTC8601String(now, { + addToDate(this, propName, { days: 7 }); }, dtAddOneMonth: function(propName) { - const now = window.$gz.locale.nowUTC8601String(this.timeZoneName); - this.obj[propName] = window.$gz.locale.addDurationToUTC8601String(now, { + addToDate(this, propName, { months: 1 }); }, dtAddOneYear: function(propName) { - const now = window.$gz.locale.nowUTC8601String(this.timeZoneName); - this.obj[propName] = window.$gz.locale.addDurationToUTC8601String(now, { + addToDate(this, propName, { years: 1 }); }, @@ -1292,16 +1286,17 @@ export default { RavenPerpetual = 2, RavenSubscription = 3 */ - if (this.pGroup == 3) { - // RavenSubscription = 3 - addToDate(this, "licenseExpire", span); - } //all pgroups have maint expire valid addToDate(this, "maintenanceExpire", span); - if (this.pGroup == 1) { + if (this.obj.pGroup == 3) { + // RavenSubscription = 3 + addToDate(this, "licenseExpire", span); + } + + if (this.obj.pGroup == 1) { //AyaNova7 = 1, - if (this.obj.wbi) { + if (this.obj.wbi != null) { addToDate(this, "wbiExpires", span); } if (this.obj.mbi) { @@ -1635,7 +1630,8 @@ async function fetchTranslatedText() { "LicenseMaintenanceExpire", "LicenseExpiration", "ProductGroup", - "Customer" + "Customer", + "DatabaseID" ]); } //////////////////////