[ 
https://issues.apache.org/jira/browse/FINERACT-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18075537#comment-18075537
 ] 

Dhananjay Bhagat commented on FINERACT-2284:
--------------------------------------------

Hi [~adamsaghy] [~bgowda],

While testing rounding behavior for *Percentage of Disbursement Amount* 
charges, I observed something unexpected in the *multi-disbursement loan flow* 
and wanted to confirm if this is intended behavior.
h3. Setup:
 * Loan amount: 10,000
 * Multi-disbursement:
 ** First tranche: 6,000
 ** Second tranche: 4,000
 * Charge: 0.5% of the disbursement amount

h3. Observations:
 # When I attach the charge before any disbursement:
 ** Charge is calculated on *6,000 and amount = 30* (expected).
 # After disbursing the first tranche (6,000), I attach the same charge again 
(before disbursing 4,000):
 ** Charge is still calculated on *6,000 and charge amount is still 30.*
 ** It is *not calculated on 4,000 (which would be 20).*
 # Even after disbursing the second tranche (4,000), no recalculation happens, 
and no charge based on 4,000 is created.
 # Repeating the same experiment with reversed tranches (4,000 first, then 
6,000):
 ** Charge is always calculated using the *first disbursement amount (4,000 in 
this case).*

Is this the intended behavior that: *Percentage of Disbursement Amount* charges 
are always calculated using the first disbursement amount, regardless of when 
the charge is attached? 
Or should the charge be calculated based on the *specific 
disbursement(tranche)* at the time of attaching?

This clarification will help ensure the rounding logic and test coverage are 
aligned with expected behavior.

Thank you!

> Charge should check Money inMultiplesOf settings and enforce it!
> ----------------------------------------------------------------
>
>                 Key: FINERACT-2284
>                 URL: https://issues.apache.org/jira/browse/FINERACT-2284
>             Project: Apache Fineract
>          Issue Type: New Feature
>    Affects Versions: 1.12.1
>            Reporter: Adam Saghy
>            Assignee: Ashok Auty
>            Priority: Major
>
> Charge should check Money inMultiplesOf settings and enforce it!
> Issue:
>  - Currency set 1 multiples of.
>  - Charge with amount that is not multiple of 1 should be rounded based on 
> rounding mode!
> *Example*
>  - Currency set 1 multiples of.
>  - Add charge with amount of $19.8, should be rounded to $20!



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

Reply via email to