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
|
// get transaction type id for line
|
||||||
// build the match string
|
// 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 + ">";
|
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 == "")
|
if (lineSku == "")
|
||||||
{
|
{
|
||||||
throw new Exception("Could not retrive Sku from SettleLineId=" + settlementLineId);
|
throw new Exception("Could not retrive Sku from SettleLineId=" + settlementLineId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (match03 == "Goodwill")
|
||||||
|
{
|
||||||
matchString = matchString + "<Principal>";
|
matchString = matchString + "<Principal>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
matchString = matchString + "<" + match03 + ">";
|
||||||
|
}
|
||||||
|
|
||||||
if (dicSkuToTaxCodeId.ContainsKey(lineSku))
|
if (dicSkuToTaxCodeId.ContainsKey(lineSku))
|
||||||
{
|
{
|
||||||
matchString = matchString + "<AccountTaxCodeID=" + dicSkuToTaxCodeId[lineSku] + ">";
|
matchString = matchString + "<AccountTaxCodeID=" + dicSkuToTaxCodeId[lineSku] + ">";
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ namespace bnhtradeScheduledTasks
|
|||||||
Console.WriteLine("<6> Update Fba Sale Shipment Data");
|
Console.WriteLine("<6> Update Fba Sale Shipment Data");
|
||||||
Console.WriteLine("<7> Update Fba Return Data");
|
Console.WriteLine("<7> Update Fba Return Data");
|
||||||
Console.WriteLine("<8> Update Fba Adustment Data");
|
Console.WriteLine("<8> Update Fba Adustment Data");
|
||||||
|
Console.WriteLine("<9> Update Fba Removal Order Data");
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
Console.WriteLine("<0> Back");
|
Console.WriteLine("<0> Back");
|
||||||
Console.WriteLine("");
|
Console.WriteLine("");
|
||||||
@@ -142,6 +143,14 @@ namespace bnhtradeScheduledTasks
|
|||||||
Console.WriteLine("Complete, press any key to continue...");
|
Console.WriteLine("Complete, press any key to continue...");
|
||||||
Console.ReadKey();
|
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);
|
} while (true);
|
||||||
}
|
}
|
||||||
else if (input == "2")
|
else if (input == "2")
|
||||||
|
|||||||
Reference in New Issue
Block a user