mirror of
https://github.com/stokebob/bnhtrade.git
synced 2026-03-19 14:37:16 +00:00
Export amazon settlement report fix
This commit is contained in:
31
src/bnhtrade.Core/Test/AutoExec.cs
Normal file
31
src/bnhtrade.Core/Test/AutoExec.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace bnhtrade.Core.Test
|
||||
{
|
||||
public class AutoExec
|
||||
{
|
||||
private string sqlConnectionString;
|
||||
|
||||
public AutoExec(string sqlConnectionString)
|
||||
{
|
||||
this.sqlConnectionString = sqlConnectionString;
|
||||
|
||||
// --------------- start this ------------------- //
|
||||
AmazonSettlement();
|
||||
}
|
||||
private void AmazonSettlement()
|
||||
{
|
||||
var instance = new Core.Logic.Export.AmazonSettlementData(sqlConnectionString);
|
||||
instance.ToInvoice();
|
||||
}
|
||||
|
||||
private void Import()
|
||||
{
|
||||
var instance = new Test.Import.AmazonSettlement(sqlConnectionString);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user