Files
member-portal/app
inference-bot d10b36ed34
ci/woodpecker/push/woodpecker Pipeline was canceled
credits: an adjustment below the drawn amount must not eat the next pack
credits_drawn could exceed credit_balance after an admin set/correction (or a
negative adjustment), so a later pack was only partly usable: available =
max(0, purchased - drawn) swallowed the difference. Cap credits_drawn at the
row's balance on every add_credits movement; ledger history is unchanged.
Tests cover reduction-then-repurchase.
2026-11-27 22:05:19 +00:00
..