This commit is contained in:
2020-06-05 12:19:46 +01:00
parent d6b198777f
commit 738f87f988
2 changed files with 14 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ namespace bnhtrade.Core.Logic.Sku.Price
private string sqlConnectionString;
private bnhtrade.Core.Logic.Log.LogEvent log = new Log.LogEvent();
string err = "FbaPricing Error: ";
private string marginSchemeTaxCode = "T190";
private string marginSchemeTaxCode = Data.Database.Constants.GetMarginSchemeTaxCode();
int repriceHoldOnSalePeriod = 14; // days
private int newConditionId = Data.Database.Constants.GetProductConditionIdNew();
private List<Model.Sku.Price.SkuPriceParameter> skuInfo;
@@ -41,7 +41,7 @@ namespace bnhtrade.Core.Logic.Sku.Price
using (var scope = new TransactionScope())
{
string orderChannel = "Amazon.co.uk"; // may in future enable other order channels
string orderChannel = Data.Database.Constants.GetOrderChannelAmazonUk(); ; // may in future enable other order channels
// get current sku base pricing details (stock quantity, competative price, VAT info, etc.)
skuInfo = new Data.Database.Sku.Price.ReadParameter(sqlConnectionString).Execute();
@@ -70,6 +70,8 @@ namespace bnhtrade.Core.Logic.Sku.Price
// loop through skus returnd from stock query
for (int i = 0; i < skuInfo.Count(); i++)
{
var existing = skuInfo[i];
string skuNumber = skuInfo[i].SkuNumber;
var cr = new Model.Sku.Price.PriceInfo();