FINERACT-2070: E2E testcase migration - feature files - pt3
This commit is contained in:
+153
-37
@@ -1,7 +1,7 @@
|
||||
@LoanAccrualFeature
|
||||
Feature: LoanAccrualTransaction
|
||||
|
||||
|
||||
@TestRailId:C2647
|
||||
Scenario: Verify that after COB job Accrual event is raised when loan has a fee-charge on disbursal date
|
||||
When Admin sets the business date to "01 January 2023"
|
||||
When Admin creates a client with random data
|
||||
@@ -16,7 +16,7 @@ Feature: LoanAccrualTransaction
|
||||
| Accrual | 10.0 | 0.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
Then LoanAccrualTransactionCreatedBusinessEvent is raised on "01 January 2023"
|
||||
|
||||
|
||||
@TestRailId:C2648
|
||||
Scenario: Verify that after COB job Accrual event is raised when loan has a fee-charge on disbursal date with partial repayment
|
||||
When Admin sets the business date to "01 January 2023"
|
||||
When Admin creates a client with random data
|
||||
@@ -32,7 +32,7 @@ Feature: LoanAccrualTransaction
|
||||
| Accrual | 10.0 | 0.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
Then LoanAccrualTransactionCreatedBusinessEvent is raised on "01 January 2023"
|
||||
|
||||
|
||||
@TestRailId:C2649
|
||||
Scenario: Verify that after COB job Accrual event is raised when loan has a fee-charge on disbursal date with full repayment and loan is closed
|
||||
When Admin sets the business date to "01 January 2023"
|
||||
When Admin creates a client with random data
|
||||
@@ -48,7 +48,7 @@ Feature: LoanAccrualTransaction
|
||||
| Accrual | 10.0 | 0.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
Then LoanAccrualTransactionCreatedBusinessEvent is raised on "02 January 2023"
|
||||
|
||||
|
||||
@TestRailId:C2650
|
||||
Scenario: Verify that after COB job Accrual event is raised when loan has a fee-charge added with chargeback
|
||||
When Admin sets the business date to "01 January 2023"
|
||||
When Admin creates a client with random data
|
||||
@@ -72,7 +72,7 @@ Feature: LoanAccrualTransaction
|
||||
And Admin makes "REPAYMENT_ADJUSTMENT_CHARGEBACK" chargeback with 250 EUR transaction amount for Payment nr. 2
|
||||
Then Loan has 250 outstanding amount
|
||||
|
||||
|
||||
@TestRailId:C2651
|
||||
Scenario: Verify that after periodic accrual transaction job accrual event is raised when loan has a fee-charge added with waive charge and undo waive charge
|
||||
When Admin sets the business date to "01 January 2023"
|
||||
When Admin creates a client with random data
|
||||
@@ -97,10 +97,10 @@ Feature: LoanAccrualTransaction
|
||||
And Admin runs the Add Periodic Accrual Transactions job
|
||||
Then Loan Transactions tab has a transaction with date: "05 April 2023", and with the following data:
|
||||
| Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
|
||||
| Accrual | 10.0 | 0.0 | 0.0 | 0.0 | 10.0 | 0.0 |
|
||||
| Accrual | 10.0 | 0.0 | 0.0 | 0.0 | 10.0 | 0.0 |
|
||||
Then LoanAccrualTransactionCreatedBusinessEvent is raised on "05 April 2023"
|
||||
|
||||
|
||||
@TestRailId:C2652
|
||||
Scenario: Verify that after periodic accrual transaction job accrual event is raised when loan has a fee-charge added when loan is closed
|
||||
When Admin sets the business date to "01 January 2023"
|
||||
When Admin creates a client with random data
|
||||
@@ -117,7 +117,7 @@ Feature: LoanAccrualTransaction
|
||||
| Accrual | 10.0 | 0.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
Then LoanAccrualTransactionCreatedBusinessEvent is raised on "02 January 2023"
|
||||
|
||||
|
||||
@TestRailId:C2653
|
||||
Scenario: Verify that after disbursement and COB job Accrual event is raised when loan has a interest recalculation
|
||||
When Admin sets the business date to "01 January 2023"
|
||||
When Admin creates a client with random data
|
||||
@@ -133,7 +133,7 @@ Feature: LoanAccrualTransaction
|
||||
| Accrual | 1.64 | 0.0 | 1.64 | 0.0 | 0.0 | 0.0 |
|
||||
Then LoanAccrualTransactionCreatedBusinessEvent is raised on "02 January 2023"
|
||||
|
||||
|
||||
@TestRailId:C2654
|
||||
Scenario: Verify that after loan is closed accrual event is raised when loan has a interest recalculation
|
||||
When Admin sets the business date to "01 January 2023"
|
||||
When Admin creates a client with random data
|
||||
@@ -150,7 +150,7 @@ Feature: LoanAccrualTransaction
|
||||
| Accrual | 10.19 | 0.0 | 10.19 | 0.0 | 0.0 | 0.0 |
|
||||
Then LoanAccrualTransactionCreatedBusinessEvent is raised on "02 January 2023"
|
||||
|
||||
|
||||
@TestRailId:C2683
|
||||
Scenario: Verify that the final accrual is created when the loan goes to overpaid state
|
||||
When Admin sets the business date to "1 July 2023"
|
||||
When Admin creates a client with random data
|
||||
@@ -171,10 +171,10 @@ Feature: LoanAccrualTransaction
|
||||
Then Loan Transactions tab has the following data:
|
||||
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
|
||||
| 01 July 2023 | Disbursement | 5000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5000.0 |
|
||||
| 06 July 2023 | Repayment | 5011.0 | 5000.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
| 06 July 2023 | Accrual | 10.0 | 0.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
| 06 July 2023 | Repayment | 5011.0 | 5000.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
|
||||
|
||||
@TestRailId:C2684
|
||||
Scenario: Verify that the accrual transaction correctly created in case a CBR is applied on the loan
|
||||
When Admin sets the business date to "1 July 2023"
|
||||
When Admin creates a client with random data
|
||||
@@ -195,8 +195,8 @@ Feature: LoanAccrualTransaction
|
||||
Then Loan Transactions tab has the following data:
|
||||
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
|
||||
| 01 July 2023 | Disbursement | 5000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5000.0 |
|
||||
| 06 July 2023 | Repayment | 5011.0 | 5000.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
| 06 July 2023 | Accrual | 10.0 | 0.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
| 06 July 2023 | Repayment | 5011.0 | 5000.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
When Admin makes Credit Balance Refund transaction on "06 July 2023" with 1 EUR transaction amount
|
||||
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
|
||||
Then Loan Repayment schedule has 1 periods, with the following data for periods:
|
||||
@@ -209,11 +209,11 @@ Feature: LoanAccrualTransaction
|
||||
Then Loan Transactions tab has the following data:
|
||||
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
|
||||
| 01 July 2023 | Disbursement | 5000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5000.0 |
|
||||
| 06 July 2023 | Repayment | 5011.0 | 5000.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
| 06 July 2023 | Accrual | 10.0 | 0.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
| 06 July 2023 | Repayment | 5011.0 | 5000.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
| 06 July 2023 | Credit Balance Refund | 1.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
|
||||
|
||||
|
||||
@TestRailId:C2685
|
||||
Scenario: Verify that the accrual transaction correctly created (overpay, undo repayment, overpay)
|
||||
When Admin sets the business date to "1 July 2023"
|
||||
When Admin creates a client with random data
|
||||
@@ -259,7 +259,7 @@ Feature: LoanAccrualTransaction
|
||||
| 06 July 2023 | Accrual | 10.0 | 0.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
| 07 July 2023 | Repayment | 4011.0 | 4010.0 | 0.0 | 0.0 | 0.0 | 0.0 |
|
||||
|
||||
|
||||
@TestRailId:C2686
|
||||
Scenario: Verify that the accrual transaction correctly created (overpay, undo repayment, add charge, overpay)
|
||||
When Admin sets the business date to "1 July 2023"
|
||||
When Admin creates a client with random data
|
||||
@@ -307,7 +307,7 @@ Feature: LoanAccrualTransaction
|
||||
| 07 July 2023 | Repayment | 4061.0 | 4060.0 | 0.0 | 0.0 | 0.0 | 0.0 |
|
||||
| 07 July 2023 | Accrual | 50.0 | 0.0 | 0.0 | 50.0 | 0.0 | 0.0 |
|
||||
|
||||
@Skip
|
||||
@TestRailId:C2707
|
||||
Scenario: Verify that the accrual transaction is not reversed when multi disbursement happens
|
||||
When Admin sets the business date to "26 April 2023"
|
||||
When Admin creates a client with random data
|
||||
@@ -339,7 +339,7 @@ Feature: LoanAccrualTransaction
|
||||
| 27 April 2023 | Accrual | 10.0 | 0.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
| 28 April 2023 | Disbursement | 20.0 | 0.0 | 0.0 | 0.0 | 0.0 | 1050.0 |
|
||||
|
||||
@Skip
|
||||
@TestRailId:C2708
|
||||
Scenario: Verify that the accrual is correct when it is on the installment start date
|
||||
When Admin sets the business date to "1 May 2023"
|
||||
When Admin creates a client with random data
|
||||
@@ -366,8 +366,21 @@ Feature: LoanAccrualTransaction
|
||||
| 01 May 2023 | Accrual | 10.0 | 0.0 | 0.0 | 10.0 | 0.0 | 0.0 |
|
||||
| 08 May 2023 | Disbursement | 20.0 | 0.0 | 0.0 | 0.0 | 0.0 | 1020.0 |
|
||||
|
||||
@TestRailId:C2709
|
||||
Scenario:Verify that the accrual transaction is created for disbursement fee
|
||||
When Admin sets the business date to "1 May 2023"
|
||||
When Admin creates a client with random data
|
||||
And Admin successfully creates a new customised Loan submitted on date: "1 May 2023", with Principal: "1000", a loanTermFrequency: 1 months, and numberOfRepayments: 1
|
||||
And Admin successfully approves the loan on "1 May 2023" with "1000" amount and expected disbursement date on "1 May 2023"
|
||||
When Admin adds "LOAN_DISBURSEMENT_PERCENTAGE_FEE" charge with 1 % of transaction amount
|
||||
And Admin successfully disburse the loan on "1 May 2023" with "1000" EUR transaction amount
|
||||
When Admin runs inline COB job for Loan
|
||||
Then Loan Transactions tab has the following data:
|
||||
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
|
||||
| 01 May 2023 | Disbursement | 1000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 1000.0 |
|
||||
| 01 May 2023 | Repayment (at time of disbursement) | 10.0 | 0.0 | 0.0 | 10.0 | 0.0 | 1000.0 |
|
||||
|
||||
@Specific
|
||||
@TestRailId:C2710 @Specific
|
||||
Scenario: Verify global config charge-accrual-date function: single installment loan, charge-accrual-date = submitted-date, multiple charges with different submitted date
|
||||
When Global config "charge-accrual-date" value set to "submitted-date"
|
||||
When Admin sets the business date to "01 February 2023"
|
||||
@@ -396,7 +409,7 @@ Feature: LoanAccrualTransaction
|
||||
| 1000 | 0 | 20 | 0 | 1020 | 0 | 0 | 0 | 1020 |
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
|
||||
|
||||
@TestRailId:C2711
|
||||
Scenario: Verify global config charge-accrual-date function: single installment loan, charge-accrual-date = due-date, multiple charges with different submitted date
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
When Admin sets the business date to "01 February 2023"
|
||||
@@ -428,7 +441,7 @@ Feature: LoanAccrualTransaction
|
||||
| 1000 | 0 | 20 | 0 | 1020 | 0 | 0 | 0 | 1020 |
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
|
||||
@Specific
|
||||
@TestRailId:C2712 @Specific
|
||||
Scenario: Verify global config charge-accrual-date function: multiple installment loan, charge-accrual-date = submitted-date, multiple charges with different submitted date, due dates in same repayment period
|
||||
When Global config "charge-accrual-date" value set to "submitted-date"
|
||||
When Admin sets the business date to "01 February 2023"
|
||||
@@ -461,7 +474,7 @@ Feature: LoanAccrualTransaction
|
||||
| 3000 | 0 | 20 | 0 | 3020 | 0 | 0 | 0 | 3020 |
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
|
||||
|
||||
@TestRailId:C2713
|
||||
Scenario: Verify global config charge-accrual-date function: multiple installment loan, charge-accrual-date = due-date, multiple charges with different submitted date, due dates in same repayment period
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
When Admin sets the business date to "01 February 2023"
|
||||
@@ -497,7 +510,7 @@ Feature: LoanAccrualTransaction
|
||||
| 3000 | 0 | 20 | 0 | 3020 | 0 | 0 | 0 | 3020 |
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
|
||||
@Specific
|
||||
@TestRailId:C2714 @Specific
|
||||
Scenario: Verify global config charge-accrual-date function: multiple installment loan, charge-accrual-date = submitted-date, multiple charges with different submitted date, due dates in different repayment periods
|
||||
When Global config "charge-accrual-date" value set to "submitted-date"
|
||||
When Admin sets the business date to "01 February 2023"
|
||||
@@ -531,7 +544,7 @@ Feature: LoanAccrualTransaction
|
||||
| 3000 | 0 | 20 | 0 | 3020 | 0 | 0 | 0 | 3020 |
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
|
||||
|
||||
@TestRailId:C2715
|
||||
Scenario: Verify global config charge-accrual-date function: multiple installment loan, charge-accrual-date = due-date, multiple charges with different submitted date, due dates in different repayment periods
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
When Admin sets the business date to "01 February 2023"
|
||||
@@ -567,7 +580,7 @@ Feature: LoanAccrualTransaction
|
||||
| 3000 | 0 | 20 | 0 | 3020 | 0 | 0 | 0 | 3020 |
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
|
||||
@Specific
|
||||
@TestRailId:C2716 @Specific
|
||||
Scenario: Verify global config charge-accrual-date function: single installment loan, charge-accrual-date = submitted-date, multi disbursement
|
||||
When Global config "charge-accrual-date" value set to "submitted-date"
|
||||
When Admin sets the business date to "01 February 2023"
|
||||
@@ -599,7 +612,7 @@ Feature: LoanAccrualTransaction
|
||||
| 1000 | 0 | 10 | 0 | 1010 | 0 | 0 | 0 | 1010 |
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
|
||||
@Specific
|
||||
@TestRailId:C2717 @Specific
|
||||
Scenario: Verify global config charge-accrual-date function: single installment loan, charge-accrual-date = submitted-date, repayment reversal
|
||||
When Global config "charge-accrual-date" value set to "submitted-date"
|
||||
When Admin sets the business date to "01 February 2023"
|
||||
@@ -636,7 +649,7 @@ Feature: LoanAccrualTransaction
|
||||
| 1000 | 0 | 10 | 0 | 1010 | 0 | 0 | 0 | 1010 |
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
|
||||
@Specific
|
||||
@TestRailId:C2718 @Specific
|
||||
Scenario: Verify global config charge-accrual-date function: single installment loan, charge-accrual-date = submitted-date, waive charge, undo waive
|
||||
When Global config "charge-accrual-date" value set to "submitted-date"
|
||||
When Admin sets the business date to "01 February 2023"
|
||||
@@ -673,7 +686,7 @@ Feature: LoanAccrualTransaction
|
||||
| 1000 | 0 | 10 | 0 | 1010 | 0 | 0 | 0 | 1010 |
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
|
||||
@Specific
|
||||
@TestRailId:C2719 @Specific
|
||||
Scenario: Verify global config charge-accrual-date function: multiple installment loan, charge-accrual-date = submitted-date, multi disbursement
|
||||
When Global config "charge-accrual-date" value set to "submitted-date"
|
||||
When Admin sets the business date to "01 February 2023"
|
||||
@@ -709,7 +722,7 @@ Feature: LoanAccrualTransaction
|
||||
| 3000 | 0 | 10 | 0 | 3010 | 0 | 0 | 0 | 3010 |
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
|
||||
@Specific
|
||||
@TestRailId:C2720 @Specific
|
||||
Scenario: Verify global config charge-accrual-date function: multiple installment loan, charge-accrual-date = submitted-date, repayment reversal
|
||||
When Global config "charge-accrual-date" value set to "submitted-date"
|
||||
When Admin sets the business date to "01 February 2023"
|
||||
@@ -750,7 +763,7 @@ Feature: LoanAccrualTransaction
|
||||
| 3000 | 0 | 10 | 0 | 3010 | 0 | 0 | 0 | 3010 |
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
|
||||
@Specific
|
||||
@TestRailId:C2721 @Specific
|
||||
Scenario: Verify global config charge-accrual-date function: multiple installment loan, charge-accrual-date = submitted-date, waive charge, undo waive
|
||||
When Global config "charge-accrual-date" value set to "submitted-date"
|
||||
When Admin sets the business date to "01 February 2023"
|
||||
@@ -772,7 +785,7 @@ Feature: LoanAccrualTransaction
|
||||
When Admin sets the business date to "06 February 2023"
|
||||
When Admin runs inline COB job for Loan
|
||||
Then Loan Charges tab has the following data:
|
||||
| Name | isPenalty | Payment due at | Due as of | Calculation type | Due | Paid | Waived | Outstanding |
|
||||
| Name | isPenalty | Payment due at | Due as of | Calculation type | Due | Paid | Waived | Outstanding |
|
||||
| Snooze fee | false | Specified due date | 06 March 2023 | Flat | 10.0 | 0.0 | 0.0 | 10.0 |
|
||||
Then Loan Transactions tab has the following data:
|
||||
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
|
||||
@@ -792,7 +805,7 @@ Feature: LoanAccrualTransaction
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
|
||||
|
||||
@Specific
|
||||
@TestRailId:C2789 @Specific
|
||||
Scenario: Verify accrual transaction for new fee for loan with accrued snooze fee and schedule adjustment
|
||||
When Global config "charge-accrual-date" value set to "submitted-date"
|
||||
When Admin sets the business date to "19 May 2023"
|
||||
@@ -819,13 +832,116 @@ Feature: LoanAccrualTransaction
|
||||
When Admin runs inline COB job for Loan
|
||||
Then Loan Transactions tab has a transaction with date: "19 July 2023", and with the following data:
|
||||
| Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
|
||||
| Accrual | 10.0 | 0.0 | 0.0 | 0.0 | 10.0 | 0.0 |
|
||||
| Accrual | 10.0 | 0.0 | 0.0 | 0.0 | 10.0 | 0.0 |
|
||||
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 |
|
||||
| | | 19 May 2023 | | 1000.0 | | | 0.0 | | 0.0 | 0.0 | | | |
|
||||
| 1 | 60 | 18 July 2023 | | 0.0 | 1000.0 | 0.0 | 10.0 | 0.0 | 1010.0 | 0.0 | 0.0 | 0.0 | 1010.0 |
|
||||
| 2 | 1 | 19 July 2023 | | 0.0 | 0.0 | 0.0 | 0.0 | 10.0 | 10.0 | 0.0 | 0.0 | 0.0 | 10.0 |
|
||||
| Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
|
||||
| | | 19 May 2023 | | 1000.0 | | | 0.0 | | 0.0 | 0.0 | | | |
|
||||
| 1 | 60 | 18 July 2023 | | 0.0 | 1000.0 | 0.0 | 10.0 | 0.0 | 1010.0 | 0.0 | 0.0 | 0.0 | 1010.0 |
|
||||
| 2 | 1 | 19 July 2023 | | 0.0 | 0.0 | 0.0 | 0.0 | 10.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 |
|
||||
| 1000 | 0 | 10 | 10 | 1020 | 0 | 0 | 0 | 1020 |
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
|
||||
@TestRailId:C3128
|
||||
Scenario: Verify that the final accrual calculation is correct when multiple Charges are added and waived
|
||||
When Admin sets the business date to "17 April 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_DOWNPAYMENT_ADV_PMT_ALLOC_PROGRESSIVE_LOAN_SCHEDULE_HORIZONTAL | 17 April 2024 | 750 | 0 | FLAT | SAME_AS_REPAYMENT_PERIOD | EQUAL_INSTALLMENTS | 45 | DAYS | 15 | DAYS | 3 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
|
||||
And Admin successfully approves the loan on "17 April 2024" with "750" amount and expected disbursement date on "17 April 2024"
|
||||
When Admin successfully disburse the loan on "17 April 2024" with "750" EUR transaction amount
|
||||
When Admin adds "LOAN_NSF_FEE" due date charge with "17 April 2024" due date and 20 EUR transaction amount
|
||||
When Admin sets the business date to "18 April 2024"
|
||||
When Admin runs inline COB job for Loan
|
||||
And Admin waives due date charge
|
||||
When Admin sets the business date to "19 April 2024"
|
||||
When Admin adds "LOAN_NSF_FEE" due date charge with "19 April 2024" due date and 55 EUR transaction amount
|
||||
When Admin sets the business date to "20 April 2024"
|
||||
When Admin runs inline COB job for Loan
|
||||
And Customer makes "AUTOPAY" repayment on "20 April 2024" with 55 EUR transaction amount
|
||||
When Admin adds "LOAN_NSF_FEE" due date charge with "20 April 2024" due date and 60 EUR transaction amount
|
||||
And Customer makes "AUTOPAY" repayment on "20 April 2024" with 810 EUR transaction amount
|
||||
Then Loan Charges tab has a given charge with the following data:
|
||||
| Name | isPenalty | Payment due at | Due as of | Calculation type | Due | Paid | Waived | Outstanding |
|
||||
| NSF fee | true | Specified due date | 20 April 2024 | Flat | 60.0 | 60.0 | 0.0 | 0.0 |
|
||||
| NSF fee | true | Specified due date | 19 April 2024 | Flat | 55.0 | 55.0 | 0.0 | 0.0 |
|
||||
| NSF fee | true | Specified due date | 17 April 2024 | Flat | 20.0 | 0.0 | 20.0 | 0.0 |
|
||||
Then Loan Repayment schedule has 4 periods, with the following data for periods:
|
||||
| Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Waived | Outstanding |
|
||||
| | | 17 April 2024 | | 750.0 | | | 0.0 | | 0.0 | 0.0 | | | | |
|
||||
| 1 | 0 | 17 April 2024 | 20 April 2024 | 562.5 | 187.5 | 0.0 | 0.0 | 0.0 | 187.5 | 187.5 | 0.0 | 187.5 | 0.0 | 0.0 |
|
||||
| 2 | 15 | 02 May 2024 | 20 April 2024 | 375.0 | 187.5 | 0.0 | 0.0 | 135.0 | 322.5 | 302.5 | 302.5 | 0.0 | 20.0 | 0.0 |
|
||||
| 3 | 15 | 17 May 2024 | 20 April 2024 | 187.5 | 187.5 | 0.0 | 0.0 | 0.0 | 187.5 | 187.5 | 187.5 | 0.0 | 0.0 | 0.0 |
|
||||
| 4 | 15 | 01 June 2024 | 20 April 2024 | 0.0 | 187.5 | 0.0 | 0.0 | 0.0 | 187.5 | 187.5 | 187.5 | 0.0 | 0.0 | 0.0 |
|
||||
Then Loan Repayment schedule has the following data in Total row:
|
||||
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Waived | Outstanding |
|
||||
| 750.0 | 0.0 | 0.0 | 135.0 | 885.0 | 865.0 | 677.5 | 187.5 | 20.0 | 0.0 |
|
||||
Then Loan Transactions tab has the following data:
|
||||
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
|
||||
| 17 April 2024 | Disbursement | 750.0 | 0.0 | 0.0 | 0.0 | 0.0 | 750.0 |
|
||||
| 17 April 2024 | Waive loan charges | 20.0 | 0.0 | 0.0 | 0.0 | 0.0 | 750.0 |
|
||||
| 19 April 2024 | Accrual | 55.0 | 0.0 | 0.0 | 0.0 | 55.0 | 0.0 |
|
||||
| 20 April 2024 | Repayment | 55.0 | 55.0 | 0.0 | 0.0 | 0.0 | 695.0 |
|
||||
| 20 April 2024 | Repayment | 810.0 | 695.0 | 0.0 | 0.0 | 115.0 | 0.0 |
|
||||
| 20 April 2024 | Accrual | 60.0 | 0.0 | 0.0 | 0.0 | 60.0 | 0.0 |
|
||||
|
||||
@TestRailId:C3139
|
||||
Scenario: Verify global config charge-accrual-date function: multiple installment loan, charge-accrual-date = submitted-date, multi disbursement, periodic accrual
|
||||
When Global config "charge-accrual-date" value set to "submitted-date"
|
||||
When Admin sets the business date to "01 April 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 |
|
||||
| LP1_INTEREST_DECLINING_BALANCE_SAR_RECALCULATION_SAME_AS_REPAYMENT_COMPOUNDING_NONE_MULTIDISB | 01 April 2024 | 1000 | 12 | DECLINING_BALANCE | SAME_AS_REPAYMENT_PERIOD | EQUAL_INSTALLMENTS | 45 | DAYS | 15 | DAYS | 3 | 0 | 0 | 0 | PENALTIES_FEES_INTEREST_PRINCIPAL_ORDER |
|
||||
And Admin successfully approves the loan on "01 April 2024" with "1000" amount and expected disbursement date on "05 April 2024"
|
||||
When Admin sets the business date to "05 April 2024"
|
||||
When Admin successfully disburse the loan on "05 April 2024" with "500" EUR transaction amount
|
||||
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 |
|
||||
| | | 05 April 2024 | | 500.0 | | | 0.0 | | 0.0 | 0.0 | | | |
|
||||
| 1 | 15 | 20 April 2024 | | 334.47 | 165.53 | 2.47 | 0.0 | 0.0 | 168.0 | 0.0 | 0.0 | 0.0 | 168.0 |
|
||||
| 2 | 15 | 05 May 2024 | | 168.12 | 166.35 | 1.65 | 0.0 | 0.0 | 168.0 | 0.0 | 0.0 | 0.0 | 168.0 |
|
||||
| 3 | 15 | 20 May 2024 | | 0.0 | 168.12 | 0.83 | 0.0 | 0.0 | 168.95 | 0.0 | 0.0 | 0.0 | 168.95 |
|
||||
Then Loan Transactions tab has the following data:
|
||||
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
|
||||
| 05 April 2024 | Disbursement | 500.0 | 0.0 | 0.0 | 0.0 | 0.0 | 500.0 |
|
||||
Then Loan Repayment schedule has the following data in Total row:
|
||||
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
|
||||
| 500.0 | 4.95 | 0.0 | 0.0 | 504.95 | 0.0 | 0.0 | 0.0 | 504.95 |
|
||||
When Admin sets the business date to "25 April 2024"
|
||||
When Admin runs inline COB job for Loan
|
||||
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 |
|
||||
| | | 05 April 2024 | | 500.0 | | | 0.0 | | 0.0 | 0.0 | | | |
|
||||
| 1 | 15 | 20 April 2024 | | 334.47 | 165.53 | 2.47 | 0.0 | 0.0 | 168.0 | 0.0 | 0.0 | 0.0 | 168.0 |
|
||||
| 2 | 15 | 05 May 2024 | | 168.12 | 166.35 | 1.65 | 0.0 | 0.0 | 168.0 | 0.0 | 0.0 | 0.0 | 168.0 |
|
||||
| 3 | 15 | 20 May 2024 | | 0.0 | 168.12 | 0.83 | 0.0 | 0.0 | 168.95 | 0.0 | 0.0 | 0.0 | 168.95 |
|
||||
Then Loan Transactions tab has the following data:
|
||||
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
|
||||
| 05 April 2024 | Disbursement | 500.0 | 0.0 | 0.0 | 0.0 | 0.0 | 500.0 |
|
||||
| 24 April 2024 | Accrual | 2.47 | 0.0 | 2.47 | 0.0 | 0.0 | 0.0 |
|
||||
| 24 April 2024 | Accrual | 0.44 | 0.0 | 0.44 | 0.0 | 0.0 | 0.0 |
|
||||
Then Loan Repayment schedule has the following data in Total row:
|
||||
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
|
||||
| 500.0 | 4.95 | 0.0 | 0.0 | 504.95 | 0.0 | 0.0 | 0.0 | 504.95 |
|
||||
When Admin sets the business date to "26 April 2024"
|
||||
And Admin successfully disburse the loan on "26 April 2024" with "500" EUR transaction amount
|
||||
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 |
|
||||
| | | 05 April 2024 | | 500.0 | | | 0.0 | | 0.0 | 0.0 | | | |
|
||||
| 1 | 15 | 20 April 2024 | | 165.47 | 334.53 | 2.47 | 0.0 | 0.0 | 337.0 | 0.0 | 0.0 | 0.0 | 337.0 |
|
||||
| | | 26 April 2024 | | 500.0 | | | 0.0 | | 0.0 | 0.0 | | | |
|
||||
| 2 | 15 | 05 May 2024 | | 332.42 | 333.05 | 3.95 | 0.0 | 0.0 | 337.0 | 0.0 | 0.0 | 0.0 | 337.0 |
|
||||
| 3 | 15 | 20 May 2024 | | 0.0 | 332.42 | 1.64 | 0.0 | 0.0 | 334.06 | 0.0 | 0.0 | 0.0 | 334.06 |
|
||||
Then Loan Transactions tab has the following data:
|
||||
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
|
||||
| 05 April 2024 | Disbursement | 500.0 | 0.0 | 0.0 | 0.0 | 0.0 | 500.0 |
|
||||
| 24 April 2024 | Accrual | 1.05 | 0.0 | 1.05 | 0.0 | 0.0 | 0.0 |
|
||||
| 26 April 2024 | Disbursement | 500.0 | 0.0 | 0.0 | 0.0 | 0.0 | 1000.0 |
|
||||
| 26 April 2024 | Accrual | 2.47 | 0.0 | 2.47 | 0.0 | 0.0 | 0.0 |
|
||||
Then Loan Repayment schedule has the following data in Total row:
|
||||
| Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
|
||||
| 1000.0 | 8.06 | 0.0 | 0.0 | 1008.06 | 0.0 | 0.0 | 0.0 | 1008.06 |
|
||||
When Global config "charge-accrual-date" value set to "due-date"
|
||||
|
||||
Reference in New Issue
Block a user