@@ -5405,4 +5405,87 @@ Feature: LoanRepayment
54055405 | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
54065406 | 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false | false |
54075407 | 01 February 2024 | Repayment | 40.0 | 39.42 | 0.58 | 0.0 | 0.0 | 60.58 | false | false |
5408- When Admin set "LP2_ADV_CUSTOM_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL" loan product "DEFAULT" transaction type to "NEXT_INSTALLMENT" future installment allocation rule
5408+ When Admin set "LP2_ADV_CUSTOM_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL" loan product "DEFAULT" transaction type to "NEXT_INSTALLMENT" future installment allocation rule
5409+
5410+ Scenario: Verify progressive loan repayment reversals with penalty charge and backdated repayment
5411+ When Admin sets the business date to "20 October 2024"
5412+ When Admin creates a client with random data
5413+ When Admin creates a fully customized loan with the following data:
5414+ | LoanProduct | submitted on date | with Principal | ANNUAL interest rate % | interest type | interest calculation period | amortization type | loanTermFrequency | loanTermFrequencyType | repaymentEvery | repaymentFrequencyType | numberOfRepayments | graceOnPrincipalPayment | graceOnInterestPayment | interest free period | Payment strategy |
5415+ | LP2_NO_INTEREST_RECALCULATION_ALLOCATION_PENALTY_FIRST | 20 October 2024 | 100 | 0 | FLAT | SAME_AS_REPAYMENT_PERIOD | EQUAL_INSTALLMENTS | 30 | DAYS | 30 | DAYS | 1 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
5416+ And Admin successfully approves the loan on "20 October 2024" with "100" amount and expected disbursement date on "20 October 2024"
5417+ And Admin successfully disburse the loan on "20 October 2024" with "100" EUR transaction amount
5418+ Then Loan Repayment schedule has 1 periods, with the following data for periods:
5419+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5420+ | | | 20 October 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
5421+ | 1 | 30 | 19 November 2024 | | 0.0 | 100.0 | 0.0 | 0.0 | 0.0 | 100.0 | 0.0 | 0.0 | 0.0 | 100.0 |
5422+ Then Loan Repayment schedule has the following data in Total row:
5423+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5424+ | 100.0 | 0.0 | 0.0 | 0.0 | 100.0 | 0.0 | 0.0 | 0.0 | 100.0 |
5425+ When Admin sets the business date to "22 October 2024"
5426+ And Customer makes "AUTOPAY" repayment on "22 October 2024" with 100 EUR transaction amount
5427+ Then Loan status will be "CLOSED_OBLIGATIONS_MET"
5428+ Then Loan Repayment schedule has 1 periods, with the following data for periods:
5429+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5430+ | | | 20 October 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
5431+ | 1 | 30 | 19 November 2024 | 22 October 2024 | 0.0 | 100.0 | 0.0 | 0.0 | 0.0 | 100.0 | 100.0 | 100.0 | 0.0 | 0.0 |
5432+ Then Loan Transactions tab has the following data:
5433+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
5434+ | 20 October 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 |
5435+ | 22 October 2024 | Repayment | 100.0 | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 |
5436+ When Admin sets the business date to "24 October 2024"
5437+ And Customer makes a repayment undo on "22 October 2024"
5438+ Then Loan status will be "ACTIVE"
5439+ And Loan has 100 outstanding amount
5440+ Then Loan Repayment schedule has 1 periods, with the following data for periods:
5441+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5442+ | | | 20 October 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
5443+ | 1 | 30 | 19 November 2024 | | 0.0 | 100.0 | 0.0 | 0.0 | 0.0 | 100.0 | 0.0 | 0.0 | 0.0 | 100.0 |
5444+ Then Loan Transactions tab has the following data:
5445+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
5446+ | 20 October 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false | false |
5447+ | 22 October 2024 | Repayment | 100.0 | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | true | false |
5448+ When Admin sets the business date to "26 October 2024"
5449+ And Customer makes "AUTOPAY" repayment on "26 October 2024" with 100 EUR transaction amount
5450+ Then Loan status will be "CLOSED_OBLIGATIONS_MET"
5451+ Then Loan Repayment schedule has 1 periods, with the following data for periods:
5452+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5453+ | | | 20 October 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
5454+ | 1 | 30 | 19 November 2024 | 26 October 2024 | 0.0 | 100.0 | 0.0 | 0.0 | 0.0 | 100.0 | 100.0 | 100.0 | 0.0 | 0.0 |
5455+ Then Loan Transactions tab has the following data:
5456+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
5457+ | 20 October 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false | false |
5458+ | 22 October 2024 | Repayment | 100.0 | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | true | false |
5459+ | 26 October 2024 | Repayment | 100.0 | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | false | false |
5460+ When Admin sets the business date to "28 October 2024"
5461+ And Customer makes a repayment undo on "26 October 2024"
5462+ Then Loan status will be "ACTIVE"
5463+ And Loan has 100 outstanding amount
5464+ Then Loan Repayment schedule has 1 periods, with the following data for periods:
5465+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5466+ | | | 20 October 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
5467+ | 1 | 30 | 19 November 2024 | | 0.0 | 100.0 | 0.0 | 0.0 | 0.0 | 100.0 | 0.0 | 0.0 | 0.0 | 100.0 |
5468+ When Admin adds "LOAN_NSF_FEE" due date charge with "28 October 2024" due date and 10 EUR transaction amount
5469+ Then Loan Repayment schedule has 1 periods, with the following data for periods:
5470+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5471+ | | | 20 October 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
5472+ | 1 | 30 | 19 November 2024 | | 0.0 | 100.0 | 0.0 | 0.0 | 10.0 | 110.0 | 0.0 | 0.0 | 0.0 | 110.0 |
5473+ Then Loan Repayment schedule has the following data in Total row:
5474+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5475+ | 100.0 | 0.0 | 0.0 | 10.0 | 110.0 | 0.0 | 0.0 | 0.0 | 110.0 |
5476+ And Customer makes "AUTOPAY" repayment on "26 October 2024" with 101 EUR transaction amount
5477+ Then Loan Repayment schedule has 1 periods, with the following data for periods:
5478+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5479+ | | | 20 October 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
5480+ | 1 | 30 | 19 November 2024 | | 0.0 | 100.0 | 0.0 | 0.0 | 10.0 | 110.0 | 101.0 | 101.0 | 0.0 | 9.0 |
5481+ Then Loan Repayment schedule has the following data in Total row:
5482+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5483+ | 100.0 | 0.0 | 0.0 | 10.0 | 110.0 | 101.0 | 101.0 | 0.0 | 9.0 |
5484+ Then Loan Transactions tab has the following data:
5485+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
5486+ | 20 October 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false | false |
5487+ | 22 October 2024 | Repayment | 100.0 | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | true | false |
5488+ | 26 October 2024 | Repayment | 100.0 | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | true | false |
5489+ | 26 October 2024 | Repayment | 101.0 | 91.0 | 0.0 | 0.0 | 10.0 | 9.0 | false | false |
5490+ When Customer makes "AUTOPAY" repayment on "27 October 2024" with 9 EUR transaction amount
5491+ Then Loan status will be "CLOSED_OBLIGATIONS_MET"
0 commit comments