This is an automated email from the ASF dual-hosted git repository. adamsaghy pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/fineract.git
commit 2174ed781d67045b4c12d0e925c8e9a8cdcacc9c Merge: d8ffb56948 5eaa445374 Author: Adam Saghy <[email protected]> AuthorDate: Tue Nov 10 14:41:57 2026 +0000 Merge pull request #6754 from openMF/FINERACT-2977-new-chargeback-credit-allocation FINERACT-2977: Add support for credit allocation strategy for chargebacks .../test/data/loanproduct/DefaultLoanProduct.java | 2 + .../test/factory/LoanProductsRequestFactory.java | 24 ++ .../fineract/test/stepdef/loan/LoanStepDef.java | 115 ++++++++ .../features/LoanChargebackPrincipalOnly.feature | 320 +++++++++++++++++++++ .../domain/LoanCreditAllocationRule.java | 22 +- .../loanaccount/service/LoanBalanceService.java | 20 +- .../api/LoanProductsApiResourceSwagger.java | 3 + .../loanproduct/data/CreditAllocationData.java | 1 + .../loanproduct/data/LoanProductData.java | 6 +- .../CreditAllocationStrategy.java} | 23 +- .../domain/LoanProductCreditAllocationRule.java | 6 +- .../tenant/module/loan/module-changelog-master.xml | 1 + .../parts/1038_add_credit_allocation_strategy.xml | 54 ++++ .../domain/LoanCreditAllocationRuleTest.java | 57 ++++ ...dvancedPaymentScheduleTransactionProcessor.java | 155 +++++----- .../domain/CreditAllocationRequest.java | 43 +++ .../domain/CreditAllocationsJsonParser.java | 53 ++-- .../domain/CreditAllocationsValidator.java | 47 ++- .../LoanProductCreditAllocationRuleMerger.java | 5 + ...cedPaymentScheduleTransactionProcessorTest.java | 110 ++++++- .../domain/CreditAllocationsJsonParserTest.java | 140 ++++++++- .../domain/CreditAllocationsValidatorTest.java | 79 ++++- .../LoanProductCreditAllocationRuleMergerTest.java | 22 +- .../loanaccount/service/LoanAssemblerImpl.java | 4 +- .../service/LoanJournalEntryPosterImpl.java | 13 +- .../loanproduct/api/LoanProductsApiResource.java | 10 +- .../LoanProductReadPlatformServiceImpl.java | 9 +- ...ebackWithCreditAllocationsIntegrationTests.java | 130 ++++++++- ...oductWithCreditAllocationsIntegrationTests.java | 145 +++++++++- 29 files changed, 1443 insertions(+), 176 deletions(-)
