From 96d0fc109c966ba9f09d701a2c20e593bd7f7501 Mon Sep 17 00:00:00 2001 From: Robert Dyer Date: Mon, 1 Jul 2024 10:19:46 -0500 Subject: [PATCH] mark transactions as reconciled --- apply-interest.js | 1 + kbb.js | 2 ++ track-investments.js | 4 +++- zestimate.js | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/apply-interest.js b/apply-interest.js index 9f0292a..4b461c5 100644 --- a/apply-interest.js +++ b/apply-interest.js @@ -49,6 +49,7 @@ require("dotenv").config(); date: interestTransactionDate, payee: payeeId, amount: compoundedInterest, + cleared: true, notes: `Interest for 1 month at ${100*interestRate}%`, }]); } diff --git a/kbb.js b/kbb.js index 6c09371..5a2a928 100644 --- a/kbb.js +++ b/kbb.js @@ -64,6 +64,8 @@ async function getKBB(URL) { date: new Date(), payee: payeeId, amount: diff, + cleared: true, + reconciled: true, notes: `Update KBB to ${kbb / 100}`, }]); } diff --git a/track-investments.js b/track-investments.js index 1650cb6..d3a6477 100644 --- a/track-investments.js +++ b/track-investments.js @@ -112,10 +112,12 @@ const zeroTransaction = async (payment) => { console.log('Current Balance:', currentBalance); console.log('Difference:', diff); - await api.importTransactions(account.id, [{ + await api.importTransactions(account.id, [{ date: new Date(), payee: payeeId, amount: diff, + cleared: true, + reconciled: true, category: categoryId, notes: `Update investment balance to ${simplefinBalance / 100}`, }]); diff --git a/zestimate.js b/zestimate.js index b661d3b..ff6e838 100644 --- a/zestimate.js +++ b/zestimate.js @@ -54,6 +54,8 @@ async function getZestimate(URL) { date: new Date(), payee: payeeId, amount: diff, + cleared: true, + reconciled: true, notes: `Update Zestimate to ${zestimate * ownership / 100} (${zestimate / 100}*${ownership * 100}%)`, }]); }