This commit is contained in:
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@@ -33,7 +33,7 @@
|
||||
"SOCKEYE_DB_CONNECTION": "Server=localhost;Username=postgres;Password=sockeye;Database=sockeye;CommandTimeout=300;",
|
||||
"SOCKEYE_DATA_PATH": "c:\\temp\\sockeye",
|
||||
"SOCKEYE_USE_URLS": "http://*:7676;",
|
||||
//"SOCKEYE_PERMANENTLY_ERASE_DATABASE": "true",
|
||||
"SOCKEYE_PERMANENTLY_ERASE_DATABASE": "true",
|
||||
//"SOCKEYE_REPORT_RENDERING_TIMEOUT":"1",
|
||||
"SOCKEYE_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin"
|
||||
},
|
||||
|
||||
@@ -253,6 +253,7 @@ namespace Sockeye.Biz
|
||||
//create product if not exist then import
|
||||
//Get product id if exists
|
||||
var ProductName = jPurchase["name"].Value<string>();
|
||||
bool maybeRenewal=ProductName.ToLowerInvariant().Contains("renew");
|
||||
ProductName = ProductName.Replace("- Renewal", "").Replace(" Renewal", "").Replace(" RENEWAL", "").Replace("CANCELLED ", "").Replace("CANCELED ", "");
|
||||
var p = await ct.Product.AsNoTracking().FirstOrDefaultAsync(z => z.VendorCode == jPurchase["productCode"].Value<string>());
|
||||
|
||||
@@ -304,6 +305,7 @@ namespace Sockeye.Biz
|
||||
s.RenewNoticeSent = jPurchase["renewNoticeSent"].Value<bool>();
|
||||
s.SalesOrderNumber = jPurchase["salesOrderNumber"].Value<string>();
|
||||
s.Notes = jPurchase["notes"].Value<string>();
|
||||
s.IsRenewal=maybeRenewal;
|
||||
PurchaseBiz biz = PurchaseBiz.GetBiz(ct);
|
||||
await biz.CreateAsync(s);
|
||||
}
|
||||
|
||||
@@ -22,16 +22,16 @@ namespace Sockeye.Util
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||
private const int DESIRED_SCHEMA_LEVEL = 17;
|
||||
|
||||
internal const long EXPECTED_COLUMN_COUNT = 530;
|
||||
internal const long EXPECTED_COLUMN_COUNT = 531;
|
||||
internal const long EXPECTED_INDEX_COUNT = 75;
|
||||
internal const long EXPECTED_CHECK_CONSTRAINTS = 251;
|
||||
internal const long EXPECTED_CHECK_CONSTRAINTS = 252;
|
||||
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 37;
|
||||
internal const long EXPECTED_VIEWS = 0;
|
||||
internal const long EXPECTED_ROUTINES = 2;
|
||||
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||
|
||||
///////////////////////////////////////// (C530:I75:CC251:FC37:V0:R2)
|
||||
///////////////////////////////////////// C531:I75:CC252:FC37:V0:R2
|
||||
/*
|
||||
|
||||
MAXIMUM POSTGRES OBJECT NAME LENGTH: 63 CHARACTERS
|
||||
|
||||
Reference in New Issue
Block a user