No description
Find a file
2024-12-16 01:50:48 +00:00
locale Added translation using Weblate (Chinese (Simplified Han script)) 2024-12-16 01:50:48 +00:00
.gitignore prepare localization 2024-11-04 18:12:10 +01:00
abrechenbarkeit.lua expand inactive users when filter is applied 2024-11-26 19:31:50 +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>