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
This commit is contained in:
commit
fb00595d23
1 changed files with 1 additions and 1 deletions
|
|
@ -364,7 +364,7 @@ class Transaction(BaseModel):
|
||||||
self.rollback_withdraw_to_payer_balance()
|
self.rollback_withdraw_to_payer_balance()
|
||||||
self.change_state(
|
self.change_state(
|
||||||
[StateChoices.PENDING, StateChoices.DELAYED, StateChoices.INCOMPLETE],
|
[StateChoices.PENDING, StateChoices.DELAYED, StateChoices.INCOMPLETE],
|
||||||
StateChoices.SUCCESS,
|
StateChoices.ROLLED_BACK,
|
||||||
error_message=_('TRANSACTION_STATE_NOT_SUITABLE_FOR_ROLLBACK')
|
error_message=_('TRANSACTION_STATE_NOT_SUITABLE_FOR_ROLLBACK')
|
||||||
)
|
)
|
||||||
return self
|
return self
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue