This commit is contained in:
@@ -24,8 +24,10 @@ namespace rockfishCore.Util
|
||||
//FEATURE NAMES
|
||||
//Scheduleable users
|
||||
private const string SERVICE_TECHS_FEATURE_NAME = "ServiceTechs";
|
||||
//Accounting add-on
|
||||
private const string ACCOUNTING_FEATURE_NAME = "Accounting";
|
||||
//Add-on's / integrations
|
||||
private const string OLI_FEATURE_NAME = "OLI";
|
||||
private const string QBI_FEATURE_NAME = "QBI";
|
||||
private const string QBOI_FEATURE_NAME = "QBOI";
|
||||
//This feature name means it's a trial key
|
||||
private const string TRIAL_FEATURE_NAME = "TrialMode";
|
||||
//This feature name means it's a SAAS or rental mode key for month to month hosted service
|
||||
@@ -95,9 +97,14 @@ Plugins:
|
||||
sb.AppendLine("Service / Rental license");
|
||||
continue;
|
||||
}
|
||||
if (f.Feature == ACCOUNTING_FEATURE_NAME)
|
||||
if (f.Feature == QBI_FEATURE_NAME)
|
||||
{
|
||||
sb.AppendLine("Accounting option");
|
||||
sb.AppendLine("QuickBooks desktop integration option");
|
||||
continue;
|
||||
}
|
||||
if (f.Feature == QBOI_FEATURE_NAME)
|
||||
{
|
||||
sb.AppendLine("QuickBooks online integration option");
|
||||
continue;
|
||||
}
|
||||
if (f.Feature == SERVICE_TECHS_FEATURE_NAME)
|
||||
@@ -288,7 +295,7 @@ Plugins:
|
||||
k.Features.Add(new LicenseFeature() { Feature = RENTAL_FEATURE_NAME, Count = 0 });
|
||||
|
||||
//add every possible feature
|
||||
k.Features.Add(new LicenseFeature() { Feature = ACCOUNTING_FEATURE_NAME, Count = 0 });
|
||||
k.Features.Add(new LicenseFeature() { Feature = QBI_FEATURE_NAME, Count = 0 });
|
||||
k.Features.Add(new LicenseFeature() { Feature = SERVICE_TECHS_FEATURE_NAME, Count = 1000 });
|
||||
|
||||
return GenerateRavenKey(k);
|
||||
@@ -465,10 +472,12 @@ oArP0E2Vbow3JMxq/oeXmHbrLMLQfYyXwFmciLFigOtkd45bfHdrbA==
|
||||
|
||||
//Build a sample test key, sign it and return it
|
||||
AyaNovaLicenseKey k = new AyaNovaLicenseKey();
|
||||
k.LicenseFormat = "8";
|
||||
k.LicenseFormat = "8";
|
||||
k.RegisteredTo = "GZ TestCo Inc.";
|
||||
k.DbId = dbid;
|
||||
k.Features.Add(new LicenseFeature() { Feature = ACCOUNTING_FEATURE_NAME, Count = 0 });
|
||||
k.DbId = dbid;
|
||||
k.Features.Add(new LicenseFeature() { Feature = QBI_FEATURE_NAME, Count = 0 });
|
||||
k.Features.Add(new LicenseFeature() { Feature = QBOI_FEATURE_NAME, Count = 0 });
|
||||
k.Features.Add(new LicenseFeature() { Feature = OLI_FEATURE_NAME, Count = 0 });
|
||||
k.Features.Add(new LicenseFeature() { Feature = SERVICE_TECHS_FEATURE_NAME, Count = 1000 });
|
||||
k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddMonths(1);
|
||||
k.Features.Add(new LicenseFeature() { Feature = TRIAL_FEATURE_NAME, Count = 0 });
|
||||
|
||||
@@ -49,7 +49,9 @@
|
||||
<label for="options">Additional features</label>
|
||||
<select class="form-control" name="options" id="options" multiple>
|
||||
<option value="ServiceMode">Rental Key</option>
|
||||
<option value="Accounting">Accounting</option>
|
||||
<option value="QBI">QuickBooks desktop</option>
|
||||
<option value="QBOI">QuickBooks online</option>
|
||||
<option value="OUTLOOK">Outlook</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user