adamsaghy commented on code in PR #6341:
URL: https://github.com/apache/fineract/pull/6341#discussion_r3880165392
##########
fineract-e2e-tests-runner/src/test/resources/features/LoanReAging-Part3.feature:
##########
@@ -1692,142 +1296,6 @@ Feature: LoanReAging - Part3
| Transaction date | Transaction Type | Amount | Principal | Interest |
Fees | Penalties | Loan Balance | Reverted | Replayed |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 |
0.0 | 0.0 | 100.0 | false | false |
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 |
0.0 | 0.0 | 83.57 | false | false |
-# --- Reschedule before re-age ---
- When Admin sets the business date to "02 February 2024"
- When Admin creates and approves Loan reschedule with the following data:
- | rescheduleFromDate | submittedOnDate | adjustedDueDate |
graceOnPrincipal | graceOnInterest | extraTerms | newInterestRate |
- | 01 March 2024 | 02 February 2024 | |
| | | 10 |
- Then Loan Repayment schedule has 6 periods, with the following data for
periods:
- | Nr | Days | Date | Paid date | Balance of loan |
Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late
| Outstanding |
- | | | 01 January 2024 | | 100.0 |
| | 0.0 | | 0.0 | 0.0 | | |
|
- | 1 | 31 | 01 February 2024 | 01 February 2024 | 83.57 |
16.43 | 0.58 | 0.0 | 0.0 | 17.01 | 17.01 | 0.0 | 0.0
| 0.0 |
- | 2 | 29 | 01 March 2024 | | 66.97 |
16.6 | 0.49 | 0.0 | 0.0 | 17.09 | 0.0 | 0.0 | 0.0
| 17.09 |
- | 3 | 31 | 01 April 2024 | | 50.44 |
16.53 | 0.56 | 0.0 | 0.0 | 17.09 | 0.0 | 0.0 | 0.0
| 17.09 |
- | 4 | 30 | 01 May 2024 | | 33.77 |
16.67 | 0.42 | 0.0 | 0.0 | 17.09 | 0.0 | 0.0 | 0.0
| 17.09 |
- | 5 | 31 | 01 June 2024 | | 16.96 |
16.81 | 0.28 | 0.0 | 0.0 | 17.09 | 0.0 | 0.0 | 0.0
| 17.09 |
- | 6 | 30 | 01 July 2024 | | 0.0 |
16.96 | 0.14 | 0.0 | 0.0 | 17.1 | 0.0 | 0.0 | 0.0
| 17.1 |
- And Loan Repayment schedule has the following data in Total row:
- | Principal due | Interest | Fees | Penalties | Due | Paid | In
advance | Late | Outstanding |
- | 100.0 | 2.47 | 0.0 | 0.0 | 102.47 | 17.01 | 0.0
| 0.0 | 85.46 |
- And Loan Transactions tab has the following data:
- | Transaction date | Transaction Type | Amount | Principal | Interest |
Fees | Penalties | Loan Balance | Reverted | Replayed |
- | 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 |
0.0 | 0.0 | 100.0 | false | false |
- | 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 |
0.0 | 0.0 | 83.57 | false | false |
-# --- Check before re-age ---
- When Admin sets the business date to "15 March 2024"
- Then Loan Repayment schedule has 6 periods, with the following data for
periods:
- | Nr | Days | Date | Paid date | Balance of loan |
Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late
| Outstanding |
- | | | 01 January 2024 | | 100.0 |
| | 0.0 | | 0.0 | 0.0 | | |
|
- | 1 | 31 | 01 February 2024 | 01 February 2024 | 83.57 |
16.43 | 0.58 | 0.0 | 0.0 | 17.01 | 17.01 | 0.0 | 0.0
| 0.0 |
- | 2 | 29 | 01 March 2024 | | 66.97 |
16.6 | 0.49 | 0.0 | 0.0 | 17.09 | 0.0 | 0.0 | 0.0
| 17.09 |
- | 3 | 31 | 01 April 2024 | | 50.44 |
16.53 | 0.56 | 0.0 | 0.0 | 17.09 | 0.0 | 0.0 | 0.0
| 17.09 |
- | 4 | 30 | 01 May 2024 | | 33.77 |
16.67 | 0.42 | 0.0 | 0.0 | 17.09 | 0.0 | 0.0 | 0.0
| 17.09 |
- | 5 | 31 | 01 June 2024 | | 16.96 |
16.81 | 0.28 | 0.0 | 0.0 | 17.09 | 0.0 | 0.0 | 0.0
| 17.09 |
- | 6 | 30 | 01 July 2024 | | 0.0 |
16.96 | 0.14 | 0.0 | 0.0 | 17.1 | 0.0 | 0.0 | 0.0
| 17.1 |
- And Loan Repayment schedule has the following data in Total row:
- | Principal due | Interest | Fees | Penalties | Due | Paid | In
advance | Late | Outstanding |
- | 100.0 | 2.47 | 0.0 | 0.0 | 102.47 | 17.01 | 0.0
| 0.0 | 85.46 |
- And Loan Transactions tab has the following data:
- | Transaction date | Transaction Type | Amount | Principal | Interest |
Fees | Penalties | Loan Balance | Reverted | Replayed |
- | 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 |
0.0 | 0.0 | 100.0 | false | false |
- | 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 |
0.0 | 0.0 | 83.57 | false | false |
-# --- Re-age transaction ---
- When Admin creates a Loan re-aging transaction with the following data:
- | frequencyNumber | frequencyType | startDate | numberOfInstallments
| reAgeInterestHandling |
- | 1 | MONTHS | 01 April 2024 | 6
| DEFAULT |
- Then Loan Repayment schedule has 9 periods, with the following data for
periods:
- | Nr | Days | Date | Paid date | Balance of loan |
Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late
| Outstanding |
- | | | 01 January 2024 | | 100.0 |
| | 0.0 | | 0.0 | 0.0 | | |
|
- | 1 | 31 | 01 February 2024 | 01 February 2024 | 83.57 |
16.43 | 0.58 | 0.0 | 0.0 | 17.01 | 17.01 | 0.0 | 0.0
| 0.0 |
- | 2 | 29 | 01 March 2024 | 15 March 2024 | 83.57 |
0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0
| 0.0 |
- | 3 | 14 | 15 March 2024 | 15 March 2024 | 83.57 |
0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0
| 0.0 |
- | 4 | 17 | 01 April 2024 | | 70.33 |
13.24 | 1.18 | 0.0 | 0.0 | 14.42 | 0.0 | 0.0 | 0.0
| 14.42 |
- | 5 | 30 | 01 May 2024 | | 56.5 |
13.83 | 0.59 | 0.0 | 0.0 | 14.42 | 0.0 | 0.0 | 0.0
| 14.42 |
- | 6 | 31 | 01 June 2024 | | 42.55 |
13.95 | 0.47 | 0.0 | 0.0 | 14.42 | 0.0 | 0.0 | 0.0
| 14.42 |
- | 7 | 30 | 01 July 2024 | | 28.48 |
14.07 | 0.35 | 0.0 | 0.0 | 14.42 | 0.0 | 0.0 | 0.0
| 14.42 |
- | 8 | 31 | 01 August 2024 | | 14.3 |
14.18 | 0.24 | 0.0 | 0.0 | 14.42 | 0.0 | 0.0 | 0.0
| 14.42 |
- | 9 | 31 | 01 September 2024 | | 0.0 |
14.3 | 0.12 | 0.0 | 0.0 | 14.42 | 0.0 | 0.0 | 0.0
| 14.42 |
- And Loan Repayment schedule has the following data in Total row:
- | Principal due | Interest | Fees | Penalties | Due | Paid | In
advance | Late | Outstanding |
- | 100.0 | 3.53 | 0.0 | 0.0 | 103.53 | 17.01 | 0.0
| 0.0 | 86.52 |
- And Loan Transactions tab has the following data:
- | Transaction date | Transaction Type | Amount | Principal | Interest |
Fees | Penalties | Loan Balance | Reverted | Replayed |
- | 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 |
0.0 | 0.0 | 100.0 | false | false |
- | 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 |
0.0 | 0.0 | 83.57 | false | false |
- | 15 March 2024 | Re-age | 84.37 | 83.57 | 0.8 |
0.0 | 0.0 | 0.0 | false | false |
- # --- Reschedule after re-age ---
- When Admin sets the business date to "02 April 2024"
- When Admin creates and approves Loan reschedule with the following data:
- | rescheduleFromDate | submittedOnDate | adjustedDueDate |
graceOnPrincipal | graceOnInterest | extraTerms | newInterestRate |
- | 01 May 2024 | 02 April 2024 | |
| | | 12 |
- Then Loan Repayment schedule has 9 periods, with the following data for
periods:
- | Nr | Days | Date | Paid date | Balance of loan |
Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late
| Outstanding |
- | | | 01 January 2024 | | 100.0 |
| | 0.0 | | 0.0 | 0.0 | | |
|
- | 1 | 31 | 01 February 2024 | 01 February 2024 | 83.57 |
16.43 | 0.58 | 0.0 | 0.0 | 17.01 | 17.01 | 0.0 | 0.0
| 0.0 |
- | 2 | 29 | 01 March 2024 | 15 March 2024 | 83.57 |
0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0
| 0.0 |
- | 3 | 14 | 15 March 2024 | 15 March 2024 | 83.57 |
0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0
| 0.0 |
- | 4 | 17 | 01 April 2024 | | 70.33 |
13.24 | 1.18 | 0.0 | 0.0 | 14.42 | 0.0 | 0.0 | 0.0
| 14.42 |
- | 5 | 30 | 01 May 2024 | | 56.45 |
13.88 | 0.59 | 0.0 | 0.0 | 14.47 | 0.0 | 0.0 | 0.0
| 14.47 |
- | 6 | 31 | 01 June 2024 | | 42.54 |
13.91 | 0.56 | 0.0 | 0.0 | 14.47 | 0.0 | 0.0 | 0.0
| 14.47 |
- | 7 | 30 | 01 July 2024 | | 28.5 |
14.04 | 0.43 | 0.0 | 0.0 | 14.47 | 0.0 | 0.0 | 0.0
| 14.47 |
- | 8 | 31 | 01 August 2024 | | 14.31 |
14.19 | 0.28 | 0.0 | 0.0 | 14.47 | 0.0 | 0.0 | 0.0
| 14.47 |
- | 9 | 31 | 01 September 2024 | | 0.0 |
14.31 | 0.14 | 0.0 | 0.0 | 14.45 | 0.0 | 0.0 | 0.0
| 14.45 |
- And Loan Repayment schedule has the following data in Total row:
- | Principal due | Interest | Fees | Penalties | Due | Paid | In
advance | Late | Outstanding |
- | 100.0 | 3.76 | 0.0 | 0.0 | 103.76 | 17.01 | 0.0
| 0.0 | 86.75 |
- And Loan Transactions tab has the following data:
- | Transaction date | Transaction Type | Amount | Principal | Interest |
Fees | Penalties | Loan Balance | Reverted | Replayed |
- | 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 |
0.0 | 0.0 | 100.0 | false | false |
- | 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 |
0.0 | 0.0 | 83.57 | false | false |
- | 15 March 2024 | Re-age | 84.37 | 83.57 | 0.8 |
0.0 | 0.0 | 0.0 | false | false |
-# --- close the loan --- #
- When Loan Pay-off is made on "02 April 2024"
- Then Loan is closed with zero outstanding balance and it's all
installments have obligations met
-
- @TestRailId:C4295
Review Comment:
why do we remove these?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]