From d8b9729b2d9ca432faa02b57a39ba7d8e8fbadda Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 6 Feb 2023 23:32:22 +0000 Subject: [PATCH] --- server/generator/SockBotProcessPurchasesIntoLicenses.cs | 4 ++++ server/util/AySchema.cs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server/generator/SockBotProcessPurchasesIntoLicenses.cs b/server/generator/SockBotProcessPurchasesIntoLicenses.cs index 4b839fd..f4a7d81 100644 --- a/server/generator/SockBotProcessPurchasesIntoLicenses.cs +++ b/server/generator/SockBotProcessPurchasesIntoLicenses.cs @@ -130,6 +130,7 @@ namespace Sockeye.Biz if (isV7) { newLicense.FetchEmail = purchaseGroupCustomer.EmailAddress; + newLicense.PGroup = ProductGroup.AyaNova7; //is there a prior license? if (lastLicense != null) @@ -321,18 +322,21 @@ namespace Sockeye.Biz case "301028317"://perpetual newLicense.Users = purchase.Quantity; newLicense.MaintenanceExpire = dtOneYear; + newLicense.PGroup = ProductGroup.RavenPerpetual; break; case "301028467"://subscription monthly newLicense.Users = purchase.Quantity; newLicense.MaintenanceExpire = dtOneMonth; //FUTURE: for now subscriptions all 20gb if ever add ability to go higher max data with product code etc then remove this newLicense.MaxDataGB = 20; + newLicense.PGroup = ProductGroup.RavenSubscription; break; case "301028468"://subscription yearly newLicense.Users = purchase.Quantity; newLicense.MaintenanceExpire = dtOneYear; //FUTURE: for now subscriptions all 20gb if ever add ability to go higher max data with product code etc then remove this newLicense.MaxDataGB = 20; + newLicense.PGroup = ProductGroup.RavenSubscription; break; case "301033167"://Customer users monthly price case "301033168"://Customer users yearly price diff --git a/server/util/AySchema.cs b/server/util/AySchema.cs index f318bc9..6c7f9b8 100644 --- a/server/util/AySchema.cs +++ b/server/util/AySchema.cs @@ -897,7 +897,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE"); + "wiki TEXT, tags VARCHAR(255) ARRAY )"); await ExecQueryAsync("CREATE TABLE avendornotification (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, created TIMESTAMPTZ NOT NULL, vendorid BIGINT NOT NULL REFERENCES avendor(id), " - + "vendordata TEXT, processed TIMESTAMPTZ, tags VARCHAR(255) ARRAY )"); + + "vendordata TEXT, processed TIMESTAMPTZ, tags VARCHAR(255) ARRAY )"); await ExecQueryAsync("CREATE TABLE apurchase (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, customerid BIGINT REFERENCES acustomer(id) ON DELETE CASCADE, regto TEXT NOT NULL, " + "vendorid BIGINT NOT NULL REFERENCES avendor(id), productid BIGINT REFERENCES aproduct(id), pgroup INTEGER NOT NULL DEFAULT 4, salesordernumber TEXT NOT NULL, "