Commit 26007ac7 by lizefeng

fix

parent 0e8271c9
...@@ -963,7 +963,7 @@ namespace AutoTurnOver.Services ...@@ -963,7 +963,7 @@ namespace AutoTurnOver.Services
ana_task.content = jsonText; ana_task.content = jsonText;
var table = CsvFileHelper.ReadFromCSV(reportData.ReportDocumentId, true, '\t'); var table = CsvFileHelper.ReadFromCSV(reportData.ReportDocumentId, true, '\t');
if (table.Columns.Contains("estimated-ltsf-next-charge")) if (table.Columns.Contains("estimated-ltsf-next-charge") || table.Columns.Contains("estimated-storage-cost-next-month"))
{ {
foreach (DataRow row in table.Rows) foreach (DataRow row in table.Rows)
{ {
...@@ -980,7 +980,7 @@ namespace AutoTurnOver.Services ...@@ -980,7 +980,7 @@ namespace AutoTurnOver.Services
asin = row.DataRowToString("asin"), asin = row.DataRowToString("asin"),
report_end_date = reportData.DataEndTime ?? new DateTime(1991, 1, 1) report_end_date = reportData.DataEndTime ?? new DateTime(1991, 1, 1)
}; };
storageFee.fee = row.DataRowToNumber("estimated-ltsf-next-charge") ?? 0; storageFee.fee = row.DataRowToNumber("estimated-ltsf-next-charge") ?? (row.DataRowToNumber("estimated-storage-cost-next-month") ??0);
storageFee._date = reportData.DataStartTime.Value.ToDayHome(); storageFee._date = reportData.DataStartTime.Value.ToDayHome();
//storageFee.site = row.DataRowToString("country_code"); //storageFee.site = row.DataRowToString("country_code");
if ("GB".Equals(storageFee.site, StringComparison.CurrentCultureIgnoreCase)) if ("GB".Equals(storageFee.site, StringComparison.CurrentCultureIgnoreCase))
......
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