Ui tweaks
This commit is contained in:
@ -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`
|
||||
|
||||
Reference in New Issue
Block a user