This commit is contained in:
@@ -24,8 +24,10 @@ namespace rockfishCore.Util
|
|||||||
//FEATURE NAMES
|
//FEATURE NAMES
|
||||||
//Scheduleable users
|
//Scheduleable users
|
||||||
private const string SERVICE_TECHS_FEATURE_NAME = "ServiceTechs";
|
private const string SERVICE_TECHS_FEATURE_NAME = "ServiceTechs";
|
||||||
//Accounting add-on
|
//Add-on's / integrations
|
||||||
private const string ACCOUNTING_FEATURE_NAME = "Accounting";
|
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
|
//This feature name means it's a trial key
|
||||||
private const string TRIAL_FEATURE_NAME = "TrialMode";
|
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
|
//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");
|
sb.AppendLine("Service / Rental license");
|
||||||
continue;
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
if (f.Feature == SERVICE_TECHS_FEATURE_NAME)
|
if (f.Feature == SERVICE_TECHS_FEATURE_NAME)
|
||||||
@@ -288,7 +295,7 @@ Plugins:
|
|||||||
k.Features.Add(new LicenseFeature() { Feature = RENTAL_FEATURE_NAME, Count = 0 });
|
k.Features.Add(new LicenseFeature() { Feature = RENTAL_FEATURE_NAME, Count = 0 });
|
||||||
|
|
||||||
//add every possible feature
|
//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 });
|
k.Features.Add(new LicenseFeature() { Feature = SERVICE_TECHS_FEATURE_NAME, Count = 1000 });
|
||||||
|
|
||||||
return GenerateRavenKey(k);
|
return GenerateRavenKey(k);
|
||||||
@@ -468,7 +475,9 @@ oArP0E2Vbow3JMxq/oeXmHbrLMLQfYyXwFmciLFigOtkd45bfHdrbA==
|
|||||||
k.LicenseFormat = "8";
|
k.LicenseFormat = "8";
|
||||||
k.RegisteredTo = "GZ TestCo Inc.";
|
k.RegisteredTo = "GZ TestCo Inc.";
|
||||||
k.DbId = dbid;
|
k.DbId = dbid;
|
||||||
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 = 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.Features.Add(new LicenseFeature() { Feature = SERVICE_TECHS_FEATURE_NAME, Count = 1000 });
|
||||||
k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddMonths(1);
|
k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddMonths(1);
|
||||||
k.Features.Add(new LicenseFeature() { Feature = TRIAL_FEATURE_NAME, Count = 0 });
|
k.Features.Add(new LicenseFeature() { Feature = TRIAL_FEATURE_NAME, Count = 0 });
|
||||||
|
|||||||
@@ -49,7 +49,9 @@
|
|||||||
<label for="options">Additional features</label>
|
<label for="options">Additional features</label>
|
||||||
<select class="form-control" name="options" id="options" multiple>
|
<select class="form-control" name="options" id="options" multiple>
|
||||||
<option value="ServiceMode">Rental Key</option>
|
<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>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user