
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-30 22:12:26 +03:30
2026-07-16 10:41:15 +03:30
2026-07-15 23:33:00 +03:30
2026-07-16 10:41:15 +03:30
2026-07-13 14:16:21 +03:30
2026-07-14 19:00:17 +03:30
2026-06-21 17:34:07 +03:30
2026-07-10 11:42:23 +03:30
2026-07-08 12:19:06 +03:30
2026-07-11 09:33:55 +03:30
2026-07-15 23:22:57 +03:30
2026-07-09 07:26:58 +03:30
2026-07-14 13:54:50 +03:30
2026-07-11 14:57:41 +03:30
2026-07-11 19:56:58 +03:30
2026-06-30 22:12:26 +03:30
2026-07-12 13:00:49 +03:30
2026-07-15 13:23:38 +03:30
2026-07-15 14:32:29 +03:30
2026-07-08 12:19:06 +03:30
2026-07-16 11:56:39 +03:30
2026-07-15 11:39:32 +03:30
2026-07-09 07:26:58 +03:30
2026-06-28 20:36:41 +03:30
2026-06-11 10:27:27 +03:30
2026-07-09 07:26:58 +03:30
2026-07-15 12:23:17 +03:30
2026-06-28 20:36:41 +03:30
2026-07-08 09:51:30 +03:30
2026-06-30 22:12:26 +03:30
2026-06-15 11:03:56 +03:30
2026-07-05 10:46:31 +03:30
2026-07-14 15:39:45 +03:30
2026-06-24 12:16:16 +03:30