count overpay as debts when fronted + add debt writeoff
This commit is contained in:
1 parent
2939415f76
commit
7ec95ee24a
8 files changed
+194
-5
No files matched your search
@@ -12,6 +12,7 @@ The idea is pretty simple: public pages for stats and session history, plus a sm
|
||||
- admin login for recording events
|
||||
- open / closed session tracking
|
||||
- payout tracking with `paid` events
|
||||
- front debt write-offs with `front_writeoff` events
|
||||
- session and player charts
|
||||
- CSV import / export from the admin page
|
||||
- append-only `entries.csv` ledger instead of overwriting old rows
|
||||
@@ -36,8 +37,12 @@ Each row is an event, not a final snapshot. Instead of editing an old row, I app
|
||||
Current event types:
|
||||
|
||||
- `buyin`
|
||||
- `front`
|
||||
- `front_writeoff`
|
||||
- `cashout`
|
||||
- `paid`
|
||||
- `rollover_in`
|
||||
- `rollover_out`
|
||||
- `note`
|
||||
- `session_open`
|
||||
- `session_close`
|
||||
@@ -47,6 +52,7 @@ A few examples:
|
||||
- another `buyin` for a rebuy
|
||||
- another `cashout` if chip counts are corrected later
|
||||
- a `paid` event when someone is actually settled up
|
||||
- a `front_writeoff` event when a front will not be collected
|
||||
- a `note` event for bookkeeping context
|
||||
- `session_open` / `session_close` to mark whether a game night is still live
|
||||
|
||||
@@ -61,7 +67,7 @@ Main file:
|
||||
Header:
|
||||
|
||||
```csv
|
||||
id,created_at,session_date,player_name,event_type,amount_cents,note,actor
|
||||
id,created_at,session_id,session_date,player_name,event_type,amount_cents,note,actor
|
||||
```
|
||||
|
||||
Amounts are stored in cents to avoid floating-point issues.
|
||||
|
||||
Reference in new issue
Block a user