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_DB_CONNECTION": "Server=localhost;Username=postgres;Password=sockeye;Database=sockeye;CommandTimeout=300;",
|
||||||
"SOCKEYE_DATA_PATH": "c:\\temp\\sockeye",
|
"SOCKEYE_DATA_PATH": "c:\\temp\\sockeye",
|
||||||
"SOCKEYE_USE_URLS": "http://*:7676;",
|
"SOCKEYE_USE_URLS": "http://*:7676;",
|
||||||
//"SOCKEYE_PERMANENTLY_ERASE_DATABASE": "true",
|
"SOCKEYE_PERMANENTLY_ERASE_DATABASE": "true",
|
||||||
//"SOCKEYE_REPORT_RENDERING_TIMEOUT":"1",
|
//"SOCKEYE_REPORT_RENDERING_TIMEOUT":"1",
|
||||||
"SOCKEYE_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin"
|
"SOCKEYE_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -137,6 +137,15 @@ namespace Sockeye.DataList
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
|
{
|
||||||
|
TKey = "DatabaseID",
|
||||||
|
FieldKey = "DatabaseID",
|
||||||
|
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||||
|
SqlValueColumnName = "apurchase.dbid"
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
FieldDefinitions.Add(new DataListFieldDefinition
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
{
|
{
|
||||||
TKey = "Tags",
|
TKey = "Tags",
|
||||||
|
|||||||
@@ -12,10 +12,21 @@ namespace Sockeye.DataList
|
|||||||
|
|
||||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||||
DefaultColumns = new List<string>() { "VendorNotificationCreated", "VendorNotificationProcessed" };
|
DefaultColumns = new List<string>() { "VendorNotification", "VendorNotificationCreated", "VendorNotificationProcessed" };
|
||||||
DefaultSortBy = new Dictionary<string, string>() { { "VendorNotificationCreated", "-" } };
|
DefaultSortBy = new Dictionary<string, string>() { { "VendorNotification", "-" } };
|
||||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||||
|
|
||||||
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
|
{
|
||||||
|
TKey = "VendorNotification",
|
||||||
|
FieldKey = "VendorNotification",
|
||||||
|
SockType = (int)SockType.VendorNotification,
|
||||||
|
UiFieldDataType = (int)UiFieldDataType.Integer,
|
||||||
|
SqlIdColumnName = "avendornotification.id",
|
||||||
|
SqlValueColumnName = "avendornotification.id",
|
||||||
|
IsRowId = true
|
||||||
|
});
|
||||||
|
|
||||||
FieldDefinitions.Add(new DataListFieldDefinition
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
{
|
{
|
||||||
TKey = "VendorNotificationCreated",
|
TKey = "VendorNotificationCreated",
|
||||||
@@ -23,8 +34,7 @@ namespace Sockeye.DataList
|
|||||||
SockType = (int)SockType.VendorNotification,
|
SockType = (int)SockType.VendorNotification,
|
||||||
UiFieldDataType = (int)UiFieldDataType.DateTime,
|
UiFieldDataType = (int)UiFieldDataType.DateTime,
|
||||||
SqlIdColumnName = "avendornotification.id",
|
SqlIdColumnName = "avendornotification.id",
|
||||||
SqlValueColumnName = "avendornotification.created",
|
SqlValueColumnName = "avendornotification.created"
|
||||||
IsRowId = true
|
|
||||||
});
|
});
|
||||||
|
|
||||||
FieldDefinitions.Add(new DataListFieldDefinition
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
|
|||||||
@@ -199,6 +199,20 @@ namespace Sockeye.Biz
|
|||||||
p.Revenue = jPurchase["accounting"]["your_revenue"].Value<decimal>();
|
p.Revenue = jPurchase["accounting"]["your_revenue"].Value<decimal>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Capture raven database id if present
|
||||||
|
if (jPurchase["additional_information"] != null)
|
||||||
|
{
|
||||||
|
var jaAdditionalItems = (JArray)jPurchase["additional_information"];
|
||||||
|
foreach (JObject jAdditionalItem in jaAdditionalItems)
|
||||||
|
{
|
||||||
|
if (jAdditionalItem["additional_id"] != null && jAdditionalItem["additional_id"].Value<string>() == "DATABASEID")
|
||||||
|
{
|
||||||
|
p.DbId = jAdditionalItem["additional_value"].Value<string>();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (jPurchase["promotion_coupon"] != null)
|
if (jPurchase["promotion_coupon"] != null)
|
||||||
p.CouponCode = jPurchase["promotion_coupon"].Value<string>();
|
p.CouponCode = jPurchase["promotion_coupon"].Value<string>();
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ namespace Sockeye.Models
|
|||||||
[NotMapped]
|
[NotMapped]
|
||||||
public string ProductViz { get; set; }
|
public string ProductViz { get; set; }
|
||||||
public string SalesOrderNumber { get; set; }
|
public string SalesOrderNumber { get; set; }
|
||||||
|
public string DbId { get; set; }//if a RAVEN order
|
||||||
/*
|
/*
|
||||||
"accounting": {
|
"accounting": {
|
||||||
"currency": "USD",
|
"currency": "USD",
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace Sockeye.Util
|
|||||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||||
private const int DESIRED_SCHEMA_LEVEL = 17;
|
private const int DESIRED_SCHEMA_LEVEL = 17;
|
||||||
|
|
||||||
internal const long EXPECTED_COLUMN_COUNT = 528;
|
internal const long EXPECTED_COLUMN_COUNT = 529;
|
||||||
internal const long EXPECTED_INDEX_COUNT = 75;
|
internal const long EXPECTED_INDEX_COUNT = 75;
|
||||||
internal const long EXPECTED_CHECK_CONSTRAINTS = 250;
|
internal const long EXPECTED_CHECK_CONSTRAINTS = 250;
|
||||||
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 37;
|
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 37;
|
||||||
@@ -31,7 +31,7 @@ namespace Sockeye.Util
|
|||||||
|
|
||||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||||
|
|
||||||
///////////////////////////////////////// (C528:I75:CC250:FC37:V0:R2)
|
///////////////////////////////////////// (C529:I75:CC250:FC37:V0:R2)
|
||||||
/*
|
/*
|
||||||
|
|
||||||
MAXIMUM POSTGRES OBJECT NAME LENGTH: 63 CHARACTERS
|
MAXIMUM POSTGRES OBJECT NAME LENGTH: 63 CHARACTERS
|
||||||
@@ -903,7 +903,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
|
|||||||
+ "vendorid BIGINT NOT NULL REFERENCES avendor(id), productid BIGINT REFERENCES aproduct(id), pgroup INTEGER NOT NULL DEFAULT 4, salesordernumber TEXT NOT NULL, "
|
+ "vendorid BIGINT NOT NULL REFERENCES avendor(id), productid BIGINT REFERENCES aproduct(id), pgroup INTEGER NOT NULL DEFAULT 4, salesordernumber TEXT NOT NULL, "
|
||||||
+ "productnet DECIMAL(38,18) NOT NULL default 0, discount DECIMAL(38,18) NOT NULL default 0, vendorfee DECIMAL(38,18) NOT NULL default 0, revenue DECIMAL(38,18) NOT NULL default 0, "
|
+ "productnet DECIMAL(38,18) NOT NULL default 0, discount DECIMAL(38,18) NOT NULL default 0, vendorfee DECIMAL(38,18) NOT NULL default 0, revenue DECIMAL(38,18) NOT NULL default 0, "
|
||||||
+ "currency TEXT, purchasedate TIMESTAMPTZ NOT NULL, expiredate TIMESTAMPTZ, canceldate TIMESTAMPTZ, couponcode text, notes text, "
|
+ "currency TEXT, purchasedate TIMESTAMPTZ NOT NULL, expiredate TIMESTAMPTZ, canceldate TIMESTAMPTZ, couponcode text, notes text, "
|
||||||
+ "renewnoticesent BOOL NOT NULL DEFAULT false, quantity INTEGER NOT NULL DEFAULT 1, "
|
+ "renewnoticesent BOOL NOT NULL DEFAULT false, quantity INTEGER NOT NULL DEFAULT 1, dbid TEXT, "
|
||||||
+ "vendornotificationid BIGINT REFERENCES avendornotification(id), licenseid BIGINT REFERENCES alicense(id), processed BOOL NOT NULL DEFAULT false, "
|
+ "vendornotificationid BIGINT REFERENCES avendornotification(id), licenseid BIGINT REFERENCES alicense(id), processed BOOL NOT NULL DEFAULT false, "
|
||||||
+ "wiki TEXT, tags VARCHAR(255) ARRAY )");
|
+ "wiki TEXT, tags VARCHAR(255) ARRAY )");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user