diff --git a/cmd/http/public/transactions.html b/cmd/http/public/transactions.html index 5db76c1..cb1f6df 100644 --- a/cmd/http/public/transactions.html +++ b/cmd/http/public/transactions.html @@ -80,7 +80,7 @@ function loadLastNLines(lastNLines) { var result = `
` document.getElementById("lastNLines").innerHTML = result } + function stage(who, contributesToHouse) { + var benefactor = who + var beneficiary = "AssetAccount:Chase:5876" + if (!contributesToHouse) { + var tmp = beneficiary + beneficiary = benefactor + benefactor = tmp + } + const zeroPad = (num, places) => String(num).padStart(places, '0') + var d = new Date() + const today = `${d.getFullYear()}-${zeroPad(1+d.getMonth(), 2)}-${zeroPad(d.getDate(), 2)}` + console.log(`@${today} ${benefactor} gave to ${beneficiary}`) + document.getElementById("lastNLinesTextarea").value += `\n${today} TODO moolah2` + document.getElementById("lastNLinesTextarea").value += `\n ${beneficiary} $0.00` + document.getElementById("lastNLinesTextarea").value += `\n ${benefactor}` + } @@ -104,6 +120,16 @@