mark transactions as reconciled
This commit is contained in:
@@ -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}%`,
|
||||||
}]);
|
}]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}`,
|
||||||
}]);
|
}]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}`,
|
||||||
}]);
|
}]);
|
||||||
|
|||||||
@@ -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}%)`,
|
||||||
}]);
|
}]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user