From 2482b3bb97b17a06d4027cb247381e8afbc56f29 Mon Sep 17 00:00:00 2001 From: "Riley L." Date: Sun, 3 Nov 2024 20:58:57 +0100 Subject: add printing design for lists; add some currency --- abrechenbarkeit.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'abrechenbarkeit.lua') diff --git a/abrechenbarkeit.lua b/abrechenbarkeit.lua index 17e08f4..84fafc7 100755 --- a/abrechenbarkeit.lua +++ b/abrechenbarkeit.lua @@ -248,7 +248,7 @@ local function r_user(username)
- +
]], amount * type, ({ [-1] = "-", [1] = "+" })[type], amount / 100, ({ [-1] = "neg", [1] = "pos" })[type])) @@ -257,18 +257,18 @@ local function r_user(username) print("") print([[
-

Create Transaction

- +

Create 🏳️‍⚧️✊

+ - +

Buy Product

- +
]]) print("") @@ -277,7 +277,7 @@ end local function r_log(filter) return respond(200, "Abrechnungen", function() - print("") + print([[
]]) print("") for time, username, amount, pcode, pcount, comment in read_log() do if filter == nil or filter == username then @@ -293,7 +293,7 @@ local function r_log(filter) - + @@ -403,8 +403,8 @@ local function r_products() - - + + @@ -416,7 +416,7 @@ local function r_products() ]]) - print("
TimeUsernameAmountP.-BarcodeP.-CountComment
") + print([[
NamePriceBarcodeCount
]]) local pbals = product_balances() for barcode, price, name in read_products() do print(string.format([[ -- cgit v1.2.3-70-g09d2
NamePriceBarcodeCount