Wallet transfers
≈ 8 min120 pts max
Context
A marketplace credits sellers on internal wallets. Ticket #311 reports negative balances when two payments land at the same time.
Every night, finance reconciles the ledger (ledger_entries) with the wallet balances. Any mismatch blocks the next day's payouts.
This PR fixes #311. The new integration tests (real PostgreSQL database) are green.
Objective
Is the fix safe? Find the line that can still corrupt the books, then name the problem.
- PR diff
- Diagnosis menu