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 d1fe37c1311f2fa1a43b5e53fea18582741a568d Merge: 1f0ea0c292 34cba08c13 Author: Adam Saghy <[email protected]> AuthorDate: Wed Nov 4 13:42:58 2026 +0000 Merge pull request #6723 from openMF/FINERACT-2938/pl-introduce-down-payment-fee-charge-type FINERACT-2938: PL - Introduce "Down payment fee" charge type .../fineract/portfolio/charge/domain/Charge.java | 4 + .../charge/domain/ChargeCalculationType.java | 4 + ...geDefinitionCommandFromApiJsonDeserializer.java | 13 +- .../ChargeDropdownReadPlatformServiceImpl.java | 2 +- .../charge/service/ChargeEnumerations.java | 4 + .../portfolio/charge/domain/ChargeTimeType.java | 15 +- .../src/docs/en/chapters/features/downpayment.adoc | 4 + .../fineract/test/data/ChargeProductType.java | 4 +- .../apache/fineract/test/data/ChargeTimeType.java | 3 +- .../test/data/loanproduct/DefaultLoanProduct.java | 2 + .../test/factory/LoanProductsRequestFactory.java | 35 +- .../event/loan/charge/LoanDeleteChargeEvent.java} | 37 +- .../event/loan/charge/LoanUpdateChargeEvent.java} | 27 +- .../fineract/test/messaging/store/EventStore.java | 9 +- .../stepdef/common/GlobalConfigurationStepDef.java | 7 + .../fineract/test/stepdef/loan/ChargeStepDef.java | 138 ++ .../test/stepdef/loan/LoanChargeStepDef.java | 102 ++ .../fineract/test/stepdef/loan/LoanStepDef.java | 124 ++ .../fineract/test/support/TestContextKey.java | 1 + .../global/LoanProductGlobalInitializerStep.java | 25 + .../features/LoanChargesDownPayment.feature | 1411 ++++++++++++++++++++ .../loanaccount/api/LoanApiConstants.java | 1 + .../loanaccount/domain/DownPaymentFees.java | 98 ++ .../portfolio/loanaccount/domain/Loan.java | 7 +- .../portfolio/loanaccount/domain/LoanCharge.java | 33 + .../domain/LoanDisbursementDetails.java | 4 + .../LoanRepaymentScheduleProcessingWrapper.java | 17 +- .../loanaccount/domain/LoanTransaction.java | 3 +- ...anChargeRepaymentScheduleProcessingWrapper.java | 25 +- .../data/LoanScheduleModelDownPaymentPeriod.java | 21 +- .../loanschedule/data/LoanSchedulePeriodData.java | 19 +- .../loanaccount/service/LoanBalanceService.java | 3 +- .../loanaccount/service/LoanChargeService.java | 137 +- .../service/LoanDownPaymentHandlerServiceImpl.java | 13 +- .../portfolio/loanproduct/domain/LoanProduct.java | 5 + .../loanaccount/domain/DownPaymentFeesTest.java | 280 ++++ .../loanproduct/domain/LoanProductTest.java | 15 + ...dvancedPaymentScheduleTransactionProcessor.java | 107 +- .../transactionprocessor/impl/ChangeOperation.java | 72 + .../domain/ProgressiveLoanScheduleGenerator.java | 35 +- .../impl/ChangeOperationTest.java | 35 + ...hargeWritePlatformServiceJpaRepositoryImpl.java | 15 +- .../loanaccount/api/LoansApiResourceSwagger.java | 4 + .../service/LoanScheduleAssembler.java | 3 + .../LoanTransactionValidatorImpl.java | 5 +- .../service/LoanAccrualsProcessingServiceImpl.java | 27 +- ...ationWritePlatformServiceJpaRepositoryImpl.java | 5 + .../loanaccount/service/LoanAssemblerImpl.java | 19 +- .../loanaccount/service/LoanChargeAssembler.java | 120 +- .../LoanChargeWritePlatformServiceImpl.java | 13 + .../service/LoanDisbursementService.java | 182 ++- .../service/LoanDownPaymentFeeEventNotifier.java | 95 ++ .../LoanWritePlatformServiceJpaRepositoryImpl.java | 67 +- .../starter/LoanAccountConfiguration.java | 22 +- ...oductWritePlatformServiceJpaRepositoryImpl.java | 14 + .../db/changelog/tenant/changelog-tenant.xml | 1 + ...0279_add_disbursement_detail_to_loan_charge.xml | 58 + ...eWritePlatformServiceJpaRepositoryImplTest.java | 108 ++ .../service/LoanDisbursementServiceTest.java | 311 +++++ .../LoanDownPaymentFeeEventNotifierTest.java | 151 +++ .../LoanDownPaymentHandlerServiceImplTest.java | 25 +- ...nWritePlatformServiceJpaRepositoryImplTest.java | 6 + .../FeignWorkingCapitalChargeProductTest.java | 2 +- 63 files changed, 3961 insertions(+), 193 deletions(-)
