You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for this tool, very handy solution to a problem that shouldn't exist!
There is a bug where it cannot handle the very first statement generated per account.
This is because of how the statement dates are represented:
Statement 1: STATEMENT PERIOD TO 02 May 2024
Statement 2: STATEMENT PERIOD FROM 02 May 2024 TO 31 May 2024
When you try to process Statement 1:
Fails at statementParserModule.mjs line 220 as statementPeriod.end is never set
This is because at line 134 it assigns the date read to statementPeriod.start without checking there is two values available.
My idea for a solution is to check if there's two dates there, if there isn't, set statementPeriod.start later on when we work out what the first date in transactionData.
I don't code in JS, I gave fixing it a crack and although it now processes all statements successfully, all my transaction descriptions are messed up and the first statement thinks it's' 1970 lol.
Let me know if I can be of any more assistance.
The text was updated successfully, but these errors were encountered:
Thanks.
Will have a look when I have time.
The issue with dates might be related to how Excel serialises dates differently to JS? It's been a while since I've looked at this, but I remember using date strings instead to work around this issue.
Hey there,
First of all, thanks for this tool, very handy solution to a problem that shouldn't exist!
There is a bug where it cannot handle the very first statement generated per account.
This is because of how the statement dates are represented:
When you try to process Statement 1:
My idea for a solution is to check if there's two dates there, if there isn't, set statementPeriod.start later on when we work out what the first date in transactionData.
I don't code in JS, I gave fixing it a crack and although it now processes all statements successfully, all my transaction descriptions are messed up and the first statement thinks it's' 1970 lol.
Let me know if I can be of any more assistance.
The text was updated successfully, but these errors were encountered: