project
project copied to clipboard
To fix: The position balance and settlement balance didn’t update after settlement.
Summary:
- After the transaction, the position balance of payer and payee accounts updated correctly.
- However, after the settlement process, the position balance and settlement balance didn’t update.
- This settlement issue is occurring not only in admin UI but also in database.
Severity: High
Priority: Critical
Expected Behavior
- After the settlement process, the settled amount should be deducted from the payer's settlement balance. Additionally, the position balance of the payer should be updated correctly.
- After the settlement process, the settled amount should be added to the payee’s settlement balance. Additionally, the position balance of payee should be updated correctly.
Steps to Reproduce
- Firstly, record the position and settlement balance of payer and payee.
- Do transaction
- Record the position balance of payer and payee. [Position amount should be updated correctly after transaction.]
- Create matrix to settle the above transaction
- Close the matrix, Lock for settlement, Settle
- Check the position and settlement balance of payer and payee again
Specifications
Version: 0.5.42 Platform: Mojaloop Type of testing: QA testing Bug found/raised by: Phyu Sin Myat
Notes:
Severity when opened: High Priority when opened: Critical
1.1. Payer's initial amount
1.2. Payee's initial amount
2. Transferred 20USD from pswallet to psmfi
Transfer ID (6e9eda40-be1d-4745-8b56-ef0021eded54)
3.1. Checked the position balance of payer [20USD updated with minus sign in position balance.]
3.2. Checked the position balance of payee [20USD updated with plus sign in position balance.]
4. Created matrix to settle the above transaction
5. Settled that matrix
6.1. Check the position and settlement balance of payer again
6.2. Check the position and settlement balance of payee again
In database after settlement
pswallet's USD position account
pswallet's USD settlement account
psmfi's USD position account
psmfi's USD settlement account