No description
Several services (ipg, settlement, advertising, promotions) used to pass a user wallet (rial/reward) as their company-side wallet because they had no dedicated company account. They now each do. This adds a one-shot management command that repoints the company side of historical Transaction rows onto the new dedicated wallets and corrects the two affected Account.balance running totals. - apps/wallet/management/commands/backfill_company_wallets.py dry-run by default; --execute; --service <name>; --app-<svc> <uuid> override. Idempotent (filters on the old account), single atomic + select_for_update. - docs/company_wallet_history_backfill.md — full write-up: model, mapping, balance-correction logic, consequences, run checklist, source commits. Not yet run against staging/prod. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| apps | ||
| docs | ||
| gooyal_accounts_client | ||
| locale/fa/LC_MESSAGES | ||
| log | ||
| main | ||
| static | ||
| templates | ||
| utils | ||
| .gitignore | ||
| client.py | ||
| Dockerfile | ||
| Dockerfile.build | ||
| Dockerfile.run | ||
| manage.py | ||
| readme.rst | ||
| requirements.in | ||
| requirements.txt | ||
| run.sh | ||
دو ماهیت داریم: * کاربر * اپلیکیشن در هر کدام بالانس در جایی مربوط به خود نگهداری می شود. این موارد برای هر یک قابل تعریف است: * مشاهده بالانس دیگران برای اپلیکیشن ؟؟ * مشاهده بالانس برای هر ماهیت * لیست تراکنش ها برای هر ماهیت * درخواست صدور فاکتور برای هر ماهیت * پرداخت فاکتور توسط کاربر(برداشت از حساب در پرداخت امن) * تایید انتقال پول به گیرنده (در پرداخت امن) * واریز مستقیم پول توسط هر ماهیت به ماهیت دیگر * برداشت پول از حساب هر ماهیت توست اپلیکیشن