
hamedandClaude Opus 4.8
f028d6841a
feat: port wallet charge/withdraw modal from tauri to patient admin page
Add manual wallet withdrawal (debit) endpoint mirroring the offline app's
balance guard, and rebuild the patient کیف پول tab around a single
charge/withdraw toggle modal (quick amounts, تومان→ریال conversion,
transaction filters).
Backend:
- POST /api/v1/patient/{uuid}/wallet/withdraw — creates a debit
WalletTransaction; 422 ERR_WALLET_INSUFFICIENT when amount exceeds balance.
- ErrorCodes: ERR_WALLET_INSUFFICIENT ('موجودی کیف پول کافی نیست').
- docs/api/patient.md updated.
Frontend:
- usePatientWallet hook (balance + charge/withdraw mutations).
- WalletTransactionModal (toggle, quick amounts, UI-only payment fields).
- WalletTab: charge button, همه/واریزی/برداشت filters.
Tests: backend withdraw success/insufficient/non-positive/ownership;
frontend modal + wallet tab interactions.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-16 11:56:39 +03:30
..
2026-06-09 22:00:34 +03:30
2026-07-16 11:56:39 +03:30
2026-06-23 15:05:24 +03:30
2026-06-25 21:40:51 +03:30
2026-06-15 14:18:25 +03:30
2026-06-15 14:18:25 +03:30
2026-07-01 12:26:02 +03:30
2026-07-11 10:55:20 +03:30
2026-06-09 22:00:34 +03:30
2026-06-09 22:00:34 +03:30
2026-06-28 21:57:42 +03:30
2026-06-09 22:00:34 +03:30
2026-07-08 20:06:45 +03:30
2026-06-29 16:11:54 +03:30
2026-06-29 15:03:30 +03:30
2026-06-28 15:27:34 +03:30
2026-07-08 20:06:45 +03:30
2026-06-09 22:00:34 +03:30