mirror of
https://github.com/stokebob/BealeEngineering.git
synced 2026-03-21 07:37:16 +00:00
55 lines
1.1 KiB
C#
55 lines
1.1 KiB
C#
using CsvHelper;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.VisualBasic.FileIO;
|
|
|
|
namespace BealeEngineering.Core.Logic.Import
|
|
{
|
|
public class wipXeroInvoiceFlatFile
|
|
{
|
|
public wipXeroInvoiceFlatFile(string sqlConnectionString)
|
|
{
|
|
SqlConnectionString = sqlConnectionString;
|
|
}
|
|
private string SqlConnectionString { get; set; }
|
|
public void ByFilePath(string filePath)
|
|
{
|
|
// get model list
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//// get db invoices
|
|
//var saleInvInst = new Data.Database.Sale.InvoiceGet(SqlConnectionString);
|
|
//saleInvInst.InvoiceNumber = invDictionary.Keys.ToList();
|
|
//var dataInvList = saleInvInst.GetByFilters();
|
|
|
|
// compare
|
|
|
|
|
|
// update modified records
|
|
|
|
// insert new records <--------- only insert approved invoices
|
|
|
|
// delete records (is this possible??) <------- i think so, include deleted and voided in flatfile??
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
}
|