This commit is contained in:
@@ -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