mariiaKraievska commented on code in PR #5063:
URL: https://github.com/apache/fineract/pull/5063#discussion_r2513250148


##########
fineract-e2e-tests-runner/src/test/resources/features/LoanReAgingPreview.feature:
##########
@@ -0,0 +1,1152 @@
+@LoanReAgingPreviewFeature
+Feature: LoanReAgingPreview
+
+  @TestRailId:C4098
+  Scenario: Basic verification of the loan re-aging preview schedule
+    When Admin sets the business date to "01 January 2025"
+    When Admin creates a client with random data
+    When Admin creates a fully customized loan with the following data:
+      | 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            |
+      | LP2_DOWNPAYMENT_ADV_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL | 
01 January 2025   | 1000           | 0                      | FLAT          | 
SAME_AS_REPAYMENT_PERIOD    | EQUAL_INSTALLMENTS | 3                 | MONTHS   
             | 1              | MONTHS                 | 3                  | 0 
                      | 0                      | 0                    | 
ADVANCED_PAYMENT_ALLOCATION |
+    And Admin successfully approves the loan on "01 January 2025" with "1000" 
amount and expected disbursement date on "01 January 2025"
+    When Admin successfully disburse the loan on "01 January 2025" with "1000" 
EUR transaction amount
+    Then Loan Repayment schedule has 4 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 2025  |           | 1000.0          |           
    |          | 0.0  |           | 0.0   | 0.0  |            |      |          
   |
+      | 1  | 0    | 01 January 2025  |           | 750.0           | 250.0     
    | 0.0      | 0.0  | 0.0       | 250.0 | 0.0  | 0.0        | 0.0  | 250.0    
   |
+      | 2  | 31   | 01 February 2025 |           | 500.0           | 250.0     
    | 0.0      | 0.0  | 0.0       | 250.0 | 0.0  | 0.0        | 0.0  | 250.0    
   |
+      | 3  | 28   | 01 March 2025    |           | 250.0           | 250.0     
    | 0.0      | 0.0  | 0.0       | 250.0 | 0.0  | 0.0        | 0.0  | 250.0    
   |
+      | 4  | 31   | 01 April 2025    |           | 0.0             | 250.0     
    | 0.0      | 0.0  | 0.0       | 250.0 | 0.0  | 0.0        | 0.0  | 250.0    
   |
+    Then Loan Repayment schedule has the following data in Total row:
+      | Principal due | Interest | Fees | Penalties | Due    | Paid | In 
advance | Late | Outstanding |
+      | 1000.0        | 0.0      | 0.0  | 0.0       | 1000.0 | 0.0  | 0.0      
  | 0.0  | 1000.0      |
+    When Admin sets the business date to "15 April 2025"
+    When Admin creates a Loan re-aging preview by Loan external ID with the 
following data:
+      | frequencyNumber | frequencyType | startDate     | numberOfInstallments 
|
+      | 1               | MONTHS        | 15 April 2025 | 3                    
|
+    Then Loan Repayment schedule preview has 7 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 2025  |               | 1000.0          | 0.0   
        | 0.0      | 0.0  | 0.0       | 0.0    | 0.0  |            |      |     
        |
+      | 1  | 0    | 01 January 2025  | 15 April 2025 | 1000.0          | 0.0   
        | 0.0      | 0.0  | 0.0       | 0.0    | 0.0  | 0.0        | 0.0  | 0.0 
        |
+      | 2  | 31   | 01 February 2025 | 15 April 2025 | 1000.0          | 0.0   
        | 0.0      | 0.0  | 0.0       | 0.0    | 0.0  | 0.0        | 0.0  | 0.0 
        |
+      | 3  | 28   | 01 March 2025    | 15 April 2025 | 1000.0          | 0.0   
        | 0.0      | 0.0  | 0.0       | 0.0    | 0.0  | 0.0        | 0.0  | 0.0 
        |
+      | 4  | 31   | 01 April 2025    | 15 April 2025 | 1000.0          | 0.0   
        | 0.0      | 0.0  | 0.0       | 0.0    | 0.0  | 0.0        | 0.0  | 0.0 
        |
+      | 5  | 14   | 15 April 2025    |               | 666.67          | 
333.33        | 0.0      | 0.0  | 0.0       | 333.33 | 0.0  | 0.0        | 0.0  
| 333.33      |
+      | 6  | 30   | 15 May 2025      |               | 333.34          | 
333.33        | 0.0      | 0.0  | 0.0       | 333.33 | 0.0  | 0.0        | 0.0  
| 333.33      |
+      | 7  | 31   | 15 June 2025     |               | 0.0             | 
333.34        | 0.0      | 0.0  | 0.0       | 333.34 | 0.0  | 0.0        | 0.0  
| 333.34      |
+    Then Loan Repayment schedule preview has the following data in Total row:
+      | Principal due | Interest | Fees | Penalties | Due    | Paid | In 
advance | Late | Outstanding |
+      | 1000.0        | 0.0      | 0.0  | 0.0       | 1000.0 | 0.0  | 0.0      
  | 0.0  | 1000.0      |
+    Then Loan Repayment schedule has 4 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 2025  |           | 1000.0          |           
    |          | 0.0  |           | 0.0   | 0.0  |            |      |          
   |
+      | 1  | 0    | 01 January 2025  |           | 750.0           | 250.0     
    | 0.0      | 0.0  | 0.0       | 250.0 | 0.0  | 0.0        | 0.0  | 250.0    
   |
+      | 2  | 31   | 01 February 2025 |           | 500.0           | 250.0     
    | 0.0      | 0.0  | 0.0       | 250.0 | 0.0  | 0.0        | 0.0  | 250.0    
   |
+      | 3  | 28   | 01 March 2025    |           | 250.0           | 250.0     
    | 0.0      | 0.0  | 0.0       | 250.0 | 0.0  | 0.0        | 0.0  | 250.0    
   |
+      | 4  | 31   | 01 April 2025    |           | 0.0             | 250.0     
    | 0.0      | 0.0  | 0.0       | 250.0 | 0.0  | 0.0        | 0.0  | 250.0    
   |
+    Then Loan Repayment schedule has the following data in Total row:
+      | Principal due | Interest | Fees | Penalties | Due    | Paid | In 
advance | Late | Outstanding |
+      | 1000.0        | 0.0      | 0.0  | 0.0       | 1000.0 | 0.0  | 0.0      
  | 0.0  | 1000.0      |
+
+ #   When Loan Pay-off is made on "15 April 2025"

Review Comment:
   I believe it can be uncommented, or am I missing something?



-- 
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]

Reply via email to