mirror of
https://github.com/stokebob/bnhtrade.git
synced 2026-05-18 19:48:23 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 94b03eed8a | |||
| 24eee320e8 |
@@ -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] + ">";
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user