2 Commits

Author SHA1 Message Date
Bobbie Hodgetts 94b03eed8a Added option to update Amazon removal order report via console application 2019-03-28 19:13:26 +00:00
bobbie 24eee320e8 Feature to handle different SKU tax types when creating sales invoices
Added feature to handle different tax types when creating Xero sales invoice from Amazon settlement reports. (#1)
2019-03-25 16:32:22 +00:00
2 changed files with 21 additions and 3 deletions
+12 -3
View File
@@ -3875,15 +3875,24 @@ namespace bnhtradeDatabaseClient
// get transaction type id for line
// build the match string
// NB special case for global accounting sale and refunds (also note Goodlwill is included)
// NB special case for global accounting sale and refunds (also note Goodlwill is included) and sku's where tax is included
string matchString = "<AmazonReport><SettlementReportLine><" + match01 + "><" + match02 + ">";
if ((match01 == "Order" || match01 == "Refund") && match02 == "ItemPrice" && (match03 == "Principal" || match03 == "Goodwill"))
if ((match01 == "Order" || match01 == "Refund") && match02 == "ItemPrice" && (match03 == "Principal" || match03 == "Goodwill" || match03 == "Tax"))
{
if (lineSku == "")
{
throw new Exception("Could not retrive Sku from SettleLineId=" + settlementLineId);
}
matchString = matchString + "<Principal>";
if (match03 == "Goodwill")
{
matchString = matchString + "<Principal>";
}
else
{
matchString = matchString + "<" + match03 + ">";
}
if (dicSkuToTaxCodeId.ContainsKey(lineSku))
{
matchString = matchString + "<AccountTaxCodeID=" + dicSkuToTaxCodeId[lineSku] + ">";
+9
View File
@@ -67,6 +67,7 @@ namespace bnhtradeScheduledTasks
Console.WriteLine("<6> Update Fba Sale Shipment Data");
Console.WriteLine("<7> Update Fba Return Data");
Console.WriteLine("<8> Update Fba Adustment Data");
Console.WriteLine("<9> Update Fba Removal Order Data");
Console.WriteLine();
Console.WriteLine("<0> Back");
Console.WriteLine("");
@@ -142,6 +143,14 @@ namespace bnhtradeScheduledTasks
Console.WriteLine("Complete, press any key to continue...");
Console.ReadKey();
}
else if (input == "9")
{
Console.Clear();
var task = new AmazonReport();
task.UpdateFbaRemovalOrderReport(sqlConnectionString);
Console.WriteLine("Complete, press any key to continue...");
Console.ReadKey();
}
} while (true);
}
else if (input == "2")