New code for transaction processing and frontend

This commit is contained in:
James Cole
2023-08-22 08:25:06 +02:00
parent f67ff98d78
commit 2404f5299c
13 changed files with 380 additions and 51 deletions

View File

@@ -19,6 +19,8 @@
*/
import format from "date-fns/format";
function getAccount() {
return {
id: '',
@@ -27,10 +29,13 @@ function getAccount() {
}
export function createEmptySplit() {
let now = new Date();
let formatted = format(now, 'yyyy-MM-dd HH:mm');
return {
description: 'I am descr',
description: 'OK then',
amount: '',
source_account: getAccount(),
destination_account: getAccount(),
date: formatted
};
}