Commit c878bfa2 by lizefeng

放款 预估。自动找站点

parent f150d264
......@@ -139,6 +139,14 @@ namespace AutoTurnOver.Services
var events = GetFinancialEventsByGroupId(item, feeItem.FinancialEventGroupId);
// 从订单中尝试提取站点
var currencyCodes = events.Where(s => s.AdjustmentEventList != null && s.AdjustmentEventList.Any(s => s.AdjustmentAmount!=null && !(string.IsNullOrWhiteSpace(s.AdjustmentAmount.CurrencyCode)) )).ToList();
if(currencyCodes!=null && currencyCodes.Count >= 1)
{
var currencyCode = currencyCodes[0].AdjustmentEventList.FirstOrDefault(s => s.AdjustmentAmount != null && (!string.IsNullOrWhiteSpace(s.AdjustmentAmount.CurrencyCode)));
transferFee.MarketplaceName = ComputeMarketplaceNameByCurrency(currencyCode.AdjustmentAmount.CurrencyCode);
transferFee.MarketplaceNameSys = ComputeMarketplaceNameByCurrency(currencyCode.AdjustmentAmount.CurrencyCode);
}
feeDbs.Add(transferFee);
......
......@@ -49,7 +49,7 @@ namespace ResetOutofstock
//report_invest_return_dao.SynchBtmOrderRefund();
//report_invest_return_dao.CalculationStockScore("962073701");
//dc_ana_deviation_dao.PushAnaTask();
//new AmazonDataSynchroService().SynchroFinancialEventGroups("Zayigus", "US");
//new AmazonDataSynchroService().SynchroFinancialEventGroups("Natural Daisy Encens", "US");
//new AmazonDataSynchroService().SetMarketplaceName(DateTime.Now);
//new AmazonDataSynchroService().SetSettlementByDate();
//new AmazonDataSynchroService().SetMarketplaceName(DateTime.Now.AddHours(-24), 372205);
......@@ -59,7 +59,7 @@ namespace ResetOutofstock
//new AmazonDataSynchroService().SynchroReportIdByCreate(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_V2_SETTLEMENT_REPORT_DATA_XML, 23, "Ruieach", "US");
//new AmazonDataSynchroService().SynchroReportIdByCreate(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_FBA_INVENTORY_PLANNING_DATA, version: 22, account: "Elite99 Nail Art", site: "US",
// btime: DateTime.Parse("2023-04-01"), DateTime.Parse("2023-04-24 23:59:59"));
new AmazonDataSynchroService().SynchroReportIds(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_V2_SETTLEMENT_REPORT_DATA_XML, 13, "Zayigus", "US");
//new AmazonDataSynchroService().SynchroReportIds(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_V2_SETTLEMENT_REPORT_DATA_XML, 13, "Zayigus", "US");
//new AmazonDataSynchroService().AnaReport(1, data_id: "18360251771");
//new AmazonDataSynchroService().AnaFbaShipmentReport();
//new AmazonDataSynchroService().AnaFbaStorageFeeReport(status:-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment