Ralph Hopman created FINERACT-2473:
--------------------------------------
Summary: Add availableBalance field to /groups/{groupId}/accounts
endpoint
Key: FINERACT-2473
URL: https://issues.apache.org/jira/browse/FINERACT-2473
Project: Apache Fineract
Issue Type: Improvement
Components: Savings
Reporter: Ralph Hopman
Currently, the GET {{/groups/\{groupId}/accounts}} endpoint returns account
balance but doesn't include funds on hold or the available balance. This makes
it difficult for frontends to validate guarantee amounts against truly
available funds.
This improvement adds the following fields to the savings account summary:
- {{onHoldFunds}}: Funds held by the bank ({{on_hold_funds_derived}})
- {{savingsAmountOnHold}}: Amount held for guarantees
({{total_savings_amount_on_hold}})
- {{availableBalance}}: Calculated as {{accountBalance - onHoldFunds -
savingsAmountOnHold}}
This enables frontends to properly validate that guarantees don't exceed
available funds when creating guarantors from group context.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)