peter-kovacs-dpc commented on code in PR #6236:
URL: https://github.com/apache/fineract/pull/6236#discussion_r3749575463
##########
fineract-e2e-tests-runner/src/test/resources/features/WorkingCapitalBreachReset.feature:
##########
@@ -619,3 +619,212 @@ Feature: Working Capital Breach Reset and Undo Reset
| 2 | 2026-03-02 | 2026-05-10 | 70 | 400.00
| 400.00 | true | true |
| 3 | 2026-05-11 | 2026-07-09 | 60 | 400.00
| 400.00 | null | false |
Then Admin closes the Working Capital loan with a full repayment on "11
May 2026"
+
+ @TestRailId:C93995
+ Scenario: Verify WC breach reset split current period - UC1: two
installments overdue with backdated payments before and after reset
+ 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 Product with custom breach config
and overrides enabled:
+ | breachFrequency | breachFrequencyType | breachAmountCalculationType |
breachAmount | delinquencyGraceDays |
+ | 60 | DAYS | PERCENTAGE |
50 | |
+ And Admin creates a working capital loan using created product with the
following data:
+ | submittedOnDate | expectedDisbursementDate | principalAmount |
totalPaymentVolume | periodPaymentRate | discount |
+ | 01 January 2026 | 01 January 2026 | 800 | 10000
| 18 | 0 |
+ And Admin successfully approves the working capital loan on "01 January
2026" with "800" amount and expected disbursement date on "01 January 2026"
+ When Admin successfully disburse the Working Capital loan on "01 January
2026" with "800" EUR transaction amount
+ And Admin runs inline COB job for Working Capital Loan by loanId
+ When Admin sets the business date to "15 January 2026"
+ And Customer makes repayment on "15 January 2026" with 200.0 transaction
amount on Working Capital loan
+ When Admin sets the business date to "15 February 2026"
+ And Customer makes repayment on "15 February 2026" with 100.0 transaction
amount on Working Capital loan
+ When Admin sets the business date to "03 March 2026"
+ And Admin runs inline COB job for Working Capital Loan by loanId
+ # Period 1 breaches (100 past due), period 2 is still open
+ Then Working Capital loan breach schedule has the following data:
+ | periodNumber | fromDate | toDate | numberOfDays |
minPaymentAmount | outstandingAmount | breach | reset |
+ | 1 | 2026-01-01 | 2026-03-01 | 60 | 400.00
| 100.00 | true | false |
+ | 2 | 2026-03-02 | 2026-04-30 | 60 | 400.00
| 400.00 | null | false |
+ When Admin sets the business date to "15 April 2026"
+ # --- Breach reset with restart period from reset date ---
+ And Admin creates WC breach reset action with restart period from reset
date
Review Comment:
Done
--
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]