87d2788f95
FEATURE(wallet): backfill command for company-side wallet history
...
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>
2026-09-02 15:32:18 +03:30
fba0cf3b64
Merge branch 'master' of https://git.addwin.ir/addwin/wallet
2026-08-19 15:49:19 +03:30
2fae79eb04
FIX(ads): fix query params
...
fix query params
2026-08-19 15:46:25 +03:30
1d555cd031
update admin panel calendar
2026-08-01 15:34:01 +03:30
8328814dca
FEATURE(wallet): add export excel to panel admin
...
add export excel to panel admin
2026-04-27 13:58:47 +03:30
5d897b0917
FEATURE(wallet): add DateTimeRangeFilter to panel admin
...
add DateTimeRangeFilter to panel admin
2026-04-27 13:09:34 +03:30
5eff037d10
FEATURE(wallet): add DateTimeRangeFilter to panel admin
...
add DateTimeRangeFilter to panel admin
2026-04-27 13:02:37 +03:30
2d8e0da6fa
FIX(wallet): export excel
...
export excel
2026-04-20 12:23:52 +03:30
a8b32a16f4
FIX(settlement): add rollback_deposit_to_payee_balance
...
add rollback_deposit_to_payee_balance
2026-02-17 15:44:27 +03:30
Sayyid Hamid Mahdavi
0a179bf350
admin
2026-02-15 12:46:50 +03:30
e27fe27bf0
Merge pull request 'FIX(wallet): add cancel state and add success to rollback init states' ( #8 ) from FEATURE/new-commission-calculation-and-toman-api into master
...
Reviewed-on: https://git.mindplus-dev.ir/sahama/wallet/pulls/8
2026-02-14 08:13:53 -05:00
7e378e5b54
FIX(wallet): add cancel state and add success to rollback init states
...
add cancel state and add success to rollback init states
2026-02-14 15:24:46 +03:30
8acf7bc6c1
Merge pull request 'FIX(wallet): hot fix' ( #7 ) from FIX/gte-in-withdraw into master
...
Reviewed-on: https://git.mindplus-dev.ir/sahama/wallet/pulls/7
2026-02-09 05:31:42 -05:00
fd244950e1
FIX(wallet): hot fix
...
hot fix
2026-02-09 13:56:43 +03:30
Sayyid Hamid Mahdavi
cc5b0568a9
role
2026-02-07 16:57:06 +03:30
Sayyid Hamid Mahdavi
a5639b5426
Merge branch 'master' of git.mindplus-dev.ir:sahama/wallet
2026-02-07 16:18:50 +03:30
Sayyid Hamid Mahdavi
2caae02a3c
more fields
2026-02-07 16:18:20 +03:30
53cc3f67ee
FIX(wallet): remove import
...
remove import
2026-02-07 16:11:13 +03:30
fb00595d23
Merge pull request 'FIX(wallet): change to rollback status' ( #6 ) from FIX/change-to-rollback-status into master
...
Reviewed-on: https://git.mindplus-dev.ir/sahama/wallet/pulls/6
2026-02-07 06:31:13 -05:00
Sayyid Hamid Mahdavi
1d961efb69
urls
2026-02-07 13:56:03 +03:30
Sayyid Hamid Mahdavi
15fe0d4531
grouped transactions
2026-02-07 13:47:10 +03:30
Sayyid Hamid Mahdavi
e045ffd9b1
grouped transactions
2026-02-07 13:21:01 +03:30
Sayyid Hamid Mahdavi
27db599e8c
new Dockerfile
2026-02-07 12:37:14 +03:30
Sayyid Hamid Mahdavi
b8e0cd09fc
add migration file
2026-02-07 09:31:52 +03:30
Sayyid Hamid Mahdavi
c24b52e341
add reference field
2026-02-07 09:28:06 +03:30
132a3afcbf
FIX(wallet): change to rollback status
...
change to rollback status
2026-02-02 15:01:16 +03:30
Sayyid Hamid Mahdavi
4393e3878a
add rollback api
2025-12-27 15:15:16 +03:30
Sayyid Hamid Mahdavi
bd3438528d
new change state
2025-12-27 14:53:45 +03:30
Sayyid Hamid Mahdavi
dae2a2e518
add rollback to model
2025-12-27 14:35:26 +03:30
Sayyid Hamid Mahdavi
9183b1aa78
pass tests
2025-12-27 13:41:34 +03:30
Sayyid Hamid Mahdavi
a9935fe72c
admin search bugfix
2025-12-03 14:42:17 +03:30
Sayyid Hamid Mahdavi
ce1b8ccd46
Merge remote-tracking branch 'origin/master'
2025-11-06 13:51:08 +03:30
Sayyid Hamid Mahdavi
d76d23ae7d
bugfix
2025-11-06 13:51:00 +03:30
29e89fe6cc
fix(wallet): fix user wallet
...
fix user wallet
2025-11-05 13:51:08 +03:30
fd61b36375
fix(wallet): add logger
...
add logger
2025-11-04 13:31:53 +03:30
c0b3bb1889
fix(wallet): TODO
...
TODO
2025-11-02 12:33:59 +03:30
aee2c52a8c
fix(wallet): account model admin
...
fix account model admin
2025-11-02 10:53:30 +03:30
51145bad53
fix(wallet): fix
...
fix
2025-10-29 18:18:05 +03:30
33a7ab386e
fix(pg): uncomment
...
uncomment
2025-10-29 13:20:28 +03:30
a032eb1ccd
fix(wallet): fix bugs
...
fix bugs
2025-10-29 11:04:43 +03:30
d508e74c7f
fix(wallet): refactoring
...
refactoring
2025-10-28 15:01:58 +03:30
7cec791602
fix(wallet): adapt submit and verify process to new wallet, account concept
...
adapt submit and verify process to new wallet, account concept
passed tests
2025-10-28 12:15:40 +03:30
65c9c62484
fix(wallet): adapt submit and verify process to new wallet, account concept
...
adapt submit and verify process to new wallet, account concept
test_withdraw_flow_success
2025-10-28 10:54:44 +03:30
821bad13e7
fix(wallet): adapt submit and verify process to new wallet, account concept
...
adapt submit and verify process to new wallet, account concept
test_deposit_flow_prevent_double_spending
2025-10-27 15:46:16 +03:30
c6b2040af9
fix(wallet): adapt submit and verify process to new wallet, account concept
...
adapt submit and verify process to new wallet, account concept
test_deposit_flow_negative_amount
2025-10-27 15:09:30 +03:30
450c6f0191
fix(wallet): adapt submit and verify process to new wallet, account concept
...
adapt submit and verify process to new wallet, account concept
test_deposit_flow_skip_insufficient_balance_for_allowed_negative_balance_applications
2025-10-27 12:29:56 +03:30
c5ec20e1f0
fix(wallet): adapt submit and verify process to new wallet, account concept
...
adapt submit and verify process to new wallet, account concept
test_deposit_flow_insufficient_balance
2025-10-27 11:15:42 +03:30
db798dd348
fix(wallet): adapt submit and verify process to new wallet, account concept
...
adapt submit and verify process to new wallet, account concept
notice: add WALLET_RIAL_CATEGORY to .env
2025-10-26 17:44:59 +03:30
Sayyid Hamid Mahdavi
a84d93a25c
wallet refactoring one more step
2025-10-25 15:06:21 +03:30
Sayyid Hamid Mahdavi
2c5087ee02
wallet refactoring one more step
2025-10-25 14:47:32 +03:30