This is an automated email from the ASF dual-hosted git repository.
adamsaghy pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
from d8ffb56948 Merge pull request #6847 from
adamsaghy/fix/loan-cob-skip-batch6
add 167485bd0c FINERACT-2977: Add support for credit allocation strategy
for chargebacks
add fb5956870b FINERACT-2977: Address review comments
add 5eaa445374 FINERACT-2977: Add support for credit allocation strategy
for chargebacks - E2E test
new 2174ed781d Merge pull request #6754 from
openMF/FINERACT-2977-new-chargeback-credit-allocation
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../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 +-
...tionType.java => CreditAllocationStrategy.java} | 10 +-
.../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, 1436 insertions(+), 170 deletions(-)
create mode 100644
fineract-e2e-tests-runner/src/test/resources/features/LoanChargebackPrincipalOnly.feature
copy
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanproduct/domain/{AllocationType.java
=> CreditAllocationStrategy.java} (90%)
create mode 100644
fineract-loan/src/main/resources/db/changelog/tenant/module/loan/parts/1038_add_credit_allocation_strategy.xml
create mode 100644
fineract-loan/src/test/java/org/apache/fineract/portfolio/loanaccount/domain/LoanCreditAllocationRuleTest.java
create mode 100644
fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanproduct/domain/CreditAllocationRequest.java