Skip to content

Commit 56b69d6

Browse files
ruzeynalovadamsaghy
authored andcommitted
FINERACT-2389: added e2e test to validate loan rescheduling on the first day of 1st repayment schedule
1 parent d42ba45 commit 56b69d6

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

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

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,4 +1089,48 @@ Feature: LoanReschedule
10891089
| 01 February 2024 | Repayment | 17.16 | 16.33 | 0.83 | 0.0 | 0.0 | 83.67 | false | false |
10901090
| 15 February 2024 | Repayment | 8.58 | 8.58 | 0.0 | 0.0 | 0.0 | 75.09 | false | false |
10911091

1092+
@TestRailId:C4126
1093+
Scenario: Verify rescheduling of progressive loan is allowed on the first day of 1st repayment schedule
1094+
When Admin sets the business date to "24 July 2025"
1095+
When Admin creates a client with random data
1096+
When Admin creates a fully customized loan with the following data:
1097+
| 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 |
1098+
| LP2_ADV_PYMNT_INTEREST_DAILY_EMI_360_30 | 24 July 2025 | 500 | 35 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 6 | MONTHS | 1 | MONTHS | 6 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
1099+
And Admin successfully approves the loan on "24 July 2025" with "500" amount and expected disbursement date on "24 July 2025"
1100+
When Admin successfully disburse the loan on "24 July 2025" with "500" EUR transaction amount
1101+
Then Loan Repayment schedule has 6 periods, with the following data for periods:
1102+
| Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
1103+
| | | 24 July 2025 | | 500.0 | | | 0.0 | | 0.0 | 0.0 | | | |
1104+
| 1 | 31 | 24 August 2025 | | 422.54 | 77.46 | 14.58 | 0.0 | 0.0 | 92.04 | 0.0 | 0.0 | 0.0 | 92.04 |
1105+
| 2 | 31 | 24 September 2025 | | 342.82 | 79.72 | 12.32 | 0.0 | 0.0 | 92.04 | 0.0 | 0.0 | 0.0 | 92.04 |
1106+
| 3 | 30 | 24 October 2025 | | 260.78 | 82.04 | 10.0 | 0.0 | 0.0 | 92.04 | 0.0 | 0.0 | 0.0 | 92.04 |
1107+
| 4 | 31 | 24 November 2025 | | 176.35 | 84.43 | 7.61 | 0.0 | 0.0 | 92.04 | 0.0 | 0.0 | 0.0 | 92.04 |
1108+
| 5 | 30 | 24 December 2025 | | 89.45 | 86.9 | 5.14 | 0.0 | 0.0 | 92.04 | 0.0 | 0.0 | 0.0 | 92.04 |
1109+
| 6 | 31 | 24 January 2026 | | 0.0 | 89.45 | 2.61 | 0.0 | 0.0 | 92.06 | 0.0 | 0.0 | 0.0 | 92.06 |
1110+
Then Loan Repayment schedule has the following data in Total row:
1111+
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
1112+
| 500.0 | 52.26 | 0.0 | 0.0 | 552.26 | 0.0 | 0.0 | 0.0 | 552.26 |
1113+
And Loan Transactions tab has the following data:
1114+
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
1115+
| 24 July 2025 | Disbursement | 500.0 | 0.0 | 0.0 | 0.0 | 0.0 | 500.0 | false | false |
1116+
When Admin creates and approves Loan reschedule with the following data:
1117+
| rescheduleFromDate | submittedOnDate | adjustedDueDate | graceOnPrincipal | graceOnInterest | extraTerms | newInterestRate |
1118+
| 24 July 2025 | 24 July 2025 | | | | | 5 |
1119+
Then Loan Repayment schedule has 6 periods, with the following data for periods:
1120+
| Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
1121+
| | | 24 July 2025 | | 500.0 | | | 0.0 | | 0.0 | 0.0 | | | |
1122+
| 1 | 31 | 24 August 2025 | | 417.53 | 82.47 | 2.08 | 0.0 | 0.0 | 84.55 | 0.0 | 0.0 | 0.0 | 84.55 |
1123+
| 2 | 31 | 24 September 2025 | | 334.72 | 82.81 | 1.74 | 0.0 | 0.0 | 84.55 | 0.0 | 0.0 | 0.0 | 84.55 |
1124+
| 3 | 30 | 24 October 2025 | | 251.56 | 83.16 | 1.39 | 0.0 | 0.0 | 84.55 | 0.0 | 0.0 | 0.0 | 84.55 |
1125+
| 4 | 31 | 24 November 2025 | | 168.06 | 83.5 | 1.05 | 0.0 | 0.0 | 84.55 | 0.0 | 0.0 | 0.0 | 84.55 |
1126+
| 5 | 30 | 24 December 2025 | | 84.21 | 83.85 | 0.7 | 0.0 | 0.0 | 84.55 | 0.0 | 0.0 | 0.0 | 84.55 |
1127+
| 6 | 31 | 24 January 2026 | | 0.0 | 84.21 | 0.35 | 0.0 | 0.0 | 84.56 | 0.0 | 0.0 | 0.0 | 84.56 |
1128+
Then Loan Repayment schedule has the following data in Total row:
1129+
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
1130+
| 500.0 | 7.31 | 0.0 | 0.0 | 507.31 | 0.0 | 0.0 | 0.0 | 507.31 |
1131+
And Loan Transactions tab has the following data:
1132+
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
1133+
| 24 July 2025 | Disbursement | 500.0 | 0.0 | 0.0 | 0.0 | 0.0 | 500.0 | false | false |
1134+
Then LoanRescheduledDueAdjustScheduleBusinessEvent is raised on "24 July 2025"
1135+
10921136

0 commit comments

Comments
 (0)