No description
Find a file
dasriley 978e70748b
Translated using Weblate (German)
Currently translated at 100.0% (69 of 69 strings)

Translation: Abrechenbarkeit/App
Translate-URL: https://translate.codeberg.org/projects/abrechenbarkeit/app/de/
2024-11-22 20:09:39 +00:00
locale Translated using Weblate (German) 2024-11-22 20:09:39 +00:00
.gitignore prepare localization 2024-11-04 18:12:10 +01:00
abrechenbarkeit.lua style negative user list; add embezzlement amount 2024-11-20 22:34:56 +01:00
collapse_log.lua remove product form 2024-11-03 18:36:02 +01:00
COPYING prepare localization 2024-11-04 18:12:10 +01:00
gnix.yaml css and rebrad 2024-11-03 18:31:13 +01:00
readme.md add maximum url parameter; document special list in readme 2024-11-20 21:59:27 +01:00
script.js return to start page after 30s idle 2024-11-13 14:02:15 +01:00
style.css style negative user list; add embezzlement amount 2024-11-20 22:34:56 +01:00

Abrechenbarkeit v2

A simpler trust based ledger.

The entire application is contained within abrechenbarkeit.lua. This script implements CGI. It was tested against Lua version 5.4.7. Application data is stored in a number of files in the process working directory (See below).

The repository also contains a configuration file for the gnix http server (gnix.yaml) which is useful for development or proxyless deployments.

Data Files

  • log stores the transaction log as CSV (time,user_a,user_b,amount,pcode,pcount,comment)
  • products stores the product list as CSV (barcode,price,user,name)
  • config stores configuration parameters as ESV (key=value)
    • transaction_sound: URL to sound played when creating a transaction

Migration from Strichliste

curl 'http://strichliste.example.org/api/user?deleted=false' | jq -r '.users.[] | [ 0, "@Potential", .name, .balance, "", "", "" ] | join(",")' > log
curl 'http://strichliste.example.org/api/article' | jq -r '.articles.[] | [ .barcode, .amount, "@Drinks", .name ] | join(",")' > products

Non-linked User lists

  • list of Users with negative balance: http://abrechenbarkeit.example.org/?negative
  • list of Users with balance lower than : http://abrechenbarkeit.example.org/?negative&maximum=<amount>