FINERACT-2354: e2e test scenarios for re-aging preview

This commit is contained in:
MarianaDmytrivBinariks
2025-11-11 12:04:51 +01:00
committed by Adam Saghy
parent 3efafa778e
commit 01ca515e8f
9 changed files with 1487 additions and 138 deletions
@@ -333,8 +333,7 @@ public class LoanReAgingStepDef extends AbstractStepDef {
loanId, frequencyNumber, frequencyType, startDate, numberOfInstallments);
}
@When("Admin creates a Loan re-aging preview by Loan external ID with the following data:")
public void createReAgingPreviewByLoanExternalId(DataTable table) throws IOException {
public Response<LoanScheduleData> reAgingPreviewByLoanExternalId(DataTable table) throws IOException {
Response<PostLoansResponse> loanResponse = testContext().get(TestContextKey.LOAN_CREATE_RESPONSE);
String loanExternalId = loanResponse.body().getResourceExternalId();
@@ -347,12 +346,39 @@ public class LoanReAgingStepDef extends AbstractStepDef {
Response<LoanScheduleData> response = loanTransactionsApi
.previewReAgeSchedule1(loanExternalId, frequencyNumber, frequencyType, startDate, numberOfInstallments, DATE_FORMAT, "en")
.execute();
log.info(
"Re-aging preview is requested to be created with loan external ID: {} with parameters: frequencyNumber={}, frequencyType={}, startDate={}, numberOfInstallments={}",
loanExternalId, frequencyNumber, frequencyType, startDate, numberOfInstallments);
return response;
}
@When("Admin creates a Loan re-aging preview by Loan external ID with the following data:")
public void createReAgingPreviewByLoanExternalId(DataTable table) throws IOException {
Response<LoanScheduleData> response = reAgingPreviewByLoanExternalId(table);
ErrorHelper.checkSuccessfulApiCall(response);
testContext().set(TestContextKey.LOAN_REAGING_PREVIEW_RESPONSE, response);
log.info(
"Re-aging preview created for loan external ID: {} with parameters: frequencyNumber={}, frequencyType={}, startDate={}, numberOfInstallments={}",
loanExternalId, frequencyNumber, frequencyType, startDate, numberOfInstallments);
log.info("Re-aging preview is created with loan externalId.");
}
@Then("Admin fails to create a Loan re-aging preview with the following data because loan was charged-off:")
public void reAgePreviewChargedOffLoanFailure(final DataTable table) throws IOException {
Response<LoanScheduleData> response = reAgingPreviewByLoanExternalId(table);
final ErrorResponse errorDetails = ErrorResponse.from(response);
final String developerMessage = errorDetails.getSingleError().getDeveloperMessage();
assertThat(errorDetails.getHttpStatusCode()).as(ErrorMessageHelper.dateFailureErrorCodeMsg()).isEqualTo(403);
assertThat(developerMessage).matches(ErrorMessageHelper.reAgeChargedOffLoanFailure());
}
@Then("Admin fails to create a Loan re-aging preview with the following data because loan was contract terminated:")
public void reAgePreviewContractTerminatedLoanFailure(final DataTable table) throws IOException {
Response<LoanScheduleData> response = reAgingPreviewByLoanExternalId(table);
final ErrorResponse errorDetails = ErrorResponse.from(response);
final String developerMessage = errorDetails.getSingleError().getDeveloperMessage();
assertThat(errorDetails.getHttpStatusCode()).as(ErrorMessageHelper.dateFailureErrorCodeMsg()).isEqualTo(403);
assertThat(developerMessage).matches(ErrorMessageHelper.reAgeContractTerminatedLoanFailure());
}
@Then("Loan Repayment schedule preview has {int} periods, with the following data for periods:")
@@ -7818,8 +7818,8 @@ Feature: Loan
| 01 January 2025 | 01 January 2025 | 700.0 | |
| 01 January 2025 | 01 January 2025 | 200.0 | |
When Loan Pay-off is made on "1 January 2025"
Then Loan's all installments have obligations met
When Loan Pay-off is made on "01 January 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4029
Scenario: Verify tranche interest bearing progressive loan that expects two tranches at the same date with over expected disb amount in expected order - UC2
@@ -7892,7 +7892,7 @@ Feature: Loan
| 01 January 2025 | 01 January 2025 | 250.0 | |
When Loan Pay-off is made on "1 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4030
Scenario: Verify tranche interest bearing progressive loan that expects two tranches at the same date with over expected disb amount in not expected order - UC3
@@ -7966,6 +7966,9 @@ Feature: Loan
| 01 January 2025 | 01 January 2025 | 300.0 | |
| 01 January 2025 | 01 January 2025 | 600.0 | |
When Loan Pay-off is made on "01 January 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4031
Scenario: Verify tranche interest bearing progressive loan that expects two tranches at the same date with diff expected disb amounts in diff order - UC4
When Admin sets the business date to "01 January 2025"
@@ -8038,7 +8041,7 @@ Feature: Loan
| 01 January 2025 | 01 January 2025 | 300.0 | |
When Loan Pay-off is made on "1 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4032
Scenario: Verify tranche interest bearing progressive loan that expects two tranches at the same date in defined order with over expected 2nd disb amount - UC5
@@ -8111,7 +8114,7 @@ Feature: Loan
| 01 January 2025 | 01 January 2025 | 800.0 | |
When Loan Pay-off is made on "1 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4033
Scenario: Verify tranche interest bearing progressive loan that expects tranche with added 2nd tranche at the same date and undo disbursement - UC6
@@ -8246,7 +8249,7 @@ Feature: Loan
Then Admin fails to disburse the loan on "01 February 2025" with "50" amount
When Loan Pay-off is made on "1 February 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4034
Scenario: Verify tranche interest bearing progressive loan that expects tranches at the same date with repayment and undo last disbursement - UC7
@@ -8357,7 +8360,7 @@ Feature: Loan
Then Admin fails to disburse the loan on "01 January 2025" with "200" amount
When Loan Pay-off is made on "1 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4035
Scenario: Verify tranche interest bearing progressive loan that expects tranche with added 2 tranches at the same date - UC8
@@ -8485,7 +8488,7 @@ Feature: Loan
Then Admin fails to disburse the loan on "01 February 2025" with "50" amount
When Loan Pay-off is made on "1 February 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4118
Scenario: Verify cumulative multidisb loan with 2nd disb at 1st installment with flat interest type and same_as_repeyment interest calculation period - UC1
@@ -5816,8 +5816,7 @@ Feature: LoanAccrualActivity
When Admin sets the business date to "28 March 2025"
And Admin runs inline COB job for Loan
When Admin makes Credit Balance Refund transaction on "28 March 2025" with 100 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan has 0 outstanding amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
Then Loan Repayment schedule has 13 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 |
| | | 21 March 2025 | | 242.46 | | | 0.0 | | 0.0 | 0.0 | | | |
@@ -5890,6 +5889,9 @@ Feature: LoanAccrualActivity
| 19 April 2025 | Accrual | 0.08 | 0.0 | 0.08 | 0.0 | 0.0 | 0.0 | false | false |
| 20 April 2025 | Accrual | 0.08 | 0.0 | 0.08 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "21 April 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3693
Scenario: Verify that accruals are added in case of reversed repayment made before MIR and CBR for progressive loan with auto downpayment - UC2
When Admin sets the business date to "21 March 2025"
@@ -6031,6 +6033,9 @@ Feature: LoanAccrualActivity
| 19 April 2025 | Accrual | 0.08 | 0.0 | 0.08 | 0.0 | 0.0 | 0.0 | false | false |
| 20 April 2025 | Accrual | 0.08 | 0.0 | 0.08 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "21 April 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3694
Scenario: Verify repayment and accruals are added after reversed repayment made before MIR and CBR for progressive loan - UC3
When Admin sets the business date to "21 March 2025"
@@ -6226,6 +6231,9 @@ Feature: LoanAccrualActivity
| 21 April 2025 | Repayment | 80.0 | 40.0 | 0.77 | 0.0 | 0.0 | 0.0 | true | false |
| 21 April 2025 | Accrual | 0.03 | 0.0 | 0.03 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "21 April 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3695
Scenario: Verify accrual activity of overpaid loan in case of reversed repayment made before MIR and CBR for loan with interest refund - UC4
When Admin sets the business date to "21 March 2025"
@@ -6286,8 +6294,7 @@ Feature: LoanAccrualActivity
When Admin sets the business date to "28 March 2025"
And Admin runs inline COB job for Loan
When Admin makes Credit Balance Refund transaction on "28 March 2025" with 100 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan has 0 outstanding amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
When Admin sets the business date to "02 April 2025"
And Admin runs inline COB job for Loan
When Customer undo "1"th "Merchant Issued Refund" transaction made on "21 March 2025"
@@ -6353,8 +6360,7 @@ Feature: LoanAccrualActivity
When Admin sets the business date to "23 April 2025"
And Admin runs inline COB job for Loan
When Admin makes Credit Balance Refund transaction on "23 April 2025" with 156.7 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan has 0 outstanding amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
Then Loan Repayment schedule has 12 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 |
| | | 21 March 2025 | | 242.46 | | | 0.0 | | 0.0 | 0.0 | | | |
@@ -6422,6 +6428,9 @@ Feature: LoanAccrualActivity
# - CBR on active loan - with outstanding amount is forbidden -#
Then Credit Balance Refund transaction on active loan "25 April 2025" with 100 EUR transaction amount will result an error
When Loan Pay-off is made on "25 April 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3696
Scenario: Verify accrual activity of overpaid loan in case of reversed repayment made before MIR and CBR for progressive multidisbursal loan - UC5
When Admin sets the business date to "21 March 2025"
@@ -6482,8 +6491,7 @@ Feature: LoanAccrualActivity
When Admin sets the business date to "28 March 2025"
And Admin runs inline COB job for Loan
When Admin makes Credit Balance Refund transaction on "28 March 2025" with 100 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan has 0 outstanding amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
When Admin sets the business date to "02 April 2025"
And Admin runs inline COB job for Loan
When Customer undo "1"th "Repayment" transaction made on "21 March 2025"
@@ -6550,8 +6558,7 @@ Feature: LoanAccrualActivity
When Admin sets the business date to "28 April 2025"
And Admin runs inline COB job for Loan
When Admin makes Credit Balance Refund transaction on "28 April 2025" with 48.07 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan has 0 outstanding amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
# - CBR on closed loan is forbidden - #
Then Credit Balance Refund transaction on active loan "28 April 2025" with 100 EUR transaction amount will result an error
When Admin sets the business date to "06 May 2025"
@@ -6680,11 +6687,14 @@ Feature: LoanAccrualActivity
| 28 April 2025 | Accrual | 0.04 | 0.0 | 0.04 | 0.0 | 0.0 | 0.0 | false | false |
| 29 April 2025 | Accrual | 0.09 | 0.0 | 0.09 | 0.0 | 0.0 | 0.0 | false | false |
| 30 April 2025 | Accrual | 0.08 | 0.0 | 0.08 | 0.0 | 0.0 | 0.0 | false | false |
| 01 May 2025 | Repayment | 330.0 | 246.03 | 1.77 | 0.0 | 0.0 | 0.0 | true | false |
| 01 May 2025 | Repayment | 330.0 | 246.03 | 1.77 | 0.0 | 0.0 | 0.0 | true | false |
| 01 May 2025 | Accrual | 4.87 | 0.0 | 4.87 | 0.0 | 0.0 | 0.0 | false | false |
# - CBR on closed loan is forbidden - #
Then Credit Balance Refund transaction on active loan "03 May 2025" with 100 EUR transaction amount will result an error
When Loan Pay-off is made on "03 May 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3697
Scenario: Verify accrual activity of overpaid loan in case of reversed MIR made before MIR and CBR for progressive loan - UC6
When Admin sets the business date to "21 March 2025"
@@ -6722,8 +6732,7 @@ Feature: LoanAccrualActivity
When Admin sets the business date to "28 March 2025"
And Admin runs inline COB job for Loan
When Admin makes Credit Balance Refund transaction on "28 March 2025" with 100 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan has 0 outstanding amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
When Admin sets the business date to "02 April 2025"
And Admin runs inline COB job for Loan
When Customer undo "1"th "Repayment" transaction made on "21 March 2025"
@@ -6798,7 +6807,7 @@ Feature: LoanAccrualActivity
When Admin sets the business date to "06 May 2025"
And Admin runs inline COB job for Loan
And Customer makes "AUTOPAY" repayment on "06 May 2025" with 2.6 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
Then Loan has 0 outstanding amount
Then Loan Repayment schedule has 12 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 |
@@ -6938,6 +6947,7 @@ Feature: LoanAccrualActivity
When Admin sets the business date to "07 May 2025"
And Admin runs inline COB job for Loan
And Customer makes "AUTOPAY" repayment on "07 May 2025" with 73.68 EUR transaction amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
When Admin sets the business date to "08 May 2025"
And Admin runs inline COB job for Loan
Then Loan Repayment schedule has 12 periods, with the following data for periods:
@@ -7099,6 +7109,7 @@ Feature: LoanAccrualActivity
When Admin sets the business date to "07 May 2025"
And Admin runs inline COB job for Loan
And Customer makes "AUTOPAY" repayment on "07 May 2025" with 55.27 EUR transaction amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
Then Loan Repayment schedule has 13 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 |
| | | 07 April 2025 | | 72.3 | | | 0.0 | | 0.0 | 0.0 | | | |
@@ -7219,8 +7230,7 @@ Feature: LoanAccrualActivity
When Admin sets the business date to "28 March 2025"
And Admin runs inline COB job for Loan
When Admin makes Credit Balance Refund transaction on "28 March 2025" with 100 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan has 0 outstanding amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
Then Loan Repayment schedule has 13 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 |
| | | 21 March 2025 | | 242.46 | | | 0.0 | | 0.0 | 0.0 | | | |
@@ -7362,8 +7372,7 @@ Feature: LoanAccrualActivity
| 21 April 2025 | Accrual | 0.08 | 0.0 | 0.08 | 0.0 | 0.0 | 0.0 | false | false |
| 22 April 2025 | Accrual | 0.08 | 0.0 | 0.08 | 0.0 | 0.0 | 0.0 | false | false |
And Customer makes "AUTOPAY" repayment on "23 April 2025" with 102.1 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan has 0 outstanding amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
And Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
| 21 March 2025 | Disbursement | 242.46 | 0.0 | 0.0 | 0.0 | 0.0 | 242.46 | false | false |
@@ -7553,8 +7562,7 @@ Feature: LoanAccrualActivity
| 25 May 2025 | Accrual | 0.09 | 0.0 | 0.09 | 0.0 | 0.0 | 0.0 | false | false |
Then Loan has 8.7 total unpaid payable due interest
And Customer makes "AUTOPAY" repayment on "26 May 2025" with 107.75 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan has 0 outstanding amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3802
Scenario: Correct Accrual Activity event publishing for backdated loans when the loan re-opens after reversing a goodwill credit transaction - UC1
@@ -7591,7 +7599,7 @@ Feature: LoanAccrualActivity
And "Accrual Activity" transaction on "05 June 2023" got reverse-replayed on "24 June 2025"
When Loan Pay-off is made on "24 June 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3803
Scenario: Correct Accrual Activity event publishing for backdated loans when the overpaid loan re-opens after reversing a goodwill credit transaction - UC2
@@ -7628,7 +7636,7 @@ Feature: LoanAccrualActivity
And "Accrual Activity" transaction on "05 June 2023" got reverse-replayed on "24 June 2025"
When Loan Pay-off is made on "24 June 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3805
Scenario: Correct Accrual Activity event publishing for backdated loans when the loan re-opens after reversing a payout refund transaction - UC3
@@ -7665,7 +7673,7 @@ Feature: LoanAccrualActivity
And "Accrual Activity" transaction on "05 June 2023" got reverse-replayed on "24 June 2025"
When Loan Pay-off is made on "24 June 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3806
Scenario: Correct Accrual Activity event publishing for backdated loans when the loan re-opens after reversing a merchant issue refund transaction - UC4
@@ -7703,7 +7711,7 @@ Feature: LoanAccrualActivity
And "Accrual Activity" transaction on "05 June 2023" got reverse-replayed on "24 June 2025"
When Loan Pay-off is made on "24 June 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3807
Scenario: Correct Accrual Activity event publishing for backdated loans when the loan re-opens after reversing a interest payment waiver transaction - UC5
@@ -7740,7 +7748,7 @@ Feature: LoanAccrualActivity
And "Accrual Activity" transaction on "05 June 2023" got reverse-replayed on "24 June 2025"
When Loan Pay-off is made on "24 June 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3808
Scenario: Correct Accrual Activity event publishing for backdated loans when the loan re-opens after reversing a repayment transaction - UC6
@@ -7777,7 +7785,7 @@ Feature: LoanAccrualActivity
And "Accrual Activity" transaction on "05 June 2023" got reverse-replayed on "24 June 2025"
When Loan Pay-off is made on "24 June 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4052
Scenario: Verify that no extra accrual activity will be created upon loan reprocessing with merchant issued refund and NSF penalty
@@ -8011,6 +8019,9 @@ Feature: LoanAccrualActivity
| 18 July 2025 | Accrual Adjustment | 0.01 | 0.0 | 0.01 | 0.0 | 0.0 | 0.0 | false | false |
| 18 July 2025 | Accrual | 0.01 | 0.0 | 0.01 | 0.0 | 0.0 | 0.0 | false | false |
When Admin makes Credit Balance Refund transaction on "18 July 2025" with 22.2 EUR transaction amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4054
Scenario: Verify that no extra accrual activity will be created upon loan reprocessing with merchant issued refund and SNOOZE fee
When Admin sets the business date to "13 June 2025"
@@ -8242,6 +8253,8 @@ Feature: LoanAccrualActivity
| 18 July 2025 | Accrual | 2.8 | 0.0 | 0.0 | 2.8 | 0.0 | 0.0 | false | false |
| 18 July 2025 | Accrual Adjustment | 0.02 | 0.0 | 0.02 | 0.0 | 0.0 | 0.0 | false | false |
| 18 July 2025 | Accrual | 0.02 | 0.0 | 0.02 | 0.0 | 0.0 | 0.0 | false | false |
When Admin makes Credit Balance Refund transaction on "18 July 2025" with 22.2 EUR transaction amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3955
Scenario: Verify accrual activity trn just reversed but nt replayed with backdated repayment that overpays loan - UC1
@@ -8450,7 +8463,7 @@ Feature: LoanAccrualActivity
And In Loan Transactions all transactions have non-null external-id
When Admin makes Credit Balance Refund transaction on "06 October 2025" with 4.06 EUR transaction amount
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3956
Scenario: Verify accrual activity trn just reversed but not replayed with backdated repayment that fully pays loan and charge - UC2
@@ -8655,8 +8668,7 @@ Feature: LoanAccrualActivity
When Admin runs inline COB job for Loan
# --- backdated repayment on 01 August 2025 ---
And Admin makes "REPAYMENT" transaction with "AUTOPAY" payment type on "01 August 2025" with 145.74 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan has 0 outstanding amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
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 August 2025 | | 135.94 | | | 0.0 | | 0.0 | 0.0 | | | |
@@ -8830,8 +8842,7 @@ Feature: LoanAccrualActivity
# --- backdated repayment on 01 August 2025 ---
And Admin makes "REPAYMENT" transaction with "AUTOPAY" payment type on "01 August 2025" with 135.94 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan has 0 outstanding amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
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 August 2025 | | 135.94 | | | 0.0 | | 0.0 | 0.0 | | | |
@@ -349,7 +349,7 @@ Feature:Feature: Buy Down Fees
| 01 February 2024 | Repayment | 33.72 | 33.14 | 0.58 | 0.0 | 0.0 | 66.86 | false |
When Admin sets the business date to "1 March 2024"
When Loan Pay-off is made on "1 March 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
@@ -420,7 +420,7 @@ Feature:Feature: Buy Down Fees
When Admin sets the business date to "1 March 2024"
When Admin runs inline COB job for Loan
When Loan Pay-off is made on "1 March 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
And Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
@@ -629,8 +629,9 @@ Feature:Feature: Buy Down Fees
| Date | Fee Amount | Amortized Amount | Not Yet Amortized Amount | Adjusted Amount | Charged Off Amount |
| 01 January 2024 | 50.0 | 33.52 | 0.0 | 0.0 | 16.48 |
And LoanBuyDownFeeAmortizationTransactionCreatedBusinessEvent is created on "01 March 2024"
When Loan Pay-off is made on "1 March 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3829
Scenario: Verify loan with Buy Down fees and charge-off transaction - daily amortization and amortization in case of loan charge-off event - UC3.2
@@ -835,7 +836,7 @@ Feature:Feature: Buy Down Fees
| 01 January 2024 | 50.0 | 33.52 | 0.0 | 0.0 | 16.48 |
And LoanBuyDownFeeAmortizationTransactionCreatedBusinessEvent is created on "01 March 2024"
When Loan Pay-off is made on "1 March 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3848
Scenario: Verify loan with Buy Down fees and undo the charge-off transaction - amortization in case of loan charge-off event should also be reversed - UC3.3
@@ -935,7 +936,7 @@ Feature:Feature: Buy Down Fees
| Date | Fee Amount | Amortized Amount | Not Yet Amortized Amount | Adjusted Amount | Charged Off Amount |
| 01 January 2024 | 50.0 | 17.58 | 32.42 | 0.0 | 0.0 |
When Loan Pay-off is made on "1 February 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3849
Scenario: Verify loan with Buy Down fees and undo the charge-off a fraud loan - amortization in case of loan charge-off event should also be reversed - UC3.4
@@ -1036,7 +1037,7 @@ Feature:Feature: Buy Down Fees
| Date | Fee Amount | Amortized Amount | Not Yet Amortized Amount | Adjusted Amount | Charged Off Amount |
| 01 January 2024 | 50.0 | 17.58 | 32.42 | 0.0 | 0.0 |
When Loan Pay-off is made on "1 February 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3850
Scenario: Verify loan with Buy Down fees and charge-off with "delinquent" reason - amortization in case of loan charge-off event - UC3.5
@@ -1099,7 +1100,7 @@ Feature:Feature: Buy Down Fees
| 01 January 2024 | 50.0 | 13.74 | 0.0 | 0.0 | 36.26 |
And LoanBuyDownFeeAmortizationTransactionCreatedBusinessEvent is created on "25 January 2024"
When Loan Pay-off is made on "25 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3851
Scenario: Verify loan with Buy Down fees and charge-off a fraud loan - amortization in case of loan charge-off event - UC3.6
@@ -1161,7 +1162,7 @@ Feature:Feature: Buy Down Fees
| 01 January 2024 | 50.0 | 13.74 | 0.0 | 0.0 | 36.26 |
And LoanBuyDownFeeAmortizationTransactionCreatedBusinessEvent is created on "25 January 2024"
When Loan Pay-off is made on "25 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3852
Scenario: Verify loan with Buy Down fees and undo the charge-off transaction with "delinquent" reason - amortization in case of loan charge-off event should also be reversed - UC3.7
@@ -1248,7 +1249,7 @@ Feature:Feature: Buy Down Fees
| Date | Fee Amount | Amortized Amount | Not Yet Amortized Amount | Adjusted Amount | Charged Off Amount |
| 01 January 2024 | 50.0 | 13.74 | 36.26 | 0.0 | 0.0 |
When Loan Pay-off is made on "25 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3886
Scenario: Verify loan with with a few Buy Down fees with adjustment and charge-off transaction - amortization in case of loan charge-off event - UC3.8
@@ -1335,7 +1336,7 @@ Feature:Feature: Buy Down Fees
| 01 February 2024 | 50.0 | 25.0 | 0.0 | 0.0 | 25.0 |
And LoanBuyDownFeeAmortizationTransactionCreatedBusinessEvent is created on "01 March 2024"
When Loan Pay-off is made on "1 March 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:С3825
Scenario: Verify loan with Buy Down Fee adjustment trn and repayment trns - UC4
@@ -1431,7 +1432,7 @@ Feature:Feature: Buy Down Fees
| 01 January 2024 | 50.0 | 40.0 | 0.0 | 10.0 | 0.0 |
And LoanBuyDownFeeAmortizationTransactionCreatedBusinessEvent is created on "31 March 2024"
When Loan Pay-off is made on "1 April 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
@@ -1548,7 +1549,7 @@ Feature:Feature: Buy Down Fees
| 01 January 2024 | 50.0 | 35.0 | 0.0 | 15.0 | 0.0 |
And LoanBuyDownFeeAmortizationTransactionCreatedBusinessEvent is created on "31 March 2024"
When Loan Pay-off is made on "1 April 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
@@ -1597,6 +1598,7 @@ Feature:Feature: Buy Down Fees
And LoanBuyDownFeeTransactionCreatedBusinessEvent is created on "02 January 2024"
# --- make write-off --- #
And Admin does write-off the loan on "02 January 2024"
Then Loan has 0 outstanding amount
Then Loan status will be "CLOSED_WRITTEN_OFF"
Then Loan Repayment schedule has 3 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 |
@@ -2179,6 +2181,9 @@ Feature:Feature: Buy Down Fees
| 01 January 2024 | 50.0 | 34.07 | 15.93 | 0.0 | 0.0 |
And LoanBuyDownFeeAmortizationTransactionCreatedBusinessEvent is created on "02 March 2024"
When Loan Pay-off is made on "03 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3887
Scenario: Verify Buy Down Fee reversal - UC6
When Admin sets the business date to "01 January 2024"
@@ -2459,6 +2464,9 @@ Feature:Feature: Buy Down Fees
| LIABILITY | 145024 | Deferred Capitalized Income | 50.0 | |
And LoanBuyDownFeeAmortizationAdjustmentTransactionCreatedBusinessEvent is created on "16 February 2024"
When Loan Pay-off is made on "17 February 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3888
Scenario: Verify Buy Down Fee reversal on same business date
When Admin sets the business date to "01 January 2024"
@@ -2519,6 +2527,9 @@ Feature:Feature: Buy Down Fees
| EXPENSE | 450280 | Buy Down Expense | | 50.0 |
| LIABILITY | 145024 | Deferred Capitalized Income | 50.0 | |
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3889
Scenario: Verify Buy Down Fee reversal forbidden when adjustment exists
When Admin sets the business date to "01 January 2024"
@@ -2658,6 +2669,9 @@ Feature:Feature: Buy Down Fees
| 11 January 2024 | Accrual | 0.02 | 0.0 | 0.02 | 0.0 | 0.0 | 0.0 | false |
And LoanBuyDownFeeAmortizationAdjustmentTransactionCreatedBusinessEvent is created on "11 January 2024"
When Loan Pay-off is made on "12 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3981
Scenario: Verify loan with Buy Down fees and full payment for non-merchant - UC1
When Admin sets the business date to "01 January 2024"
@@ -2782,6 +2796,8 @@ Feature:Feature: Buy Down Fees
| LIABILITY | 145024 | Deferred Capitalized Income | | 50.0 |
| LIABILITY | 145023 | Suspense/Clearing account | | 50.0 |
| LIABILITY | 145024 | Deferred Capitalized Income | 50.0 | |
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3983
Scenario: Verify loan with Buy Down fees and undo the charge-off transaction for non merchant - amortization in case of loan charge-off event is also reversed - UC3.1
@@ -2880,8 +2896,9 @@ Feature:Feature: Buy Down Fees
And Buy down fee by external-id contains the following data:
| Date | Fee Amount | Amortized Amount | Not Yet Amortized Amount | Adjusted Amount | Charged Off Amount |
| 01 January 2024 | 50.0 | 17.58 | 32.42 | 0.0 | 0.0 |
When Loan Pay-off is made on "1 February 2024"
Then Loan's all installments have obligations met
When Loan Pay-off is made on "01 February 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3984
Scenario: Verify loan with Buy Down fees and undo the charge-off a fraud loan for non-merchant - amortization in case of loan charge-off event is also reversed - UC3.2
@@ -2981,8 +2998,8 @@ Feature:Feature: Buy Down Fees
And Buy down fee by external-id contains the following data:
| Date | Fee Amount | Amortized Amount | Not Yet Amortized Amount | Adjusted Amount | Charged Off Amount |
| 01 January 2024 | 50.0 | 17.58 | 32.42 | 0.0 | 0.0 |
When Loan Pay-off is made on "1 February 2024"
Then Loan's all installments have obligations met
When Loan Pay-off is made on "01 February 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3985
Scenario: Verify loan with Buy Down fees and undo the charge-off transaction with "delinquent" reason for non-merchant - amortization in case of loan charge-off event is also reversed - UC3.3
@@ -3069,7 +3086,7 @@ Feature:Feature: Buy Down Fees
| Date | Fee Amount | Amortized Amount | Not Yet Amortized Amount | Adjusted Amount | Charged Off Amount |
| 01 January 2024 | 50.0 | 13.74 | 36.26 | 0.0 | 0.0 |
When Loan Pay-off is made on "25 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:С3986
Scenario: Verify loan with Buy Down Fee adjustment trn and repayment trns for non-merchant - UC4
@@ -3241,6 +3258,9 @@ Feature:Feature: Buy Down Fees
And Admin adds buy down fee adjustment with "AUTOPAY" payment type to the loan on "01 January 2024" with "25" EUR transaction amount
And Loan Transactions tab has a "Buy Down Fee Adjustment" transaction with date "01 January 2024" which has classification code value "buydown_fee_transaction_classification_value"
When Loan Pay-off is made on "01 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4009
Scenario: Verify Buy Down Fee amortization allocation mappings
When Admin sets the business date to "1 January 2024"
@@ -3291,6 +3311,9 @@ Feature:Feature: Buy Down Fees
| Date | Type | Amount |
| 02 January 2024 | AM | 1.11 |
When Loan Pay-off is made on "03 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4019
Scenario: Verify Buy Down Fee amortization allocation mappings when buy down fee transaction is reversed
When Admin sets the business date to "1 January 2024"
@@ -3387,6 +3410,9 @@ Feature:Feature: Buy Down Fees
| 03 January 2024 | AM | 2.22 |
| 04 January 2024 | AM | 2.23 |
When Loan Pay-off is made on "05 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4022
Scenario: Verify Buy Down Fee amortization allocation mappings when buy down fee adjustment occurs
When Admin sets the business date to "1 January 2024"
@@ -3555,6 +3581,9 @@ Feature:Feature: Buy Down Fees
| 05 January 2024 | AM_ADJ | 0.25 |
| 06 January 2024 | AM | 0.43 |
When Loan Pay-off is made on "07 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4040
Scenario: Verify Buy Down Fee amortization allocation mapping when already amortized amount is greater than should be after buy down fee adjustment
When Admin sets the business date to "1 January 2024"
@@ -3634,6 +3663,9 @@ Feature:Feature: Buy Down Fees
| Date | Fee Amount | Amortized Amount | Not Yet Amortized Amount | Adjusted Amount | Charged Off Amount |
| 01 January 2024 | 1.0 | 0.3 | 0.0 | 0.7 | 0.0 |
When Loan Pay-off is made on "25 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4043
Scenario: Verify Buy Down Fee amortization allocation mapping when after buy down fee adjustment and charge-off
When Admin sets the business date to "1 January 2024"
@@ -3773,6 +3805,9 @@ Feature:Feature: Buy Down Fees
| Date | Fee Amount | Amortized Amount | Not Yet Amortized Amount | Adjusted Amount | Charged Off Amount |
| 01 January 2024 | 1.0 | 0.5 | 0.0 | 0.3 | 0.2 |
When Loan Pay-off is made on "16 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4092
Scenario: Verify GL entries for Buydown Fee Amortization - UC1: Amortization for Buydown fee with NO classification rule
When Admin sets the business date to "01 January 2024"
@@ -3794,6 +3829,9 @@ Feature:Feature: Buy Down Fees
| INCOME | 450281 | Income From Buy Down | | 0.55 |
| LIABILITY | 145024 | Deferred Capitalized Income | 0.55 | |
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4093
Scenario: Verify GL entries for Buydown Fee Amortization - UC2: Amortization for Buydown fee with classification rule: pending_bankruptcy
When Admin sets the business date to "01 January 2024"
@@ -3815,6 +3853,9 @@ Feature:Feature: Buy Down Fees
| INCOME | 404007 | Fee Income | | 0.55 |
| LIABILITY | 145024 | Deferred Capitalized Income | 0.55 | |
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4094
Scenario: Verify GL entries for Buydown Fee Amortization - UC3: Amortization for Buydown fees with NO classification and with classification rule: pending_bankruptcy
When Admin sets the business date to "01 January 2024"
@@ -3848,6 +3889,9 @@ Feature:Feature: Buy Down Fees
| INCOME | 450281 | Income From Buy Down | | 0.55 |
| LIABILITY | 145024 | Deferred Capitalized Income | 0.77 | |
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4116
Scenario: Verify Buy Down Fee journal entries values when backdated new buy down fee with no classification and buy down fee adjustment for existing one with classification occurs on the same day
When Admin sets the business date to "01 January 2024"
@@ -3939,6 +3983,9 @@ Feature:Feature: Buy Down Fees
| LIABILITY | 145024 | Deferred Capitalized Income | 30.0 | |
| INCOME | 404007 | Fee Income | 5.0 | |
When Loan Pay-off is made on "16 April 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4117
Scenario: Verify Buy Down Fee journal entries values when backdated new buy down fee and buy down fee adjustment for existing one occurs on the same day, no classification
When Admin sets the business date to "01 January 2024"
@@ -4028,3 +4075,6 @@ Feature:Feature: Buy Down Fees
| LIABILITY | 145024 | Deferred Capitalized Income | | 5.0 |
| LIABILITY | 145024 | Deferred Capitalized Income | 30.0 | |
| INCOME | 450281 | Income From Buy Down | 5.0 | |
When Loan Pay-off is made on "16 April 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@@ -35,6 +35,9 @@ Feature: Capitalized Income
| Amount | Amortized Amount | Unrecognized Amount | Adjusted Amount | Charged Off Amount |
| 100.0 | 0.0 | 100.0 | 0.0 | 0.0 |
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3637
Scenario: As a user I want to add capitalized income to a progressive loan after disbursement - UC2
When Admin sets the business date to "1 January 2024"
@@ -64,6 +67,9 @@ Feature: Capitalized Income
| ASSET | 112601 | Loans Receivable | 100.0 | |
| LIABILITY | 145024 | Deferred Capitalized Income | | 100.0 |
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3638
Scenario: Verify capitalized income amount with disbursement amount calculation within approved amount for multidisbursal progressive loan - UC3
When Admin sets the business date to "1 January 2024"
@@ -102,6 +108,9 @@ Feature: Capitalized Income
| ASSET | 112601 | Loans Receivable | 200.0 | |
| LIABILITY | 145024 | Deferred Capitalized Income | | 200.0 |
When Loan Pay-off is made on "03 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3639
Scenario: Verify validation of capitalized income amount with disbursement amount within approved amount for progressive loan - UC4
When Admin sets the business date to "1 January 2024"
@@ -115,6 +124,9 @@ Feature: Capitalized Income
When Admin sets the business date to "2 January 2024"
Then Capitalized income with payment type "AUTOPAY" on "02 January 2024" is forbidden with amount "200" while exceed approved amount
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3640
Scenario: Verify validation of capitalized income amount with disbursement amount within approved amount for multidisbursal progressive loan - UC5
When Admin sets the business date to "1 January 2024"
@@ -129,6 +141,9 @@ Feature: Capitalized Income
And Admin successfully disburse the loan on "2 January 2024" with "300" EUR transaction amount
Then Capitalized income with payment type "AUTOPAY" on "2 January 2024" is forbidden with amount "300" while exceed approved amount
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3641
Scenario: Verify validation of capitalized income amount with disbursement amount within approved amount after undo disbursement - UC6
When Admin sets the business date to "1 January 2024"
@@ -179,6 +194,9 @@ Feature: Capitalized Income
| ASSET | 112601 | Loans Receivable | 200.0 | |
| LIABILITY | 145024 | Deferred Capitalized Income | | 200.0 |
When Loan Pay-off is made on "03 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3642
Scenario: Verify capitalized income amount with disbursement amount calculation within approved amount for multidisbursal loan after undo disbursement - UC7
When Admin sets the business date to "1 January 2024"
@@ -247,7 +265,7 @@ Feature: Capitalized Income
| LIABILITY | 145024 | Deferred Capitalized Income | | 300.0 |
When Loan Pay-off is made on "04 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3720
Scenario: Verify capitalized income amount with disbursement amount calculation within approved amount for multidisbursal loan - UC8
@@ -286,7 +304,7 @@ Feature: Capitalized Income
Then Capitalized income with payment type "AUTOPAY" on "02 January 2024" is forbidden with amount "200" while exceed approved amount
When Loan Pay-off is made on "02 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3721
Scenario: Verify capitalized income amount with disbursement amount calculation within approved amount for multidisbursal loan with undo last disbursal - UC9
@@ -367,7 +385,7 @@ Feature: Capitalized Income
Then Capitalized income with payment type "AUTOPAY" on "04 January 2024" is forbidden with amount "200" while exceed approved amount
When Loan Pay-off is made on "04 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3723
Scenario: Verify capitalized income with disbursement amount calculation within approved amount for multidisbursal loan with undo capitalized income - UC10
@@ -445,7 +463,7 @@ Feature: Capitalized Income
Then Capitalized income with payment type "AUTOPAY" on "04 January 2024" is forbidden with amount "300" while exceed approved amount
When Loan Pay-off is made on "04 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3730
Scenario: Verify capitalized income amount with disbursement amount calculation within approved over applied amount with percentage type for multidisbursal loan - UC11
@@ -512,7 +530,7 @@ Feature: Capitalized Income
Then Capitalized income with payment type "AUTOPAY" on "04 January 2024" is forbidden with amount "100" while exceed approved amount
When Loan Pay-off is made on "04 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3764
Scenario: Verify capitalized income with disbursement amount within approved over applied amount with flat type with undo last disbursal for multidisbursal loan - UC12
@@ -578,7 +596,7 @@ Feature: Capitalized Income
Then Capitalized income with payment type "AUTOPAY" on "03 January 2024" is forbidden with amount "300" while exceed approved amount
When Loan Pay-off is made on "03 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3765
Scenario: Verify capitalized income with disbursement amount within approved over applied amount with percentage type with undo disbursal for single disbursal loan - UC13
@@ -640,7 +658,7 @@ Feature: Capitalized Income
Then Capitalized income with payment type "AUTOPAY" on "04 January 2024" is forbidden with amount "100" while exceed approved amount
When Loan Pay-off is made on "04 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3766
Scenario: Verify capitalized income with adjustment amount with disbursement amount within approved over applied amount with flat type for single disbursal loan - UC14
@@ -686,7 +704,7 @@ Feature: Capitalized Income
Then Capitalized income with payment type "AUTOPAY" on "02 January 2024" is forbidden with amount "200" while exceed approved amount
When Loan Pay-off is made on "02 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3776
Scenario: Verify capitalized income amount with disbursement amount calculation within approved over applied amount with percentage type for multidisbursal loan - UC15
@@ -750,7 +768,7 @@ Feature: Capitalized Income
Then Capitalized income with payment type "AUTOPAY" on "04 January 2024" is forbidden with amount "100" while exceed approved amount
When Loan Pay-off is made on "04 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3777
Scenario: Verify capitalized income with disbursement amount within approved over applied amount with flat type with undo last disbursal for multidisbursal loan - UC16
@@ -816,7 +834,7 @@ Feature: Capitalized Income
Then Capitalized income with payment type "AUTOPAY" on "03 January 2024" is forbidden with amount "300" while exceed approved amount
When Loan Pay-off is made on "03 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3778
Scenario: Verify capitalized income with disbursement amount within approved over applied amount with percentage type with undo disbursal for single disbursal loan - UC17
@@ -878,7 +896,7 @@ Feature: Capitalized Income
Then Capitalized income with payment type "AUTOPAY" on "04 January 2024" is forbidden with amount "100" while exceed approved amount
When Loan Pay-off is made on "04 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3779
Scenario: Verify capitalized income with adjustment amount with disbursement amount within approved over applied amount with flat type for single disbursal loan - UC18
@@ -927,7 +945,7 @@ Feature: Capitalized Income
Then Capitalized income with payment type "AUTOPAY" on "02 January 2024" is forbidden with amount "200" while exceed approved amount
When Loan Pay-off is made on "02 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3646
Scenario: As a user I want to add capitalized income to a progressive loan after disbursement and then make a full repayment - amortization in case of loan close event
@@ -958,6 +976,7 @@ Feature: Capitalized Income
| ASSET | 112601 | Loans Receivable | 100.0 | |
| LIABILITY | 145024 | Deferred Capitalized Income | | 100.0 |
When Customer makes "REPAYMENT" transaction with "AUTOPAY" payment type on "2 January 2024" with 1000.17 EUR transaction amount and system-generated Idempotency key
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
Then Loan Repayment schedule has 1 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 | | 900.0 | | | 0.0 | | 0.0 | 0.0 | | | |
@@ -1032,6 +1051,9 @@ Feature: Capitalized Income
| LIABILITY | 145024 | Deferred Capitalized Income | 100.0 | |
And LoanCapitalizedIncomeAmortizationTransactionCreatedBusinessEvent is raised on "02 January 2024"
When Admin makes Credit Balance Refund transaction on "02 January 2024" with 99.83 EUR transaction amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3651
Scenario: As a user I want to add capitalized income to a progressive loan after disbursement and then write off loan - amortization in case of loan close event
When Admin sets the business date to "1 January 2024"
@@ -1265,6 +1287,9 @@ Feature: Capitalized Income
| 50.0 | 50.0 | 0.0 | 0.0 | 0.0 |
And Loan Capitalized Income Amortization Transaction Created Business Event is created on "31 March 2024"
When Loan Pay-off is made on "01 April 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3649
Scenario: Verify capitalized income: daily amortization - Capitalized Income type: fee
When Admin sets the business date to "01 January 2024"
@@ -1445,6 +1470,9 @@ Feature: Capitalized Income
| LIABILITY | 145024 | Deferred Capitalized Income | 0.55 | |
And Loan Capitalized Income Amortization Transaction Created Business Event is created on "31 March 2024"
When Loan Pay-off is made on "01 April 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3661
Scenario: As a user I want to add capitalized income to a progressive loan after disbursement and then charge-off the loan with "delinquent" reason - amortization in case of loan charge-off event
When Admin sets the business date to "1 January 2024"
@@ -1491,6 +1519,9 @@ Feature: Capitalized Income
| LIABILITY | 145024 | Deferred Capitalized Income | 16.67 | |
Then LoanCapitalizedIncomeAmortizationTransactionCreatedBusinessEvent is raised on "26 January 2024"
When Loan Pay-off is made on "26 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3662
Scenario: As a user I want to add capitalized income to a progressive loan after disbursement and then charge-off a fraud loan - amortization in case of loan charge-off event
When Admin sets the business date to "1 January 2024"
@@ -1540,6 +1571,9 @@ Feature: Capitalized Income
| 100.0 | 83.33 | 0.0 | 0.0 | 16.67 |
Then LoanCapitalizedIncomeAmortizationTransactionCreatedBusinessEvent is raised on "26 January 2024"
When Loan Pay-off is made on "26 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3663
Scenario: As a user I want to add capitalized income to a progressive loan after disbursement and then charge-off the loan - amortization in case of loan charge-off event
When Admin sets the business date to "1 January 2024"
@@ -1589,6 +1623,9 @@ Feature: Capitalized Income
| 100.0 | 83.33 | 0.0 | 0.0 | 16.67 |
Then LoanCapitalizedIncomeAmortizationTransactionCreatedBusinessEvent is raised on "26 January 2024"
When Loan Pay-off is made on "26 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3664
Scenario: As a user I want to add capitalized income to a progressive loan after disbursement and then undo the charge-off transaction with "delinquent" reason - amortization in case of loan charge-off event should also be reversed
When Admin sets the business date to "1 January 2024"
@@ -1661,6 +1698,10 @@ Feature: Capitalized Income
| Amount | Amortized Amount | Unrecognized Amount | Adjusted Amount | Charged Off Amount |
| 100.0 | 83.33 | 16.67 | 0.0 | 0.0 |
When Loan Pay-off is made on "26 January 2024"
And Customer makes "AUTOPAY" repayment on "26 January 2024" with 225 EUR transaction amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3673
Scenario: Verify capitalized income: repayment schedule - UC1: Simple loan - full payment
When Admin sets the business date to "01 January 2024"
@@ -1916,7 +1957,7 @@ Feature: Capitalized Income
And Admin sets the business date to "01 April 2024"
And Admin runs inline COB job for Loan
And Customer makes "AUTOPAY" repayment on "01 April 2024" with 50.59 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
Then Loan Repayment schedule has 3 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 | | | |
@@ -2232,7 +2273,7 @@ Feature: Capitalized Income
When Admin sets the business date to "01 March 2024"
And Admin runs inline COB job for Loan
And Loan Pay-off is made on "01 March 2024"
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
And Loan Repayment schedule has 3 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 | | | |
@@ -2628,6 +2669,9 @@ Feature: Capitalized Income
| 01 March 2024 | Charge-off | 101.17 | 100.29 | 0.88 | 0.0 | 0.0 | 0.0 | false | false |
| 01 March 2024 | Capitalized Income Amortization | 16.48 | 0.0 | 16.48 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "01 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3665
Scenario: Verify Capitalized Income Adjustment with partial amortization and allocation strategy - Credit Adj < Bal - UC4
When Admin sets the business date to "01 January 2024"
@@ -2717,6 +2761,7 @@ Feature: Capitalized Income
| 01 March 2024 | Capitalized Income Adjustment | 10.0 | 10.0 | 0.0 | 0.0 | 0.0 | 40.3 | false |
When Admin sets the business date to "01 April 2024"
And Customer makes "REPAYMENT" transaction with "AUTOPAY" payment type on "01 April 2024" with 40.54 EUR transaction amount and system-generated Idempotency key
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
@@ -2866,6 +2911,7 @@ Feature: Capitalized Income
| 50.0 | 17.58 | 17.42 | 15.0 | 0.0 |
When Admin sets the business date to "01 April 2024"
And Customer makes "REPAYMENT" transaction with "AUTOPAY" payment type on "01 April 2024" with 35.52 EUR transaction amount and system-generated Idempotency key
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
@@ -2907,7 +2953,6 @@ Feature: Capitalized Income
| Type | Account code | Account name | Debit | Credit |
| ASSET | 112601 | Loans Receivable | | 5.0 |
| LIABILITY | 145024 | Deferred Capitalized Income | 5.0 | |
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
@TestRailId:C3702
Scenario: Verify Capitalized Income adjustment reverse replay with backdated repayment transaction
@@ -3186,6 +3231,9 @@ Feature: Capitalized Income
| ASSET | 112603 | Interest/Fee Receivable | | 0.87 |
| LIABILITY | 145024 | Deferred Capitalized Income | 50.0 | |
When Loan Pay-off is made on "01 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3703
Scenario: Verify Capitalized Income adjustment reverse replay with backdated charge
When Admin sets the business date to "01 January 2024"
@@ -3468,6 +3516,9 @@ Feature: Capitalized Income
| Amount | Amortized Amount | Unrecognized Amount | Adjusted Amount | Charged Off Amount |
| 51.0 | 0.0 | 0.0 | 51.0 | 0.0 |
When Loan Pay-off is made on "01 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3712
Scenario: Verify Capitalized Income Adjustment validation - Total adjustment amount cannot exceed original transaction amount
When Admin sets the business date to "01 January 2024"
@@ -3483,6 +3534,9 @@ Feature: Capitalized Income
# Try to adjust more than original capitalized income amount (50 EUR) - should fail
And Admin adds invalid capitalized income adjustment with "AUTOPAY" payment type to the loan on "01 February 2024" with "60" EUR transaction amount
When Loan Pay-off is made on "01 February 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3713
Scenario: Verify Capitalized Income Adjustment validation - Adjustment transaction date cannot be earlier than original transaction date
When Admin sets the business date to "01 January 2024"
@@ -3498,6 +3552,9 @@ Feature: Capitalized Income
# Try to adjust with date earlier than original transaction (31 December 2023) - should fail
And Admin adds invalid capitalized income adjustment with "AUTOPAY" payment type to the loan on "31 December 2024" with "60" EUR transaction amount
When Loan Pay-off is made on "01 February 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3714
Scenario: Verify Capitalized Income Adjustment validation - Multiple adjustments cannot exceed original amount
When Admin sets the business date to "01 January 2024"
@@ -3513,7 +3570,10 @@ Feature: Capitalized Income
And Admin adds capitalized income adjustment with "AUTOPAY" payment type to the loan on "01 February 2024" with "30" EUR transaction amount
When Admin sets the business date to "01 March 2024"
# Try to add another adjustment that would exceed total
And Admin adds invalid capitalized income adjustment with "AUTOPAY" payment type to the loan on "01 Marcj 2024" with "25" EUR transaction amount
And Admin adds invalid capitalized income adjustment with "AUTOPAY" payment type to the loan on "01 March 2024" with "25" EUR transaction amount
When Loan Pay-off is made on "01 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3715
Scenario: Verify Capitalized Income Adjustment - Balance cannot go negative, set to zero instead
@@ -3553,6 +3613,7 @@ Feature: Capitalized Income
When Customer makes "REPAYMENT" transaction with "AUTOPAY" payment type on "01 March 2024" with 50.89 EUR transaction amount and system-generated Idempotency key
When Admin sets the business date to "02 March 2024"
And Admin adds capitalized income adjustment with "AUTOPAY" payment type to the loan on "02 March 2024" with "50" EUR transaction amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
Then Loan Repayment schedule has 3 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 | | | |
@@ -3598,6 +3659,9 @@ Feature: Capitalized Income
And Admin adds capitalized income adjustment with "AUTOPAY" payment type to the loan on "01 February 2024" with "30" EUR transaction amount
Then Capitalized income adjustment with payment type "AUTOPAY" on "01 April 2024" is forbidden with amount "10" due to future date
When Loan Pay-off is made on "01 February 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3717
Scenario: Verify Capitalized Income validation while run COB at first day of loan
When Admin sets the business date to "01 January 2024"
@@ -3631,6 +3695,9 @@ Feature: Capitalized Income
| 01 January 2024 | Capitalized Income | 50.0 | 50.0 | 0.0 | 0.0 | 0.0 | 150.0 | false | false |
| 01 January 2024 | Capitalized Income Amortization | 0.55 | 0.0 | 0.55 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3718
Scenario: Verify Capitalized Income Adjustment validation while run COB at first day of loan
When Admin sets the business date to "01 January 2024"
@@ -3670,6 +3737,9 @@ Feature: Capitalized Income
| Amount | Amortized Amount | Unrecognized Amount | Adjusted Amount | Charged Off Amount |
| 50.0 | 0.11 | 9.89 | 40.0 | 0.0 |
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3704
Scenario: Verify Capitalized Income adjustment reverse - UC1
When Admin sets the business date to "01 January 2024"
@@ -3960,6 +4030,9 @@ Feature: Capitalized Income
| Amount | Amortized Amount | Unrecognized Amount | Adjusted Amount | Charged Off Amount |
| 50.0 | 34.07 | 15.93 | 0.0 | 0.0 |
When Loan Pay-off is made on "03 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3705
Scenario: Verify Capitalized Income adjustment reverse - UC2
When Admin sets the business date to "01 January 2024"
@@ -4042,6 +4115,9 @@ Feature: Capitalized Income
| ASSET | 112601 | Loans Receivable | 40.0 | |
| LIABILITY | 145024 | Deferred Capitalized Income | | 40.0 |
When Loan Pay-off is made on "12 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3706
Scenario: Verify Capitalized Income adjustment reverse - UC3
When Admin sets the business date to "01 January 2024"
@@ -4128,6 +4204,9 @@ Feature: Capitalized Income
| ASSET | 112603 | Interest/Fee Receivable | 0.25 | |
| LIABILITY | 145024 | Deferred Capitalized Income | | 55.0 |
When Loan Pay-off is made on "12 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3756
Scenario: Verify Capitalised Income Adjustment reversed on same biz date when added - UC4
When Admin sets the business date to "01 January 2024"
@@ -4198,7 +4277,7 @@ Feature: Capitalized Income
| 04 January 2024 | Capitalized Income Amortization | 1.1 | 0.0 | 1.1 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "05 January 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3708
Scenario: Verify capitalized income reversed after repayment - UC1
@@ -4530,6 +4609,9 @@ Feature: Capitalized Income
Then LoanCapitalizedIncomeAmortizationAdjustmentTransactionCreatedBusinessEvent is raised on "14 February 2024"
Then Customer is forbidden to undo "1"th "Capitalized Income" transaction made on "01 January 2024" due to transaction type is non-reversal
When Loan Pay-off is made on "16 February 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3737
Scenario: Verify overpayment amount when capitalized income transactions are reversed and replayed - basic flow
When Admin sets the business date to "1 January 2024"
@@ -4568,6 +4650,9 @@ Feature: Capitalized Income
Then Loan status will be "OVERPAID"
Then Loan has 299.25 overpaid amount
When Admin makes Credit Balance Refund transaction on "5 January 2024" with 299.25 EUR transaction amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3739
Scenario: Verify multiple capitalized income transactions reversal with overpayment - selective middle transaction reversal
When Admin sets the business date to "1 January 2024"
@@ -4613,6 +4698,9 @@ Feature: Capitalized Income
Then Loan status will be "OVERPAID"
Then Loan has 197.18 overpaid amount
When Admin makes Credit Balance Refund transaction on "15 January 2024" with 197.18 EUR transaction amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3740
Scenario: Verify capitalized income reversal with partial repayment when loan transitions from active to overpaid state
When Admin sets the business date to "1 January 2024"
@@ -4642,6 +4730,9 @@ Feature: Capitalized Income
And Loan has 0.0 outstanding amount
And Loan has 199.25 overpaid amount
When Admin makes Credit Balance Refund transaction on "5 January 2024" with 199.25 EUR transaction amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3741
Scenario: Verify backdated disbursement with capitalized income and overpayment reverse-replay
When Admin sets the business date to "1 January 2024"
@@ -4677,6 +4768,9 @@ Feature: Capitalized Income
| 10 January 2024 | Repayment | 750.0 | 748.87 | 1.13 | 0.0 | 0.0 | 251.13 | false | true |
And Loan has 255.09 outstanding amount
When Loan Pay-off is made on "10 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3742
Scenario: Verify capitalized income amortization reversal when multiple payments create complex overpayment scenario
When Admin sets the business date to "1 January 2024"
@@ -4722,6 +4816,9 @@ Feature: Capitalized Income
And Loan has 0.0 outstanding amount
And Loan has 398.53 overpaid amount
When Admin makes Credit Balance Refund transaction on "08 January 2024" with 398.53 EUR transaction amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3743
Scenario: Verify Capitalized income and Caplitalized income adjustment - Accounting and repayment schedule handling in case of loan is overpaid (Capitalized Income Scenarios - UC9)
When Admin sets the business date to "1 January 2024"
@@ -5390,6 +5487,9 @@ Feature: Capitalized Income
| 15 April 2024 | Capitalized Income Adjustment | 15.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | false | false |
| 15 April 2024 | Capitalized Income Amortization Adjustment | 15.0 | 0.0 | 15.0 | 0.0 | 0.0 | 0.0 | false | false |
When Admin makes Credit Balance Refund transaction on "15 April 2024" with 15 EUR transaction amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@Skip @TestRailId:C3744
Scenario: Verify Capitalized income and Caplitalized income adjustment - Accounting and repayment schedule handling in case of loan is overpaid (Capitalized Income Scenarios - UC10)
When Admin sets the business date to "1 January 2024"
@@ -5850,6 +5950,9 @@ Feature: Capitalized Income
| 15 April 2024 | Capitalized Income Adjustment | 15.0 | 9.71 | 0.29 | 0.0 | 0.0 | 0.0 | false | false |
| 15 April 2024 | Capitalized Income Amortization Adjustment | 15.0 | 0.0 | 15.0 | 0.0 | 0.0 | 0.0 | false | false |
When Admin makes Credit Balance Refund transaction on "15 April 2024" with 5 EUR transaction amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3745
Scenario: Verify Capitalized income and Caplitalized income adjustment - Accounting and repayment schedule handling in case of loan is overpaid (Capitalized Income Scenarios - UC11)
When Admin sets the business date to "1 January 2024"
@@ -6420,6 +6523,9 @@ Feature: Capitalized Income
| 15 March 2024 | Credit Balance Refund | 0.16 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | false | false |
| 16 March 2024 | Capitalized Income | 50.0 | 50.0 | 0.0 | 0.0 | 0.0 | 50.0 | false | false |
When Loan Pay-off is made on "16 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3746
Scenario: Verify Capitalized income and Caplitalized income adjustment - Accounting and repayment schedule handling in case of loan is overpaid (Capitalized Income Scenarios - UC12)
When Admin sets the business date to "1 January 2024"
@@ -6815,6 +6921,9 @@ Feature: Capitalized Income
| 15 March 2024 | Capitalized Income Amortization | 9.34 | 0.0 | 9.34 | 0.0 | 0.0 | 0.0 | false | false |
| 16 March 2024 | Capitalized Income | 50.0 | 50.0 | 0.0 | 0.0 | 0.0 | 49.84 | false | false |
When Loan Pay-off is made on "16 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3747
Scenario: Verify Capitalized Income Amortization validation while run COB a month after Capitalized Income trn - UC1
When Admin sets the business date to "01 January 2024"
@@ -6849,7 +6958,7 @@ Feature: Capitalized Income
| 31 January 2024 | Capitalized Income Amortization | 17.03 | 0.0 | 17.03 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "01 February 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3748
Scenario: Verify Capitalized Income Amortization while run COB a month after Capitalized Income with Adjustment trns - UC2
@@ -6888,7 +6997,7 @@ Feature: Capitalized Income
| 31 January 2024 | Capitalized Income Amortization | 3.41 | 0.0 | 3.41 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "01 February 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3749
Scenario: Verify backdated Capitalized Income Amortization while add Capitalised Income trn with a month earlier date - UC3
@@ -6939,7 +7048,7 @@ Feature: Capitalized Income
| 01 February 2024 | Capitalized Income Amortization | 17.58 | 0.0 | 17.58 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "02 February 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3750
Scenario: Verify backdated Capitalized Income Amortization while add Capitalised Income and Adjustment trns with earlier date - UC4
@@ -6992,7 +7101,7 @@ Feature: Capitalized Income
| 01 February 2024 | Capitalized Income Amortization | 3.44 | 0.0 | 3.44 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "02 February 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3751
Scenario: Verify Capitalized Income Amortization while add additional Capitalized Income trn with earlier date - UC5
@@ -7050,7 +7159,7 @@ Feature: Capitalized Income
| 01 February 2024 | Capitalized Income Amortization | 17.77 | 0.0 | 17.77 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "02 February 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3752
Scenario: Verify Capitalized Income Amortization while add additional Capitalized Income trn with earlier date after Adjustment trn - UC6
@@ -7113,7 +7222,7 @@ Feature: Capitalized Income
| 01 February 2024 | Capitalized Income Amortization | 17.33 | 0.0 | 17.33 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "02 February 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3753
Scenario: Verify Capitalized Income Amortization while add additional Capitalized Income with Adjustment trns with earlier date after Adjustment trn - UC7
@@ -7178,7 +7287,7 @@ Feature: Capitalized Income
| 01 February 2024 | Capitalized Income Amortization | 3.55 | 0.0 | 3.55 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "02 February 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3754
Scenario: Verify Capitalized Income Amortization while run COB a month after Capitalized Income with Adjustment trns for multidisbursl loan - UC8
@@ -7217,7 +7326,7 @@ Feature: Capitalized Income
| 31 January 2024 | Capitalized Income Amortization | 3.41 | 0.0 | 3.41 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "01 February 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3755
Scenario: Verify Capitalized Income Amortization while add additional Capitalized Income trn with earlier date for multidisbursl loan - UC9
@@ -7275,7 +7384,7 @@ Feature: Capitalized Income
| 01 February 2024 | Capitalized Income Amortization | 17.77 | 0.0 | 17.77 | 0.0 | 0.0 | 0.0 | false | false |
When Loan Pay-off is made on "02 February 2024"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3735
Scenario: Verify Capitalized Income business events
@@ -7303,6 +7412,9 @@ Feature: Capitalized Income
And Admin sets the business date to "05 January 2024"
And Admin runs inline COB job for Loan
When Loan Pay-off is made on "05 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3758
Scenario: Verify validation of capitalized income amount with disbursement amount not exceed approved over applied amount for multidisbursal progressive loan - failed scenario
When Admin sets the business date to "1 January 2024"
@@ -7317,6 +7429,9 @@ Feature: Capitalized Income
And Admin successfully disburse the loan on "2 January 2024" with "300" EUR transaction amount
Then Capitalized income with payment type "AUTOPAY" on "2 January 2024" is forbidden with amount "300" while exceed approved amount
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3759
Scenario: Verify validation of capitalized income amount with disbursement amount not exceed approved over applied amount for multidisbursal progressive loan - successful scenario
When Admin sets the business date to "1 January 2024"
@@ -7331,6 +7446,9 @@ Feature: Capitalized Income
And Admin successfully disburse the loan on "2 January 2024" with "300" EUR transaction amount
And Admin adds capitalized income with "AUTOPAY" payment type to the loan on "02 January 2024" with "200" EUR transaction amount
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3782
Scenario: Verify that Capitalized Income Amortization Adjustment is created when a Capitalized Income Adjustment overpays the loan
When Admin sets the business date to "1 January 2024"
@@ -7435,6 +7553,9 @@ Feature: Capitalized Income
| INCOME | 404000 | Interest Income | 5.26 | |
| LIABILITY | 145024 | Deferred Capitalized Income | | 5.26 |
When Admin makes Credit Balance Refund transaction on "03 January 2024" with 96.33 EUR transaction amount
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3899
Scenario: Verify available disbursement amount should consider calculation with capitalized income
When Admin sets the business date to "1 January 2024"
@@ -7456,6 +7577,9 @@ Feature: Capitalized Income
# Available amount = 1000 - 800 - 200 - 0 = 0
Then Loan's available disbursement amount is "0.0"
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3913
Scenario: Verify available disbursement amount calculation with multiple capitalized income transactions
When Admin sets the business date to "1 January 2024"
@@ -7484,6 +7608,9 @@ Feature: Capitalized Income
# Available amount = 2000 - 1400 - 600 - 0 = 0
Then Loan's available disbursement amount is "0.0"
When Loan Pay-off is made on "03 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3914
Scenario: Verify available disbursement amount calculation after capitalized income adjustment
When Admin sets the business date to "1 January 2024"
@@ -7508,6 +7635,9 @@ Feature: Capitalized Income
# Available amount = 1000 - 850 - 150 - 0 = 0
Then Loan's available disbursement amount is "0.0"
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3915
Scenario: Verify available disbursement amount calculation with over applied amount configuration
When Admin sets the business date to "1 January 2024"
@@ -7530,6 +7660,9 @@ Feature: Capitalized Income
# Available amount = 1200 - 900 - 300 - 0 = 0
Then Loan's available disbursement amount is "0.0"
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4005
Scenario: Verify capitalized income transaction creation with classification field set
When Admin sets the business date to "1 January 2024"
@@ -7567,6 +7700,9 @@ Feature: Capitalized Income
And Admin adds capitalized income adjustment with "AUTOPAY" payment type to the loan on "02 January 2024" with "50" EUR transaction amount
And Loan Transactions tab has a "Capitalized Income Adjustment" transaction with date "02 January 2024" which has classification code value "capitalized_income_transaction_classification_value"
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4008
Scenario: Verify Capitalized income amortization allocation mappings
When Admin sets the business date to "1 January 2024"
@@ -7618,6 +7754,9 @@ Feature: Capitalized Income
| Date | Type | Amount |
| 02 January 2024 | AM | 1.11 |
When Loan Pay-off is made on "03 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4020
Scenario: Verify Capitalized income amortization allocation mappings when capitalized income transaction is reversed
When Admin sets the business date to "1 January 2024"
@@ -7715,6 +7854,9 @@ Feature: Capitalized Income
| 03 January 2024 | AM | 2.22 |
| 04 January 2024 | AM | 2.23 |
When Loan Pay-off is made on "05 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4021
Scenario: Verify Capitalized income amortization allocation mappings when capitalized income adjustment occurs
When Admin sets the business date to "1 January 2024"
@@ -7884,6 +8026,9 @@ Feature: Capitalized Income
| 05 January 2024 | AM_ADJ | 0.25 |
| 06 January 2024 | AM | 0.43 |
When Loan Pay-off is made on "05 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4041
Scenario: Verify Capitalized Income amortization allocation mapping when already amortized amount is greater than should be after capitalized income adjustment
When Admin sets the business date to "1 January 2024"
@@ -7963,6 +8108,9 @@ Feature: Capitalized Income
| Amount | Amortized Amount | Unrecognized Amount | Adjusted Amount | Charged Off Amount |
| 1.0 | 0.3 | 0.0 | 0.7 | 0.0 |
When Loan Pay-off is made on "25 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4042
Scenario: Verify Capitalized Income amortization allocation mapping when after capitalized income adjustment and charge-off
When Admin sets the business date to "1 January 2024"
@@ -8102,6 +8250,9 @@ Feature: Capitalized Income
| Amount | Amortized Amount | Unrecognized Amount | Adjusted Amount | Charged Off Amount |
| 1.0 | 0.5 | 0.0 | 0.3 | 0.2 |
When Loan Pay-off is made on "16 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4095
Scenario: Verify GL entries for Capitalized Income Amortization - UC1: Amortization for Capitalized Income with NO classification rule
When Admin sets the business date to "01 January 2024"
@@ -8123,6 +8274,9 @@ Feature: Capitalized Income
| INCOME | 404000 | Interest Income | | 0.55 |
| LIABILITY | 145024 | Deferred Capitalized Income | 0.55 | |
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4096
Scenario: Verify GL entries for Capitalized Income Amortization - UC2: Amortization for Capitalized Income with classification rule: pending_bankruptcy
When Admin sets the business date to "01 January 2024"
@@ -8144,6 +8298,9 @@ Feature: Capitalized Income
| INCOME | 744008 | Recoveries | | 0.55 |
| LIABILITY | 145024 | Deferred Capitalized Income | 0.55 | |
When Loan Pay-off is made on "02 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4097
Scenario: Verify GL entries for Capitalized Income Amortization - UC3: Amortization for Capitalized Incomes with NO classification and with classification rule: pending_bankruptcy
When Admin sets the business date to "01 January 2024"
@@ -8177,6 +8334,9 @@ Feature: Capitalized Income
| INCOME | 404000 | Interest Income | | 0.55 |
| LIABILITY | 145024 | Deferred Capitalized Income | 0.77 | |
When Loan Pay-off is made on "03 January 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4114
Scenario: Verify Capitalized Income journal entries values when backdated new capitalized income with no classification and capitalized income adjustment for existing one with classification occurs on the same day
When Admin sets the business date to "01 January 2024"
@@ -8266,6 +8426,9 @@ Feature: Capitalized Income
| LIABILITY | 145024 | Deferred Capitalized Income | 30.0 | |
| INCOME | 744008 | Recoveries | 5.0 | |
When Loan Pay-off is made on "16 April 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4115
Scenario: Verify Capitalized Income journal entries values when backdated new capitalized income and capitalized income adjustment for existing one occurs on the same day, no classification
When Admin sets the business date to "01 January 2024"
@@ -8353,3 +8516,6 @@ Feature: Capitalized Income
| LIABILITY | 145024 | Deferred Capitalized Income | | 5.0 |
| LIABILITY | 145024 | Deferred Capitalized Income | 30.0 | |
| INCOME | 404000 | Interest Income | 5.0 | |
When Loan Pay-off is made on "16 April 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
File diff suppressed because it is too large Load Diff
@@ -1,6 +1,7 @@
@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
@@ -47,6 +48,10 @@ Feature: LoanReAgingPreview
| 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"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4099
Scenario: Verify Loan re-aging preview with chargeback
When Admin sets the business date to "01 January 2024"
When Admin creates a client with random data
@@ -108,6 +113,10 @@ Feature: LoanReAgingPreview
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 1125.0 | 0.0 | 0.0 | 0.0 | 1125.0 | 250.0 | 0.0 | 0.0 | 875.0 |
When Loan Pay-off is made on "02 February 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4100
Scenario: Verify Loan re-aging preview with charge N+1 installment after maturity date
When Admin sets the business date to "01 January 2025"
When Admin creates a client with random data
@@ -155,6 +164,10 @@ Feature: LoanReAgingPreview
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 1000.0 | 0.0 | 0.0 | 10.0 | 1010.0 | 0.0 | 0.0 | 0.0 | 1010.0 |
When Loan Pay-off is made on "03 May 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4101
Scenario: Verify Loan re-aging preview with backdated repayment, charge and N+1 installment after maturity date
When Admin sets the business date to "01 January 2025"
When Admin creates a client with random data
@@ -203,6 +216,10 @@ Feature: LoanReAgingPreview
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 1000.0 | 0.0 | 0.0 | 10.0 | 1010.0 | 250.0 | 0.0 | 250.0 | 760.0 |
When Loan Pay-off is made on "03 May 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4102
Scenario: Verify Loan re-aging preview with downpayment, payoff and charge - N+1 installment after maturity date
When Admin sets the business date to "01 January 2025"
When Admin creates a client with random data
@@ -252,6 +269,10 @@ Feature: LoanReAgingPreview
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 1000.0 | 0.0 | 0.0 | 10.0 | 1010.0 | 1000.0 | 0.0 | 750.0 | 10.0 |
When Loan Pay-off is made on "20 March 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4103
Scenario: Verify that Loan re-aging preview with repayment, chargeback and charge - N+1 installment after maturity date
When Admin sets the business date to "01 January 2025"
When Admin creates a client with random data
@@ -301,6 +322,10 @@ Feature: LoanReAgingPreview
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 1125.0 | 0.0 | 0.0 | 10.0 | 1135.0 | 250.0 | 0.0 | 250.0 | 885.0 |
When Loan Pay-off is made on "03 May 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4104
Scenario: Verify that Loan re-aging preview with repayment, charge and charge adjustment - N+1 installment after maturity date
When Admin sets the business date to "01 January 2025"
When Admin creates a client with random data
@@ -351,6 +376,10 @@ Feature: LoanReAgingPreview
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 1000.0 | 0.0 | 0.0 | 20.0 | 1020.0 | 270.0 | 0.0 | 270.0 | 750.0 |
When Loan Pay-off is made on "04 May 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4105
Scenario: Verify that Loan re-aging transaction with MIR and charge - N+1 installment after maturity date
When Admin sets the business date to "01 January 2025"
When Admin creates a client with random data
@@ -399,6 +428,10 @@ Feature: LoanReAgingPreview
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 1000.0 | 0.0 | 0.0 | 20.0 | 1020.0 | 100.0 | 0.0 | 100.0 | 920.0 |
When Loan Pay-off is made on "03 May 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4106
Scenario: Verify that Loan re-aging preview with 2nd disbursement and charge - N+1 installment after maturity date
When Admin sets the business date to "01 January 2025"
When Admin creates a client with random data
@@ -451,4 +484,669 @@ Feature: LoanReAgingPreview
| 6 | 30 | 01 May 2025 | | 0.0 | 0.0 | 0.0 | 0.0 | 20.0 | 20.0 | 0.0 | 0.0 | 0.0 | 20.0 |
And Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 600.0 | 0.0 | 0.0 | 20.0 | 620.0 | 0.0 | 0.0 | 0.0 | 620.0 |
| 600.0 | 0.0 | 0.0 | 20.0 | 620.0 | 0.0 | 0.0 | 0.0 | 620.0 |
When Loan Pay-off is made on "01 May 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4209 @AdvancedPaymentAllocation
Scenario: Verify Re-aging preview on interest bearing loan - Interest calculation: Default Behavior - Interest Split scenario - UC1
When Admin sets the business date to "01 January 2024"
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_ADV_CUSTOM_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL | 01 January 2024 | 100 | 7 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 6 | MONTHS | 1 | MONTHS | 6 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
And Admin successfully approves the loan on "01 January 2024" with "100" amount and expected disbursement date on "01 January 2024"
When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
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 | | 83.57 | 16.43 | 0.58 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 2 | 29 | 01 March 2024 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 0.0 | 0.0 | 0.0 | 102.05 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
When Admin sets the business date to "01 February 2024"
And Customer makes "AUTOPAY" repayment on "01 February 2024" with 17.01 EUR transaction amount
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 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 17.01 | 0.0 | 0.0 | 85.04 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
When Admin sets the business date to "15 March 2024"
When Admin creates a Loan re-aging preview by Loan external ID with the following data:
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
| 1 | MONTHS | 01 April 2024| 6 |
Then Loan Repayment schedule preview has 8 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 | 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 | 31 | 01 April 2024 | | 70.25 | 13.32 | 0.98 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 4 | 30 | 01 May 2024 | | 56.36 | 13.89 | 0.41 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 5 | 31 | 01 June 2024 | | 42.39 | 13.97 | 0.33 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 6 | 30 | 01 July 2024 | | 28.34 | 14.05 | 0.25 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 7 | 31 | 01 August 2024 | | 14.21 | 14.13 | 0.17 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 8 | 31 | 01 September 2024| | 0.0 | 14.21 | 0.08 | 0.0 | 0.0 | 14.29 | 0.0 | 0.0 | 0.0 | 14.29 |
Then Loan Repayment schedule preview has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.8 | 0.0 | 0.0 | 102.8 | 17.01 | 0.0 | 0.0 | 85.79 |
When Loan Pay-off is made on "15 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4210 @AdvancedPaymentAllocation
Scenario: Verify Re-aging preview on interest bearing loan - Interest calculation: Default Behavior - Fees and Interest Split before re-aging - UC2
When Admin sets the business date to "01 January 2024"
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_ADV_CUSTOM_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL | 01 January 2024 | 100 | 7 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 6 | MONTHS | 1 | MONTHS | 6 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
And Admin successfully approves the loan on "01 January 2024" with "100" amount and expected disbursement date on "01 January 2024"
When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
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 | | 83.57 | 16.43 | 0.58 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 2 | 29 | 01 March 2024 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 0.0 | 0.0 | 0.0 | 102.05 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
When Admin sets the business date to "01 February 2024"
And Customer makes "AUTOPAY" repayment on "01 February 2024" with 17.01 EUR transaction amount
When Admin sets the business date to "15 February 2024"
When Admin adds "LOAN_SNOOZE_FEE" due date charge with "15 February 2024" due date and 10 EUR transaction amount
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 | | 67.05 | 16.52 | 0.49 | 10.0 | 0.0 | 27.01 | 0.0 | 0.0 | 0.0 | 27.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 10.0 | 0.0 | 112.05 | 17.01 | 0.0 | 0.0 | 95.04 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
And Loan Charges tab has the following data:
| Name | isPenalty | Payment due at | Due as of | Calculation type | Due | Paid | Waived | Outstanding |
| Snooze fee | false | Specified due date | 15 February 2024 | Flat | 10.0 | 0.0 | 0.0 | 10.0 |
When Admin sets the business date to "15 March 2024"
When Admin creates a Loan re-aging preview by Loan external ID with the following data:
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
| 1 | MONTHS | 01 April 2024| 6 |
Then Loan Repayment schedule preview has 8 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 | 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 | | 83.57 | 0.0 | 0.0 | 10.0 | 0.0 | 10.0 | 0.0 | 0.0 | 0.0 | 10.0 |
| 3 | 31 | 01 April 2024 | | 70.25 | 13.32 | 0.98 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 4 | 30 | 01 May 2024 | | 56.36 | 13.89 | 0.41 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 5 | 31 | 01 June 2024 | | 42.39 | 13.97 | 0.33 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 6 | 30 | 01 July 2024 | | 28.34 | 14.05 | 0.25 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 7 | 31 | 01 August 2024 | | 14.21 | 14.13 | 0.17 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 8 | 31 | 01 September 2024| | 0.0 | 14.21 | 0.08 | 0.0 | 0.0 | 14.29 | 0.0 | 0.0 | 0.0 | 14.29 |
Then Loan Repayment schedule preview has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.8 | 10.0 | 0.0 | 112.8 | 17.01 | 0.0 | 0.0 | 95.79 |
When Loan Pay-off is made on "15 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4211 @AdvancedPaymentAllocation
Scenario: Verify allowing Re-aging preview on interest bearing loan - Interest calculation: Default Behavior - N+1 Scenario - UC4
When Admin sets the business date to "01 January 2024"
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_ADV_CUSTOM_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL | 01 January 2024 | 100 | 7 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 6 | MONTHS | 1 | MONTHS | 6 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
And Admin successfully approves the loan on "01 January 2024" with "100" amount and expected disbursement date on "01 January 2024"
When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
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 | | 83.57 | 16.43 | 0.58 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 2 | 29 | 01 March 2024 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 0.0 | 0.0 | 0.0 | 102.05 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
When Admin sets the business date to "01 February 2024"
And Customer makes "AUTOPAY" repayment on "01 February 2024" with 17.01 EUR transaction amount
When Admin sets the business date to "15 July 2024"
When Admin adds "LOAN_SNOOZE_FEE" due date charge with "15 July 2024" due date and 10 EUR transaction amount
Then Loan Repayment schedule 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 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 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
| 7 | 14 | 15 July 2024 | | 0.0 | 0.0 | 0.0 | 10.0 | 0.0 | 10.0 | 0.0 | 0.0 | 0.0 | 10.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 10.0 | 0.0 | 112.05 | 17.01 | 0.0 | 0.0 | 95.04 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
When Admin sets the business date to "15 March 2024"
When Admin creates a Loan re-aging preview by Loan external ID with the following data:
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
| 1 | MONTHS | 01 April 2024| 6 |
Then Loan Repayment schedule preview has 8 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 | 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 | 31 | 01 April 2024 | | 70.25 | 13.32 | 0.98 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 4 | 30 | 01 May 2024 | | 56.36 | 13.89 | 0.41 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 5 | 31 | 01 June 2024 | | 42.39 | 13.97 | 0.33 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 6 | 30 | 01 July 2024 | | 28.34 | 14.05 | 0.25 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 7 | 31 | 01 August 2024 | | 14.21 | 14.13 | 0.17 | 10.0 | 0.0 | 24.3 | 0.0 | 0.0 | 0.0 | 24.3 |
| 8 | 31 | 01 September 2024| | 0.0 | 14.21 | 0.08 | 0.0 | 0.0 | 14.29 | 0.0 | 0.0 | 0.0 | 14.29 |
Then Loan Repayment schedule preview has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.8 | 10.0 | 0.0 | 112.8 | 17.01 | 0.0 | 0.0 | 95.79 |
When Loan Pay-off is made on "15 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4212 @AdvancedPaymentAllocation
Scenario: Verify Re-aging preview on interest bearing loan - Interest calculation: Default Behavior - Partially paid installment - UC5
When Admin sets the business date to "01 January 2024"
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_ADV_CUSTOM_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL | 01 January 2024 | 100 | 7 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 6 | MONTHS | 1 | MONTHS | 6 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
And Admin successfully approves the loan on "01 January 2024" with "100" amount and expected disbursement date on "01 January 2024"
When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
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 | | 83.57 | 16.43 | 0.58 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 2 | 29 | 01 March 2024 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 0.0 | 0.0 | 0.0 | 102.05 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
When Admin sets the business date to "01 February 2024"
And Customer makes "AUTOPAY" repayment on "01 February 2024" with 25.0 EUR transaction amount
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 | | 67.0 | 16.57 | 0.44 | 0.0 | 0.0 | 17.01 | 7.99 | 7.99 | 0.0 | 9.02 |
| 3 | 31 | 01 April 2024 | | 50.38 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.66 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.85 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.85 | 0.1 | 0.0 | 0.0 | 16.95 | 0.0 | 0.0 | 0.0 | 16.95 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.0 | 0.0 | 0.0 | 102.0 | 25.0 | 7.99 | 0.0 | 77.0 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
| 01 February 2024 | Repayment | 25.0 | 24.42 | 0.58 | 0.0 | 0.0 | 75.58 | false |
When Admin sets the business date to "15 March 2024"
When Admin creates a Loan re-aging preview by Loan external ID with the following data:
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
| 1 | MONTHS | 01 April 2024| 6 |
Then Loan Repayment schedule preview has 8 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 | 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 | 75.58 | 7.99 | 0.0 | 0.0 | 0.0 | 7.99 | 7.99 | 7.99 | 0.0 | 0.0 |
| 3 | 31 | 01 April 2024 | | 63.53 | 12.05 | 0.88 | 0.0 | 0.0 | 12.93 | 0.0 | 0.0 | 0.0 | 12.93 |
| 4 | 30 | 01 May 2024 | | 50.97 | 12.56 | 0.37 | 0.0 | 0.0 | 12.93 | 0.0 | 0.0 | 0.0 | 12.93 |
| 5 | 31 | 01 June 2024 | | 38.34 | 12.63 | 0.3 | 0.0 | 0.0 | 12.93 | 0.0 | 0.0 | 0.0 | 12.93 |
| 6 | 30 | 01 July 2024 | | 25.63 | 12.71 | 0.22 | 0.0 | 0.0 | 12.93 | 0.0 | 0.0 | 0.0 | 12.93 |
| 7 | 31 | 01 August 2024 | | 12.85 | 12.78 | 0.15 | 0.0 | 0.0 | 12.93 | 0.0 | 0.0 | 0.0 | 12.93 |
| 8 | 31 | 01 September 2024| | 0.0 | 12.85 | 0.07 | 0.0 | 0.0 | 12.92 | 0.0 | 0.0 | 0.0 | 12.92 |
Then Loan Repayment schedule preview has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.57 | 0.0 | 0.0 | 102.57 | 25.0 | 7.99 | 0.0 | 77.57 |
When Loan Pay-off is made on "15 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C_4213 @AdvancedPaymentAllocation
Scenario: Verify Re-aging preview on interest bearing loan - Interest calculation: Default Behavior - DownPayment Scenarios - UC7
When Admin sets the business date to "01 January 2024"
When Admin creates a client with random data
When Admin set "LP2_ADV_PYMNT_INTEREST_RECALCULATION_DAILY_EMI_360_30_MULTIDISBURSE_AUTO_DOWNPAYMENT" loan product "DEFAULT" transaction type to "NEXT_INSTALLMENT" future installment allocation rule
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_ADV_PYMNT_INTEREST_RECALCULATION_DAILY_EMI_360_30_MULTIDISBURSE_AUTO_DOWNPAYMENT | 01 January 2024 | 100 | 7 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 6 | MONTHS | 1 | MONTHS | 6 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
And Admin successfully approves the loan on "01 January 2024" with "100" amount and expected disbursement date on "01 January 2024"
When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
Then Loan Repayment schedule 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 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
| 1 | 0 | 01 January 2024 | 01 January 2024 | 75.0 | 25.0 | 0.0 | 0.0 | 0.0 | 25.0 | 25.0 | 0.0 | 0.0 | 0.0 |
| 2 | 31 | 01 February 2024 | | 62.68 | 12.32 | 0.44 | 0.0 | 0.0 | 12.76 | 0.0 | 0.0 | 0.0 | 12.76 |
| 3 | 29 | 01 March 2024 | | 50.29 | 12.39 | 0.37 | 0.0 | 0.0 | 12.76 | 0.0 | 0.0 | 0.0 | 12.76 |
| 4 | 31 | 01 April 2024 | | 37.82 | 12.47 | 0.29 | 0.0 | 0.0 | 12.76 | 0.0 | 0.0 | 0.0 | 12.76 |
| 5 | 30 | 01 May 2024 | | 25.28 | 12.54 | 0.22 | 0.0 | 0.0 | 12.76 | 0.0 | 0.0 | 0.0 | 12.76 |
| 6 | 31 | 01 June 2024 | | 12.67 | 12.61 | 0.15 | 0.0 | 0.0 | 12.76 | 0.0 | 0.0 | 0.0 | 12.76 |
| 7 | 30 | 01 July 2024 | | 0.0 | 12.67 | 0.07 | 0.0 | 0.0 | 12.74 | 0.0 | 0.0 | 0.0 | 12.74 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 1.54 | 0.0 | 0.0 | 101.54 | 25.0 | 0.0 | 0.0 | 76.54 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
| 01 January 2024 | Down Payment | 25.0 | 25.0 | 0.0 | 0.0 | 0.0 | 75.0 | false |
When Admin sets the business date to "01 February 2024"
And Customer makes "AUTOPAY" repayment on "01 February 2024" with 12.76 EUR transaction amount
Then Loan Repayment schedule 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 2024 | | 100.0 | | | 0.0 | | 0.0 | 0.0 | | | |
| 1 | 0 | 01 January 2024 | 01 January 2024 | 75.0 | 25.0 | 0.0 | 0.0 | 0.0 | 25.0 | 25.0 | 0.0 | 0.0 | 0.0 |
| 2 | 31 | 01 February 2024| 01 February 2024 | 62.68 | 12.32 | 0.44 | 0.0 | 0.0 | 12.76 | 12.76 | 0.0 | 0.0 | 0.0 |
| 3 | 29 | 01 March 2024 | | 50.29 | 12.39 | 0.37 | 0.0 | 0.0 | 12.76 | 0.0 | 0.0 | 0.0 | 12.76 |
| 4 | 31 | 01 April 2024 | | 37.82 | 12.47 | 0.29 | 0.0 | 0.0 | 12.76 | 0.0 | 0.0 | 0.0 | 12.76 |
| 5 | 30 | 01 May 2024 | | 25.28 | 12.54 | 0.22 | 0.0 | 0.0 | 12.76 | 0.0 | 0.0 | 0.0 | 12.76 |
| 6 | 31 | 01 June 2024 | | 12.67 | 12.61 | 0.15 | 0.0 | 0.0 | 12.76 | 0.0 | 0.0 | 0.0 | 12.76 |
| 7 | 30 | 01 July 2024 | | 0.0 | 12.67 | 0.07 | 0.0 | 0.0 | 12.74 | 0.0 | 0.0 | 0.0 | 12.74 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 1.54 | 0.0 | 0.0 | 101.54 | 37.76 | 0.0 | 0.0 | 63.78 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
| 01 January 2024 | Down Payment | 25.0 | 25.0 | 0.0 | 0.0 | 0.0 | 75.0 | false |
| 01 February 2024 | Repayment | 12.76 | 12.32 | 0.44 | 0.0 | 0.0 | 62.68 | false |
When Admin sets the business date to "15 March 2024"
When Admin creates a Loan re-aging preview by Loan external ID with the following data:
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
| 1 | MONTHS | 01 April 2024 | 6 |
Then Loan Repayment schedule preview 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 | 0.0 | 0.0 | 0.0 | | | |
| 1 | 0 | 01 January 2024 | 01 January 2024 | 75.0 | 25.0 | 0.0 | 0.0 | 0.0 | 25.0 | 25.0 | 0.0 | 0.0 | 0.0 |
| 2 | 31 | 01 February 2024 | 01 February 2024 | 62.68 | 12.32 | 0.44 | 0.0 | 0.0 | 12.76 | 12.76 | 0.0 | 0.0 | 0.0 |
| 3 | 29 | 01 March 2024 | 15 March 2024 | 62.68 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| 4 | 31 | 01 April 2024 | | 52.69 | 9.99 | 0.74 | 0.0 | 0.0 | 10.73 | 0.0 | 0.0 | 0.0 | 10.73 |
| 5 | 30 | 01 May 2024 | | 42.27 | 10.42 | 0.31 | 0.0 | 0.0 | 10.73 | 0.0 | 0.0 | 0.0 | 10.73 |
| 6 | 31 | 01 June 2024 | | 31.79 | 10.48 | 0.25 | 0.0 | 0.0 | 10.73 | 0.0 | 0.0 | 0.0 | 10.73 |
| 7 | 30 | 01 July 2024 | | 21.25 | 10.54 | 0.19 | 0.0 | 0.0 | 10.73 | 0.0 | 0.0 | 0.0 | 10.73 |
| 8 | 31 | 01 August 2024 | | 10.64 | 10.61 | 0.12 | 0.0 | 0.0 | 10.73 | 0.0 | 0.0 | 0.0 | 10.73 |
| 9 | 31 | 01 September 2024 | | 0.0 | 10.64 | 0.06 | 0.0 | 0.0 | 10.7 | 0.0 | 0.0 | 0.0 | 10.7 |
Then Loan Repayment schedule preview has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.11 | 0.0 | 0.0 | 102.11 | 37.76 | 0.0 | 0.0 | 64.35 |
When Loan Pay-off is made on "15 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4214 @AdvancedPaymentAllocation
Scenario: Verify Re-aging preview on interest bearing loan - Interest calculation: Default Behavior - reversal of Re-aging - UC9
When Admin sets the business date to "01 January 2024"
When Admin creates a client with random data
When Admin set "LP2_ADV_CUSTOM_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL" loan product "DEFAULT" transaction type to "NEXT_INSTALLMENT" future installment allocation rule
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_ADV_CUSTOM_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL | 01 January 2024 | 100 | 7 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 6 | MONTHS | 1 | MONTHS | 6 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
And Admin successfully approves the loan on "01 January 2024" with "100" amount and expected disbursement date on "01 January 2024"
When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
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| | 83.57 | 16.43 | 0.58 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 2 | 29 | 01 March 2024 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 0.0 | 0.0 | 0.0 | 102.05 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
When Admin sets the business date to "01 February 2024"
And Customer makes "AUTOPAY" repayment on "01 February 2024" with 17.01 EUR transaction amount
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 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 17.01 | 0.0 | 0.0 | 85.04 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
When Admin sets the business date to "15 March 2024"
When Admin creates a Loan re-aging transaction with the following data:
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
| 1 | MONTHS | 01 April 2024 | 6 |
Then Loan Repayment schedule has 8 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 | 31 | 01 April 2024 | | 70.25 | 13.32 | 0.98 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 4 | 30 | 01 May 2024 | | 56.36 | 13.89 | 0.41 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 5 | 31 | 01 June 2024 | | 42.39 | 13.97 | 0.33 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 6 | 30 | 01 July 2024 | | 28.34 | 14.05 | 0.25 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 7 | 31 | 01 August 2024 | | 14.21 | 14.13 | 0.17 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 8 | 31 | 01 September 2024| | 0.0 | 14.21 | 0.08 | 0.0 | 0.0 | 14.29 | 0.0 | 0.0 | 0.0 | 14.29 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.8 | 0.0 | 0.0 | 102.8 | 17.01 | 0.0 | 0.0 | 85.79 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
| 15 March 2024 | Re-age | 84.28 | 83.57 | 0.71 | 0.0 | 0.0 | 0.0 | false |
When Admin sets the business date to "01 April 2024"
When Admin successfully undo Loan re-aging transaction
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 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.53 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.81 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 17.0 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 17.0 | 0.1 | 0.0 | 0.0 | 17.1 | 0.0 | 0.0 | 0.0 | 17.1 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.15 | 0.0 | 0.0 | 102.15 | 17.01 | 0.0 | 0.0 | 85.14 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
| 15 March 2024 | Re-age | 84.28 | 83.57 | 0.71 | 0.0 | 0.0 | 0.0 | true |
When Admin creates a Loan re-aging preview by Loan external ID with the following data:
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
| 1 | MONTHS | 01 April 2024 | 6 |
Then Loan Repayment schedule preview has 8 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 | 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 | 01 April 2024 | 83.57 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| 3 | 31 | 01 April 2024 | | 70.25 | 13.32 | 0.98 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 4 | 30 | 01 May 2024 | | 56.36 | 13.89 | 0.41 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 5 | 31 | 01 June 2024 | | 42.39 | 13.97 | 0.33 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 6 | 30 | 01 July 2024 | | 28.34 | 14.05 | 0.25 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 7 | 31 | 01 August 2024 | | 14.21 | 14.13 | 0.17 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 8 | 31 | 01 September 2024| | 0.0 | 14.21 | 0.08 | 0.0 | 0.0 | 14.29 | 0.0 | 0.0 | 0.0 | 14.29 |
Then Loan Repayment schedule preview has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.8 | 0.0 | 0.0 | 102.8 | 17.01 | 0.0 | 0.0 | 85.79 |
When Loan Pay-off is made on "15 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4215 @AdvancedPaymentAllocation
Scenario: Verify that Re-aging preview is forbidden on charged-off loan, interest bearing loan, Interest calculation: Default Behavior, Charge-off scenario (zero interest) - UC10
When Admin sets the business date to "01 January 2024"
When Admin creates a client with random data
When Admin set "LP2_ADV_CUSTOM_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL" loan product "DEFAULT" transaction type to "NEXT_INSTALLMENT" future installment allocation rule
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_ADV_PYMNT_INTEREST_DAILY_INTEREST_RECALCULATION_ZERO_INTEREST_CHARGE_OFF | 01 January 2024 | 100 | 7 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 6 | MONTHS | 1 | MONTHS | 6 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
And Admin successfully approves the loan on "01 January 2024" with "100" amount and expected disbursement date on "01 January 2024"
When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
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| | 83.57 | 16.43 | 0.58 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 2 | 29 | 01 March 2024 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 0.0 | 0.0 | 0.0 | 102.05 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
When Admin sets the business date to "01 February 2024"
And Customer makes "AUTOPAY" repayment on "01 February 2024" with 17.01 EUR transaction amount
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 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 17.01 | 0.0 | 0.0 | 85.04 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
When Admin sets the business date to "01 March 2024"
And Admin does charge-off the loan on "01 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 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.04 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.03 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.02 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.02 | 0.0 | 0.0 | 0.0 | 16.02 | 0.0 | 0.0 | 0.0 | 16.02 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 1.07 | 0.0 | 0.0 | 101.07 | 17.01 | 0.0 | 0.0 | 84.06 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
| 01 March 2024 | Accrual | 1.07 | 0.0 | 1.07 | 0.0 | 0.0 | 0.0 | false |
| 01 March 2024 | Charge-off | 84.06 | 83.57 | 0.49 | 0.0 | 0.0 | 0.0 | false |
When Admin sets the business date to "15 March 2024"
Then Admin fails to create a Loan re-aging preview with the following data because loan was charged-off:
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
| 1 | MONTHS | 01 April 2024 | 6 |
When Loan Pay-off is made on "01 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4216 @AdvancedPaymentAllocation
Scenario: Verify that Re-aging preview is forbidden on contract terminated loan, interest bearing loan, Interest calculation: Default Behavior - UC10.2
When Admin sets the business date to "01 January 2024"
When Admin creates a client with random data
When Admin set "LP2_ADV_CUSTOM_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL" loan product "DEFAULT" transaction type to "NEXT_INSTALLMENT" future installment allocation rule
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_ADV_PYMNT_INTEREST_DAILY_INTEREST_RECALCULATION_CONTRACT_TERMINATION | 01 January 2024 | 100 | 7 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 6 | MONTHS | 1 | MONTHS | 6 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
And Admin successfully approves the loan on "01 January 2024" with "100" amount and expected disbursement date on "01 January 2024"
When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
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| | 83.57 | 16.43 | 0.58 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 2 | 29 | 01 March 2024 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 0.0 | 0.0 | 0.0 | 102.05 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
When Admin sets the business date to "01 February 2024"
And Customer makes "AUTOPAY" repayment on "01 February 2024" with 17.01 EUR transaction amount
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 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 17.01 | 0.0 | 0.0 | 85.04 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
When Admin sets the business date to "1 March 2024"
And Admin successfully terminates loan contract
Then Loan Repayment schedule has 2 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 | | 0.0 | 83.57 | 0.49 | 0.0 | 0.0 | 84.06 | 0.0 | 0.0 | 0.0 | 84.06 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 1.07 | 0.0 | 0.0 | 101.07 | 17.01 | 0.0 | 0.0 | 84.06 |
Then 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 |
| 01 March 2024 | Accrual | 1.07 | 0.0 | 1.07 | 0.0 | 0.0 | 0.0 | false | false |
| 01 March 2024 | Contract Termination | 84.06 | 83.57 | 0.49 | 0.0 | 0.0 | 0.0 | false | false |
When Admin sets the business date to "15 April 2024"
Then Admin fails to create a Loan re-aging preview with the following data because loan was contract terminated:
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
| 1 | MONTHS | 01 May 2024 | 6 |
@TestRailId:C4217 @AdvancedPaymentAllocation
Scenario: Verify Re-aging preview on interest bearing loan - Interest calculation: Default Behavior - Fees and Interest Split after re-aging - UC12
When Admin sets the business date to "01 January 2024"
When Admin creates a client with random data
When Admin set "LP2_ADV_CUSTOM_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL" loan product "DEFAULT" transaction type to "NEXT_INSTALLMENT" future installment allocation rule
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_ADV_CUSTOM_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL | 01 January 2024 | 100 | 7 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 6 | MONTHS | 1 | MONTHS | 6 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
And Admin successfully approves the loan on "01 January 2024" with "100" amount and expected disbursement date on "01 January 2024"
When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
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| | 83.57 | 16.43 | 0.58 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 2 | 29 | 01 March 2024 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 0.0 | 0.0 | 0.0 | 102.05 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
When Admin sets the business date to "01 February 2024"
And Customer makes "AUTOPAY" repayment on "01 February 2024" with 17.01 EUR transaction amount
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 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 0.0 | 0.0 | 102.05 | 17.01 | 0.0 | 0.0 | 85.04 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
When Admin sets the business date to "15 February 2024"
When Admin adds "LOAN_SNOOZE_FEE" due date charge with "15 May 2024" due date and 10 EUR transaction amount
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 | | 67.05 | 16.52 | 0.49 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 3 | 31 | 01 April 2024 | | 50.43 | 16.62 | 0.39 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 4 | 30 | 01 May 2024 | | 33.71 | 16.72 | 0.29 | 0.0 | 0.0 | 17.01 | 0.0 | 0.0 | 0.0 | 17.01 |
| 5 | 31 | 01 June 2024 | | 16.9 | 16.81 | 0.2 | 10.0 | 0.0 | 27.01 | 0.0 | 0.0 | 0.0 | 27.01 |
| 6 | 30 | 01 July 2024 | | 0.0 | 16.9 | 0.1 | 0.0 | 0.0 | 17.0 | 0.0 | 0.0 | 0.0 | 17.0 |
Then Loan Repayment schedule has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.05 | 10.0 | 0.0 | 112.05 | 17.01 | 0.0 | 0.0 | 95.04 |
Then Loan Transactions tab has the following data:
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted |
| 01 January 2024 | Disbursement | 100.0 | 0.0 | 0.0 | 0.0 | 0.0 | 100.0 | false |
| 01 February 2024 | Repayment | 17.01 | 16.43 | 0.58 | 0.0 | 0.0 | 83.57 | false |
Then Loan Charges tab has the following data:
| Name | isPenalty | Payment due at | Due as of | Calculation type | Due | Paid | Waived | Outstanding |
| Snooze fee | false | Specified due date | 15 May 2024 | Flat | 10.0 | 0.0 | 0.0 | 10.0 |
When Admin sets the business date to "15 March 2024"
When Admin creates a Loan re-aging preview by Loan external ID with the following data:
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
| 1 | MONTHS | 01 April 2024 | 6 |
Then Loan Repayment schedule preview has 8 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 | 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 | 31 | 01 April 2024 | | 70.25 | 13.32 | 0.98 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 4 | 30 | 01 May 2024 | | 56.36 | 13.89 | 0.41 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 5 | 31 | 01 June 2024 | | 42.39 | 13.97 | 0.33 | 10.0 | 0.0 | 24.3 | 0.0 | 0.0 | 0.0 | 24.3 |
| 6 | 30 | 01 July 2024 | | 28.34 | 14.05 | 0.25 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 7 | 31 | 01 August 2024 | | 14.21 | 14.13 | 0.17 | 0.0 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 14.3 |
| 8 | 31 | 01 September 2024| | 0.0 | 14.21 | 0.08 | 0.0 | 0.0 | 14.29 | 0.0 | 0.0 | 0.0 | 14.29 |
Then Loan Repayment schedule preview has the following data in Total row:
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
| 100.0 | 2.8 | 10.0 | 0.0 | 112.8 | 17.01 | 0.0 | 0.0 | 95.79 |
When Loan Pay-off is made on "15 March 2024"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@@ -13,7 +13,7 @@ Feature: LoanUpdateApprovedAmount
When Admin successfully disburse the loan on "01 January 2025" with "1000" EUR transaction amount
When Loan Pay-off is made on "1 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3859
Scenario: Verify update approved amount after undo disbursement for single disb progressive loan - UC3
@@ -30,7 +30,7 @@ Feature: LoanUpdateApprovedAmount
When Admin successfully disburse the loan on "01 January 2025" with "600" EUR transaction amount
When Loan Pay-off is made on "1 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3860
Scenario: Verify update approved amount with approved over applied amount for progressive multidisbursal loan with percentage overAppliedCalculationType - UC4
@@ -49,7 +49,7 @@ Feature: LoanUpdateApprovedAmount
And Admin successfully disburse the loan on "1 January 2025" with "400" EUR transaction amount
When Loan Pay-off is made on "1 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3861
Scenario: Verify update approved amount with approved over applied amount and capitalized income for progressive loan with percentage overAppliedCalculationType - UC8_1
@@ -69,7 +69,7 @@ Feature: LoanUpdateApprovedAmount
And Admin adds capitalized income with "AUTOPAY" payment type to the loan on "1 January 2025" with "400" EUR transaction amount
When Loan Pay-off is made on "1 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3862
Scenario: Verify update approved amount with capitalized income for progressive loan - UC8_2
@@ -86,7 +86,7 @@ Feature: LoanUpdateApprovedAmount
And Admin adds capitalized income with "AUTOPAY" payment type to the loan on "1 January 2025" with "200" EUR transaction amount
When Loan Pay-off is made on "1 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3863
Scenario: Verify update approved amount with capitalized income for progressive multidisbursal loan - UC8_3
@@ -103,7 +103,7 @@ Feature: LoanUpdateApprovedAmount
And Admin successfully disburse the loan on "1 January 2025" with "200" EUR transaction amount
When Loan Pay-off is made on "1 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3864
Scenario: Verify update approved amount before disbursement for single disb cumulative loan - UC5_1
@@ -117,7 +117,7 @@ Feature: LoanUpdateApprovedAmount
And Admin successfully disburse the loan on "1 January 2025" with "100" EUR transaction amount
When Loan Pay-off is made on "1 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3865
Scenario: Verify update approved amount before disbursement for single disb progressive loan - UC5_2
@@ -131,7 +131,7 @@ Feature: LoanUpdateApprovedAmount
And Admin successfully disburse the loan on "1 January 2025" with "100" EUR transaction amount
When Loan Pay-off is made on "1 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3866
Scenario: Verify approved amount change for progressive multidisbursal loan that doesn't expect tranches - UC6
@@ -159,7 +159,7 @@ Feature: LoanUpdateApprovedAmount
Then Update loan approved amount is forbidden with amount "500" due to higher principal amount on loan
When Loan Pay-off is made on "1 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3867
Scenario: Verify approved amount change with lower value for progressive multidisbursal loan that expects two tranches - UC7_1
@@ -198,7 +198,7 @@ Feature: LoanUpdateApprovedAmount
| 03 January 2025 | Disbursement | 500.0 | 0.0 | 0.0 | 0.0 | 0.0 | 1000.0 | false | false |
When Loan Pay-off is made on "3 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3868
Scenario: Verify approved amount change with greater value for progressive multidisbursal loan that expects two tranches - UC7_2
@@ -237,4 +237,4 @@ Feature: LoanUpdateApprovedAmount
| 03 January 2025 | Disbursement | 600.0 | 0.0 | 0.0 | 0.0 | 0.0 | 1200.0 | false | false |
When Loan Pay-off is made on "3 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@@ -15,7 +15,7 @@ Feature: LoanUpdateAvailableDisbursementAmount
When Admin successfully disburse the loan on "01 January 2025" with "600" EUR transaction amount
When Loan Pay-off is made on "01 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3919
Scenario: Verify update available disbursement amount after undo disbursement for single disb progressive loan - UC3
@@ -32,7 +32,7 @@ Feature: LoanUpdateAvailableDisbursementAmount
When Admin successfully disburse the loan on "01 January 2025" with "700" EUR transaction amount
When Loan Pay-off is made on "01 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3920
Scenario: Verify update available disbursement amount with approved over applied amount for progressive multidisbursal loan with percentage overAppliedCalculationType - UC4
@@ -53,7 +53,7 @@ Feature: LoanUpdateAvailableDisbursementAmount
Then Loan has availableDisbursementAmountWithOverApplied field with value: 0
When Loan Pay-off is made on "01 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3921
Scenario: Verify update available disbursement amount with approved over applied amount and capitalized income for progressive loan with percentage overAppliedCalculationType - UC8_1
@@ -77,7 +77,7 @@ Feature: LoanUpdateAvailableDisbursementAmount
Then Loan has availableDisbursementAmountWithOverApplied field with value: 0
When Loan Pay-off is made on "01 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3922
Scenario: Verify update available disbursement amount with capitalized income for progressive loan - UC8_2
@@ -95,7 +95,7 @@ Feature: LoanUpdateAvailableDisbursementAmount
And Admin adds capitalized income with "AUTOPAY" payment type to the loan on "1 January 2025" with "150" EUR transaction amount
When Loan Pay-off is made on "01 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3923
Scenario: Verify update available disbursement amount with capitalized income for progressive multidisbursal loan - UC8_3
@@ -113,7 +113,7 @@ Feature: LoanUpdateAvailableDisbursementAmount
And Admin successfully disburse the loan on "1 January 2025" with "200" EUR transaction amount
When Loan Pay-off is made on "01 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3924
Scenario: Verify update available disbursement amount before disbursement for single disb cumulative loan - UC5_1
@@ -128,7 +128,7 @@ Feature: LoanUpdateAvailableDisbursementAmount
And Admin successfully disburse the loan on "1 January 2025" with "900" EUR transaction amount
When Loan Pay-off is made on "01 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3925
Scenario: Verify update available disbursement amount before disbursement for single disb progressive loan - UC5_2
@@ -143,7 +143,7 @@ Feature: LoanUpdateAvailableDisbursementAmount
And Admin successfully disburse the loan on "1 January 2025" with "900" EUR transaction amount
When Loan Pay-off is made on "01 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3926
Scenario: Verify available disbursement amount change for progressive multidisbursal loan that doesn't expect tranches - UC6
@@ -172,7 +172,7 @@ Feature: LoanUpdateAvailableDisbursementAmount
Then Update loan available disbursement amount is forbidden with amount "500" due to exceed applied amount
When Loan Pay-off is made on "01 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3927
Scenario: Verify available disbursement amount change is forbidden with lower value for progressive multidisbursal loan that expects tranches - UC7_1
@@ -216,7 +216,7 @@ Feature: LoanUpdateAvailableDisbursementAmount
| 03 January 2025 | Disbursement | 500.0 | 0.0 | 0.0 | 0.0 | 0.0 | 1000.0 | false | false |
When Loan Pay-off is made on "01 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3928
Scenario: Verify available disbursement amount change with greater value above approved amount for progressive multidisbursal loan that expects tranches - UC7_2
@@ -256,7 +256,7 @@ Feature: LoanUpdateAvailableDisbursementAmount
| 03 January 2025 | Disbursement | 700.0 | 0.0 | 0.0 | 0.0 | 0.0 | 1200.0 | false | false |
When Loan Pay-off is made on "01 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3929
Scenario: Verify available disbursement amount change with greater value under approved amount for progressive multidisbursal loan that expects tranches - UC7_3
@@ -295,7 +295,7 @@ Feature: LoanUpdateAvailableDisbursementAmount
| 03 January 2025 | Disbursement | 350.0 | 0.0 | 0.0 | 0.0 | 0.0 | 950.0 | false | false |
When Loan Pay-off is made on "01 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3995
Scenario: Verify update available disbursement amount to zero is forbidden for not approved loan
@@ -366,7 +366,7 @@ Feature: LoanUpdateAvailableDisbursementAmount
Then Admin fails to disburse the loan on "1 January 2025" with "1" EUR transaction amount due to exceed approved amount
When Loan Pay-off is made on "01 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C3999
Scenario: Verify availableDisbursementAmountWithOverApplied field calculation
@@ -387,7 +387,7 @@ Feature: LoanUpdateAvailableDisbursementAmount
And Admin adds capitalized income with "AUTOPAY" payment type to the loan on "1 January 2025" with "150" EUR transaction amount
Then Loan has availableDisbursementAmountWithOverApplied field with value: 50
When Loan Pay-off is made on "01 January 2025"
Then Loan's all installments have obligations met
Then Loan is closed with zero outstanding balance and it's all installments have obligations met
@TestRailId:C4003
Scenario: Verify availableDisbursementAmountWithOverApplied field calculation for progressive multidisbursal loan that expects tranches
@@ -430,3 +430,6 @@ Feature: LoanUpdateAvailableDisbursementAmount
| 01 January 2025 | Disbursement | 300.0 | 0.0 | 0.0 | 0.0 | 0.0 | 300.0 | false | false |
| 02 January 2025 | Disbursement | 200.0 | 0.0 | 0.0 | 0.0 | 0.0 | 500.0 | false | false |
| 03 January 2025 | Disbursement | 1000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 1500.0 | false | false |
When Loan Pay-off is made on "03 January 2025"
Then Loan is closed with zero outstanding balance and it's all installments have obligations met