mark transactions as reconciled

This commit is contained in:
Robert Dyer
2024-07-01 10:19:46 -05:00
parent 9e94ad39f1
commit 96d0fc109c
4 changed files with 8 additions and 1 deletions
+1
View File
@@ -49,6 +49,7 @@ require("dotenv").config();
date: interestTransactionDate, date: interestTransactionDate,
payee: payeeId, payee: payeeId,
amount: compoundedInterest, amount: compoundedInterest,
cleared: true,
notes: `Interest for 1 month at ${100*interestRate}%`, notes: `Interest for 1 month at ${100*interestRate}%`,
}]); }]);
} }
+2
View File
@@ -64,6 +64,8 @@ async function getKBB(URL) {
date: new Date(), date: new Date(),
payee: payeeId, payee: payeeId,
amount: diff, amount: diff,
cleared: true,
reconciled: true,
notes: `Update KBB to ${kbb / 100}`, notes: `Update KBB to ${kbb / 100}`,
}]); }]);
} }
+3 -1
View File
@@ -112,10 +112,12 @@ const zeroTransaction = async (payment) => {
console.log('Current Balance:', currentBalance); console.log('Current Balance:', currentBalance);
console.log('Difference:', diff); console.log('Difference:', diff);
await api.importTransactions(account.id, [{ await api.importTransactions(account.id, [{
date: new Date(), date: new Date(),
payee: payeeId, payee: payeeId,
amount: diff, amount: diff,
cleared: true,
reconciled: true,
category: categoryId, category: categoryId,
notes: `Update investment balance to ${simplefinBalance / 100}`, notes: `Update investment balance to ${simplefinBalance / 100}`,
}]); }]);
+2
View File
@@ -54,6 +54,8 @@ async function getZestimate(URL) {
date: new Date(), date: new Date(),
payee: payeeId, payee: payeeId,
amount: diff, amount: diff,
cleared: true,
reconciled: true,
notes: `Update Zestimate to ${zestimate * ownership / 100} (${zestimate / 100}*${ownership * 100}%)`, notes: `Update Zestimate to ${zestimate * ownership / 100} (${zestimate / 100}*${ownership * 100}%)`,
}]); }]);
} }