mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
fix bug in batch SimpleFIN startDate logic (#504)
This commit is contained in:
@@ -210,12 +210,13 @@ function getAccountResponse(results, accountId, startDate) {
|
||||
dateToUse = trans.posted;
|
||||
}
|
||||
|
||||
newTrans.bookingDate = getDate(new Date(dateToUse * 1000));
|
||||
if (newTrans.bookingDate < startDate) {
|
||||
const transactionDate = new Date(dateToUse * 1000);
|
||||
|
||||
if (transactionDate < startDate) {
|
||||
continue;
|
||||
}
|
||||
|
||||
newTrans.date = newTrans.bookingDate;
|
||||
newTrans.date = getDate(transactionDate);
|
||||
newTrans.payeeName = trans.payee;
|
||||
newTrans.remittanceInformationUnstructured = trans.description;
|
||||
newTrans.transactionAmount = { amount: trans.amount, currency: 'USD' };
|
||||
|
||||
6
upcoming-release-notes/504.md
Normal file
6
upcoming-release-notes/504.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [matt-fidd]
|
||||
---
|
||||
|
||||
Fix bug in batch SimpleFIN startDate logic
|
||||
Reference in New Issue
Block a user