This commit is contained in:
@@ -22,17 +22,16 @@ namespace AyaNova.Util
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||
private const int DESIRED_SCHEMA_LEVEL = 1;
|
||||
|
||||
internal const long EXPECTED_COLUMN_COUNT = 1262;
|
||||
internal const long EXPECTED_COLUMN_COUNT = 1263;
|
||||
internal const long EXPECTED_INDEX_COUNT = 144;
|
||||
internal const long EXPECTED_CHECK_CONSTRAINTS = 513;
|
||||
internal const long EXPECTED_CHECK_CONSTRAINTS = 514;
|
||||
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 192;
|
||||
internal const long EXPECTED_VIEWS = 9;
|
||||
internal const long EXPECTED_ROUTINES = 2;
|
||||
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||
|
||||
///////////////////////////////////////////////////////////////// C1262:I144:CC513:FC192:V9:R2
|
||||
|
||||
///////////////////////////////////////////////////////////////// C1263:I144:CC514:FC192:V9:R2
|
||||
|
||||
|
||||
/*
|
||||
@@ -466,7 +465,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
|
||||
|
||||
|
||||
//create translation TEXT tables
|
||||
await ExecQueryAsync("CREATE TABLE atranslation (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name TEXT NOT NULL UNIQUE, stock BOOL, cjkindex BOOL default false)");
|
||||
await ExecQueryAsync("CREATE TABLE atranslation (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name TEXT NOT NULL UNIQUE, baselanguage TEXT NOT NULL, stock BOOL, cjkindex BOOL default false)");
|
||||
await ExecQueryAsync("CREATE TABLE atranslationitem (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, translationid BIGINT NOT NULL REFERENCES atranslation (id), key TEXT NOT NULL, display TEXT NOT NULL)");
|
||||
|
||||
|
||||
|
||||
@@ -227,7 +227,7 @@ namespace AyaNova.Util
|
||||
//Generate owner and lead tech
|
||||
await SeedUserAsync(log, 1, AuthorizationRoles.BizAdmin | AuthorizationRoles.Service | AuthorizationRoles.Inventory | AuthorizationRoles.OpsAdmin, UserType.Service);
|
||||
//Generate one office person / secretary
|
||||
await SeedUserAsync(log, 1, AuthorizationRoles.Service | AuthorizationRoles.Inventory | AuthorizationRoles.Accounting, UserType.NotService);
|
||||
await SeedUserAsync(log, 1, AuthorizationRoles.Service | AuthorizationRoles.Inventory | AuthorizationRoles.Accounting, UserType.NotService);
|
||||
await SeedVendorAsync(log, 10);
|
||||
await SeedUnitModelAsync(log, 10);
|
||||
await SeedCustomerAsync(log, 25);
|
||||
@@ -1644,7 +1644,19 @@ namespace AyaNova.Util
|
||||
gbiz.TaxPartPurchaseId = TCGoods;
|
||||
gbiz.TaxPartSaleId = TCGoods;
|
||||
gbiz.TaxRateSaleId = TCServices;
|
||||
gbiz.CustomerAllowCSR = true;
|
||||
gbiz.CustomerAllowNotifyCSRAccepted = true;
|
||||
gbiz.CustomerAllowNotifyCSRRejected = true;
|
||||
gbiz.CustomerAllowNotifyServiceImminent = true;
|
||||
gbiz.CustomerAllowNotifyWOCompleted = true;
|
||||
gbiz.CustomerAllowNotifyWOCreated = true;
|
||||
gbiz.CustomerAllowUserSettings = true;
|
||||
gbiz.CustomerAllowViewWO = false;
|
||||
gbiz.CustomerAllowWOWiki = false;
|
||||
|
||||
await biz.PutAsync(gbiz);
|
||||
ServerGlobalBizSettings.Initialize(gbiz, null);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1768,7 +1780,7 @@ namespace AyaNova.Util
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public HashSet<string> HashCompanyNames = new HashSet<string>();
|
||||
|
||||
private int TotalSeededCustomers = 0;
|
||||
|
||||
Reference in New Issue
Block a user