[ 
https://issues.apache.org/jira/browse/FINERACT-2897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Piotr Wargulak updated FINERACT-2897:
-------------------------------------
    Component/s: Loan

> Allow subclasses to customise payment allocation in 
> AdvancedPaymentScheduleTransactionProcessor
> -----------------------------------------------------------------------------------------------
>
>                 Key: FINERACT-2897
>                 URL: https://issues.apache.org/jira/browse/FINERACT-2897
>             Project: Apache Fineract
>          Issue Type: Improvement
>          Components: Loan
>            Reporter: Piotr Wargulak
>            Priority: Trivial
>
> Customising how a payment is distributed across allocation buckets currently 
> means copying AdvancedPaymentScheduleTransactionProcessor whole. An example 
> is limiting how much of an in-advance payment a given charge may absorb.
> processPaymentAllocation is private and reached from many places inside the 
> class. Several core classes check instanceof 
> AdvancedPaymentScheduleTransactionProcessor, so a replacement must also 
> extend it. A subclass cannot redirect those calls, so an extension ends up as 
> a full copy that has to be kept in step with every release.
> *Proposed change:*
>  * Make processPaymentAllocation protected, or extract a protected hook for 
> the per-bucket amount, called where the amount for a bucket is decided.
>  * Default behaviour is unchanged.



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

Reply via email to