Ui tweaks

This commit is contained in:
2025-07-20 22:25:31 -04:00
parent 9e6d1d028d
commit a417d2c52a
4 changed files with 63 additions and 30 deletions

View File

@ -271,7 +271,8 @@ export async function getTransactions(accountId) {
transaction.notes as notes,
transaction.payee as payee,
transaction.date as date,
transaction.statement_description as statement_description
transaction.statement_description as statement_description,
transaction.out_of_budget as out_of_budget
from transaction
where account_id = ${accountId}
order by date desc
@ -289,6 +290,15 @@ export async function setTransactionNote(transactionId, note) {
return result;
}
export async function setTransactionOutOfBudget(transactionId, oob) {
const result = await db`
update transaction
set out_of_budget = ${oob}
where id = ${transactionId}
`;
return result;
}
export async function getRules(data) {
try {
const rules = await db`