Foo Developer created FINERACT-2891:
---------------------------------------

             Summary: Lock and Hold - Settle Receivable is not working as 
expected
                 Key: FINERACT-2891
                 URL: https://issues.apache.org/jira/browse/FINERACT-2891
             Project: Apache Fineract
          Issue Type: Bug
          Components: Organization
            Reporter: Foo Developer
            Assignee: Foo Developer


When user clicks on settle receivable, all charges should be settled 


Summary
Clicking Settle Receivables on a Hold and Post account has no effect. The 
account has two Active receivable holds that are fully funded by the ledger 
balance, but after confirming the action both holds stay Active, no Pay Charge 
transaction is posted, and the balances do not change.

Per the ticket description: "When user clicks on settle receivable, all charges 
should be settled."

Starting State (Holds Details tab)
Account Overview: Ledger Balance = AED 3.00, Available Balance = AED 0.00, 
Total Held Amount = AED 3.00

Hold ID

Created

Status

Hold Type

Linked Charge

Initial Amount

Remaining Amount

1025189

02/10/2026

Active

Receivable

7211 - Weekly charge

2.00

2.00

1025185

02/10/2026

Released (struck through)

Receivable

7211 - Weekly charge

4.00

0.00

1025183

02/10/2026

Active

Receivable

7211 - Weekly charge

1.00

1.00

The two Active holds total AED 3.00, which exactly matches both the Total Held 
Amount and the Ledger Balance. The funds are already reserved and fully cover 
the held amount, so nothing should block settlement.

Steps to Reproduce
Open account 000010845 → Holds Details tab and confirm the starting state above.

Open the account action menu (☰) → Settle Receivables.

In the "Are you sure you want to settle receivables?" dialog, click Confirm.

The page reloads (URL gets ?_r=…). Review the Holds Details tab and Account 
Overview.

Actual Result
The screen after confirming is identical to the screen before:

Holds 1025189 (2.00) and 1025183 (1.00) are both still Active, with their full 
Remaining Amount unchanged.

Ledger Balance is still AED 3.00, Available Balance is still AED 0.00, and 
Total Held Amount is still AED 3.00.

There is no error message and no visible confirmation.

Expected Result
Both Active holds should be Posted, with Remaining Amount = 0.00.

AED 3.00 should be posted against charge 7211 (Weekly charge) as Pay Charge 
transaction(s), and the charge's Paid/Outstanding figures should update to 
match.

The account should end with Ledger Balance AED 0.00, Total Held Amount AED 
0.00, and Available Balance AED 0.00.

Suspected Area
Silent no-op. The action completes without an error but changes nothing. It's 
worth checking whether the Settle Receivables endpoint actually selects these 
hold records, for example whether its query filters them out by status, due 
date, or charge state, and whether it returns success without processing 
anything.

Partial holds against one charge. All three holds belong to the same charge 
(7211). One was released, and two small partial holds (2.00 and 1.00) are still 
active. If settlement only runs when the held amount covers the charge's full 
outstanding amount, then partial holds like these would never be posted. That 
would contradict the requirement that all held charges get settled.







--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to