Skip to content

Commit d37b452

Browse files
peter-kovacs-dpcadamsaghy
authored andcommitted
FINERACT-2326: fix delinquency date calculation after pause - E2E test
1 parent 13170dc commit d37b452

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

fineract-e2e-tests-runner/src/test/resources/features/LoanDelinquency.feature

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,3 +2105,42 @@ Feature: LoanDelinquency
21052105

21062106
When Loan Pay-off is made on "1 September 2024"
21072107
Then Loan's all installments have obligations met
2108+
2109+
@TestRailId:C4130
2110+
Scenario: Verify that paused days are not counted in installment level delinquency
2111+
When Admin sets the business date to "28 May 2025"
2112+
And Admin creates a client with random data
2113+
And Admin creates a fully customized loan with the following data:
2114+
| 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 |
2115+
| LP2_DOWNPAYMENT_ADV_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL_INSTALLMENT_LEVEL_DELINQUENCY | 28 May 2025 | 1000 | 0 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 6 | MONTHS | 1 | MONTHS | 6 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
2116+
And Admin successfully approves the loan on "28 May 2025" with "1000" amount and expected disbursement date on "28 May 2025"
2117+
And Admin successfully disburse the loan on "28 May 2025" with "1000" EUR transaction amount
2118+
# --- Delinquency pause ---
2119+
And Admin sets the business date to "15 June 2025"
2120+
And Admin runs inline COB job for Loan
2121+
And Admin initiate a DELINQUENCY PAUSE with startDate: "17 June 2025" and endDate: "19 August 2025"
2122+
And Admin sets the business date to "01 July 2025"
2123+
And Admin runs inline COB job for Loan
2124+
And Admin sets the business date to "01 August 2025"
2125+
And Admin runs inline COB job for Loan
2126+
And Admin sets the business date to "01 September 2025"
2127+
And Admin runs inline COB job for Loan
2128+
And Admin sets the business date to "01 October 2025"
2129+
And Admin runs inline COB job for Loan
2130+
And Admin sets the business date to "31 October 2025"
2131+
And Admin runs inline COB job for Loan
2132+
Then Delinquency-actions have the following data:
2133+
| action | startDate | endDate |
2134+
| PAUSE | 17 June 2025 | 19 August 2025 |
2135+
And Loan Delinquency pause periods has the following data:
2136+
| active | pausePeriodStart | pausePeriodEnd |
2137+
| false | 17 June 2025 | 19 August 2025 |
2138+
And Loan has the following LOAN level delinquency data:
2139+
| classification | delinquentAmount | delinquentDate | delinquentDays | pastDueDays |
2140+
| RANGE_60 | 875.0 | 31 May 2025 | 90 | 156 |
2141+
And Loan has the following INSTALLMENT level delinquency data:
2142+
| rangeId | Range | Amount |
2143+
| 1 | RANGE_1 | 125.00 |
2144+
| 3 | RANGE_30 | 125.00 |
2145+
| 4 | RANGE_60 | 375.00 |
2146+
| 5 | RANGE_90 | 250.00 |

0 commit comments

Comments
 (0)