adamsaghy commented on code in PR #6205:
URL: https://github.com/apache/fineract/pull/6205#discussion_r3749118720
##########
fineract-e2e-tests-runner/src/test/resources/features/WorkingCapitalDelinquencyReschedule.feature:
##########
@@ -1861,6 +1871,81 @@ Feature: Working Capital Delinquency Reschedule Action
When Admin sets the business date to "17 April 2026"
When Admin runs inline COB job for Working Capital Loan
Then WC loan delinquency range schedule periods have specific data:
- | periodNumber | fromDate | toDate | expectedAmount |
paidAmount | outstandingAmount | minPaymentCriteriaMet |
- | 4 | 01 April 2026 | 30 April 2026 | 150 | 0
| 150 | |
+ | periodNumber | fromDate | toDate | expectedAmount |
paidAmount | outstandingAmount | minPaymentCriteriaMet |
+ | 4 | 01 April 2026 | 30 April 2026 | 150 | 0
| 150 | |
Then Admin closes the Working Capital loan with a full repayment on "17
April 2026"
+
+ @TestRailId:C93975
+ Scenario: Verify delinquency reschedule frequency change is rejected when
resulting period end date is in the past
+ When Admin sets the business date to "01 January 2026"
+ When Admin creates a client with random data
+ When Admin creates WC Delinquency Bucket with frequency 30 DAYS and
minimumPayment 3 PERCENTAGE
+ When Admin creates a new Working Capital Loan Product with delinquency
bucket
+ When Admin creates a working capital loan with the following data:
+ | LoanProduct | submittedOnDate | expectedDisbursementDate |
principalAmount | totalPaymentVolume | periodPaymentRate | discount |
+ | WCLP_DELINQUENCY | 01 January 2026 | 01 January 2026 | 10000
| 10000 | 1 | 0.0 |
+ When Admin successfully approves the working capital loan on "01 January
2026" with "10000" amount and expected disbursement date on "01 January 2026"
+ And Admin successfully disburse the Working Capital loan on "01 January
2026" with "10000" EUR transaction amount
+ When Admin runs inline COB job for Working Capital Loan
+ When Admin sets the business date to "20 January 2026"
+ When Admin runs inline COB job for Working Capital Loan
+ Then Admin fails to create WC delinquency reschedule action with error
containing "Frequency change results a delinquency period endDate before
current businessDate is not allowed" and the following parameters:
+ | frequency | frequencyType |
+ | 15 | DAYS |
+ Then WC loan delinquency range schedule has the following periods:
+ | periodNumber | fromDate | toDate | expectedAmount |
paidAmount | outstandingAmount | minPaymentCriteriaMet |
+ | 1 | 01 January 2026 | 30 January 2026 | 300 | 0
| 300 | |
+ Then Admin fails to create WC delinquency reschedule action with error
containing "Frequency change results a delinquency period endDate before
current businessDate is not allowed" and the following parameters:
+ | frequency | frequencyType |
+ | 19 | DAYS |
+ # --- Delinquency reschedule ---
+ When Admin creates WC delinquency reschedule action with the following
parameters:
+ | frequency | frequencyType |
+ | 20 | DAYS |
+ Then WC loan delinquency range schedule has the following periods:
+ | periodNumber | fromDate | toDate | expectedAmount |
paidAmount | outstandingAmount | minPaymentCriteriaMet |
+ | 1 | 01 January 2026 | 20 January 2026 | 300 | 0
| 300 | false |
+ | 2 | 21 January 2026 | 09 February 2026 | 300 | 0
| 300 | |
+ # --- Close loan ---
+ Then Admin closes the Working Capital loan with a full repayment on "20
January 2026"
+
+ @TestRailId:C93975
Review Comment:
@peter-kovacs-dpc duplicate `C93975`
--
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]