Delete transaction when amount is zero
This commit is contained in:
@ -163,6 +163,11 @@ export const useAccountStore = defineStore("budget/account", {
|
||||
const result = await POST("/transaction/new", payload);
|
||||
const response = await result.json();
|
||||
this.CurrentAccount?.Transactions.unshift(response);
|
||||
},
|
||||
async editTransaction(transactionid : string, payload: string) {
|
||||
const result = await POST("/transaction/" + transactionid, payload);
|
||||
const response = await result.json();
|
||||
this.CurrentAccount?.Transactions.unshift(response);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user