Alea iacta est - now this must be complete by month's end

This commit is contained in:
Rick Falkvinge
2018-11-14 15:10:17 +01:00
parent e934435432
commit 577ae8275e
3 changed files with 5 additions and 1 deletions
@@ -335,6 +335,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
StreamReader reader = new StreamReader (StorageRoot + uploadedDoc.ServerFileName,
Encoding.GetEncoding (1252)))
{
throw new NotImplementedException(); // TODO
externalData.LoadData (reader, ((ProcessThreadArguments) args).Organization, account.ForeignCurrency);
}
@@ -156,6 +156,7 @@
var halfway = false;
var currentYear = <%=DateTime.Today.Year %>;
var localizedFirstUploadConfirmation = SwarmopsJS.unescape("<%=this.Localized_ConfirmFirstUpload%>");
</script>
@@ -392,6 +392,7 @@ namespace Swarmops.Site.Pages.Ledgers
{
try
{
throw new NotImplementedException();
externalData.LoadData (reader, organization, accountCurrency);
// catch here and set result to BAD
ImportResults results = ProcessImportedData (externalData, (ProcessThreadArguments) args);
@@ -432,8 +433,9 @@ namespace Swarmops.Site.Pages.Ledgers
if (fileType == BankFileType.AccountStatement)
{
using (StreamReader reader = CreateReader(uploadedDoc, externalData.Profile.Encoding)) // Guarantees disposal of reader
using (TextReader reader = CreateReader(uploadedDoc, externalData.Profile.Encoding)) // Guarantees disposal of reader
{
throw new NotImplementedException();
externalData.LoadData (reader, organization, accountCurrency);
// catch here and set result to BAD
ImportResults results = ProcessImportedData (externalData, (ProcessThreadArguments) args);