@@ -5405,4 +5405,94 @@ 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+
5426+ When Admin sets the business date to "22 October 2024"
5427+ And Customer makes "AUTOPAY" repayment on "22 October 2024" with 100 EUR transaction amount
5428+ Then Loan status will be "CLOSED_OBLIGATIONS_MET"
5429+ Then Loan Repayment schedule has 1 periods, with the following data for periods:
5430+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5431+ | | | 20 October 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
5432+ | 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 |
5433+ Then Loan Transactions tab has the following data:
5434+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
5435+ | 20 October 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 |
5436+ | 22 October 2024 | Repayment | 100.0 | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 |
5437+
5438+ When Admin sets the business date to "24 October 2024"
5439+ And Customer makes a repayment undo on "22 October 2024"
5440+ Then Loan status will be "ACTIVE"
5441+ And Loan has 100 outstanding amount
5442+ Then Loan Repayment schedule has 1 periods, with the following data for periods:
5443+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5444+ | | | 20 October 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
5445+ | 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 |
5446+ Then Loan Transactions tab has the following data:
5447+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
5448+ | 20 October 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
5449+ | 22 October 2024 | Repayment | 100.0 | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | true |
5450+
5451+ When Admin sets the business date to "26 October 2024"
5452+ And Customer makes "AUTOPAY" repayment on "26 October 2024" with 100 EUR transaction amount
5453+ Then Loan status will be "CLOSED_OBLIGATIONS_MET"
5454+ Then Loan Repayment schedule has 1 periods, with the following data for periods:
5455+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5456+ | | | 20 October 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
5457+ | 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 |
5458+ Then Loan Transactions tab has the following data:
5459+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
5460+ | 20 October 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
5461+ | 22 October 2024 | Repayment | 100.0 | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | true |
5462+ | 26 October 2024 | Repayment | 100.0 | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | false |
5463+
5464+ When Admin sets the business date to "28 October 2024"
5465+ And Customer makes a repayment undo on "26 October 2024"
5466+ Then Loan status will be "ACTIVE"
5467+ And Loan has 100 outstanding amount
5468+ Then Loan Repayment schedule has 1 periods, with the following data for periods:
5469+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5470+ | | | 20 October 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
5471+ | 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 |
5472+
5473+ When Admin adds "LOAN_NSF_FEE" due date charge with "28 October 2024" due date and 10 EUR transaction amount
5474+ Then Loan Repayment schedule has 1 periods, with the following data for periods:
5475+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5476+ | | | 20 October 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
5477+ | 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 |
5478+ Then Loan Repayment schedule has the following data in Total row:
5479+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5480+ | 100.0 | 0.0 | 0.0 | 10.0 | 110.0 | 0.0 | 0.0 | 0.0 | 110.0 |
5481+
5482+ And Customer makes "AUTOPAY" repayment on "26 October 2024" with 101 EUR transaction amount
5483+ Then Loan Repayment schedule has 1 periods, with the following data for periods:
5484+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5485+ | | | 20 October 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
5486+ | 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 |
5487+ Then Loan Repayment schedule has the following data in Total row:
5488+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
5489+ | 100.0 | 0.0 | 0.0 | 10.0 | 110.0 | 101.0 | 101.0 | 0.0 | 9.0 |
5490+ Then Loan Transactions tab has the following data:
5491+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
5492+ | 20 October 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
5493+ | 22 October 2024 | Repayment | 100.0 | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | true |
5494+ | 26 October 2024 | Repayment | 100.0 | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | true |
5495+ | 26 October 2024 | Repayment | 101.0 | 91.0 | 0.0 | 0.0 | 10.0 | 9.0 | false |
5496+
5497+ When Customer makes "AUTOPAY" repayment on "27 October 2024" with 9 EUR transaction amount
5498+ Then Loan status will be "CLOSED_OBLIGATIONS_MET"
0 commit comments