oleksii-novikov-onix commented on code in PR #6343:
URL: https://github.com/apache/fineract/pull/6343#discussion_r3947222958


##########
fineract-e2e-tests-runner/src/test/resources/features/WorkingCapitalAnnualEffectiveInterestRate.feature:
##########
@@ -0,0 +1,302 @@
+@WorkingCapital @WorkingCapitalAnnualEirFeature
+Feature: Working Capital annual effective interest rate
+
+  @TestRailId:C102371
+  Scenario: Verify that loan details expose the six-decimal annual rate and 
the schedule runs on the daily rate derived from it
+    When Admin sets the business date to "01 January 2026"
+    And Admin creates a client with random data
+    And Admin creates a working capital loan with the following data:
+      | LoanProduct | submittedOnDate | expectedDisbursementDate | 
principalAmount | totalPaymentVolume | periodPaymentRate | discount |
+      | WCLP        | 01 January 2026 | 01 January 2026          | 9000        
    | 100000             | 18                |          |
+    Then Working capital loan creation was successful
+    When Admin successfully approves the working capital loan on "01 January 
2026" with "9000" amount and expected disbursement date on "01 January 2026"
+    Then Working capital loan approval was successful
+    When Admin successfully disburse the Working Capital loan on "01 January 
2026" with "9000" EUR transaction amount
+    Then Verify Working Capital loan disbursement was successful
+    And Working capital loan details has the following exact decimal field 
values:
+      | calculatedAnnualEir | 0.0 |
+    When Admin successfully add discount with "1000" amount on Working Capital 
loan account
+    Then Working capital loan details has the following exact decimal field 
values:
+      | calculatedAnnualEir | 0.468451 |
+    And Working capital loan details has the following field values:
+      | numberOfRepayments  | 200  |
+      | periodPaymentAmount | 50.0 |
+    And Working capital loan details raw JSON serialises "calculatedAnnualEir" 
as "0.468451"

Review Comment:
   Fixed



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