FEATURE(wallet): backfill command for company-side wallet history #2
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feature/company-wallet-history-backfill"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
dry-run by default; --execute; --service ; --app- override.
Idempotent (filters on the old account), single atomic + select_for_update.
balance-correction logic, consequences, run checklist, source commits.
Not yet run against staging/prod.
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Pull request closed