@@ -1652,3 +1652,123 @@ Feature: LoanReAging
16521652 | Name | isPenalty | Payment due at | Due as of | Calculation type | Due | Paid | Waived | Outstanding |
16531653 | NSF fee | true | Specified due date | 01 May 2025 | Flat | 20 .0 | 0 .0 | 0 .0 | 20 .0 |
16541654
1655+ Scenario : Verify merging re-aging transaction with N+1 installment in the same bucket(YEARS)
1656+ When Admin sets the business date to "01 January 2024"
1657+ When Admin creates a client with random data
1658+ When Admin creates a fully customized loan with the following data:
1659+ | 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 |
1660+ | LP2_DOWNPAYMENT_AUTO_ADVANCED_PAYMENT_ALLOCATION | 01 January 2024 | 100 | 0 | FLAT | SAME_AS_REPAYMENT_PERIOD | EQUAL_INSTALLMENTS | 3 | MONTHS | 1 | MONTHS | 3 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
1661+ And Admin successfully approves the loan on "01 January 2024" with "100" amount and expected disbursement date on "01 January 2024"
1662+ When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
1663+ When Admin sets the business date to "05 April 2024"
1664+ And Admin adds "LOAN_SNOOZE_FEE" due date charge with "03 May 2024" due date and 100 EUR transaction amount
1665+ When Admin creates a Loan re-aging transaction with the following data:
1666+ | frequencyNumber | frequencyType | startDate | numberOfInstallments |
1667+ | 1 | YEARS | 01 April 2024 | 3 |
1668+ Then Loan Repayment schedule has 7 periods, with the following data for periods:
1669+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
1670+ | | | 01 January 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
1671+ | 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 |
1672+ | 2 | 31 | 01 February 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1673+ | 3 | 29 | 01 March 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1674+ | 4 | 31 | 01 April 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1675+ | 5 | 0 | 01 April 2024 | | 50 .0 | 25 .0 | 0 .0 | 100 .0 | 0 .0 | 125 .0 | 0 .0 | 0 .0 | 0 .0 | 125 .0 |
1676+ | 6 | 365 | 01 April 2025 | | 25 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 |
1677+ | 7 | 365 | 01 April 2026 | | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 |
1678+
1679+ Scenario : Verify merging re-aging transaction with N+1 installment in the same bucket(MONTHS)
1680+ When Admin sets the business date to "01 January 2024"
1681+ When Admin creates a client with random data
1682+ When Admin creates a fully customized loan with the following data:
1683+ | 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 |
1684+ | LP2_DOWNPAYMENT_AUTO_ADVANCED_PAYMENT_ALLOCATION | 01 January 2024 | 100 | 0 | FLAT | SAME_AS_REPAYMENT_PERIOD | EQUAL_INSTALLMENTS | 3 | MONTHS | 1 | MONTHS | 3 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
1685+ And Admin successfully approves the loan on "01 January 2024" with "100" amount and expected disbursement date on "01 January 2024"
1686+ When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
1687+ When Admin sets the business date to "05 April 2024"
1688+ And Admin adds "LOAN_SNOOZE_FEE" due date charge with "03 May 2024" due date and 100 EUR transaction amount
1689+ When Admin creates a Loan re-aging transaction with the following data:
1690+ | frequencyNumber | frequencyType | startDate | numberOfInstallments |
1691+ | 1 | MONTHS | 01 April 2024 | 3 |
1692+ Then Loan Repayment schedule has 7 periods, with the following data for periods:
1693+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
1694+ | | | 01 January 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
1695+ | 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 |
1696+ | 2 | 31 | 01 February 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1697+ | 3 | 29 | 01 March 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1698+ | 4 | 31 | 01 April 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1699+ | 5 | 0 | 01 April 2024 | | 50 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 |
1700+ | 6 | 30 | 01 May 2024 | | 25 .0 | 25 .0 | 0 .0 | 100 .0 | 0 .0 | 125 .0 | 0 .0 | 0 .0 | 0 .0 | 125 .0 |
1701+ | 7 | 31 | 01 June 2024 | | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 |
1702+
1703+ Scenario : Verify merging re-aging transaction with N+1 installment in the same bucket(WEEKS)
1704+ When Admin sets the business date to "01 January 2024"
1705+ When Admin creates a client with random data
1706+ When Admin creates a fully customized loan with the following data:
1707+ | 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 |
1708+ | LP2_DOWNPAYMENT_AUTO_ADVANCED_PAYMENT_ALLOCATION | 01 January 2024 | 100 | 0 | FLAT | SAME_AS_REPAYMENT_PERIOD | EQUAL_INSTALLMENTS | 3 | MONTHS | 1 | MONTHS | 3 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
1709+ And Admin successfully approves the loan on "01 January 2024" with "100" amount and expected disbursement date on "01 January 2024"
1710+ When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
1711+ When Admin sets the business date to "05 April 2024"
1712+ And Admin adds "LOAN_SNOOZE_FEE" due date charge with "09 April 2024" due date and 100 EUR transaction amount
1713+ When Admin creates a Loan re-aging transaction with the following data:
1714+ | frequencyNumber | frequencyType | startDate | numberOfInstallments |
1715+ | 1 | WEEKS | 01 April 2024 | 3 |
1716+ Then Loan Repayment schedule has 7 periods, with the following data for periods:
1717+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
1718+ | | | 01 January 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
1719+ | 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 |
1720+ | 2 | 31 | 01 February 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1721+ | 3 | 29 | 01 March 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1722+ | 4 | 31 | 01 April 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1723+ | 5 | 0 | 01 April 2024 | | 50 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 |
1724+ | 6 | 7 | 08 April 2024 | | 25 .0 | 25 .0 | 0 .0 | 100 .0 | 0 .0 | 125 .0 | 0 .0 | 0 .0 | 0 .0 | 125 .0 |
1725+ | 7 | 7 | 15 April 2024 | | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 |
1726+
1727+ Scenario : Verify merging re-aging transaction with N+1 installment in the same bucket(DAYS)
1728+ When Admin sets the business date to "01 January 2024"
1729+ When Admin creates a client with random data
1730+ When Admin creates a fully customized loan with the following data:
1731+ | 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 |
1732+ | LP2_DOWNPAYMENT_AUTO_ADVANCED_PAYMENT_ALLOCATION | 01 January 2024 | 100 | 0 | FLAT | SAME_AS_REPAYMENT_PERIOD | EQUAL_INSTALLMENTS | 3 | MONTHS | 1 | MONTHS | 3 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
1733+ And Admin successfully approves the loan on "01 January 2024" with "100" amount and expected disbursement date on "01 January 2024"
1734+ When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
1735+ When Admin sets the business date to "05 April 2024"
1736+ And Admin adds "LOAN_SNOOZE_FEE" due date charge with "03 April 2024" due date and 100 EUR transaction amount
1737+ When Admin creates a Loan re-aging transaction with the following data:
1738+ | frequencyNumber | frequencyType | startDate | numberOfInstallments |
1739+ | 1 | DAYS | 01 April 2024 | 3 |
1740+ Then Loan Repayment schedule has 7 periods, with the following data for periods:
1741+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
1742+ | | | 01 January 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
1743+ | 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 |
1744+ | 2 | 31 | 01 February 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1745+ | 3 | 29 | 01 March 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1746+ | 4 | 31 | 01 April 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1747+ | 5 | 0 | 01 April 2024 | | 50 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 |
1748+ | 6 | 1 | 02 April 2024 | | 25 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 |
1749+ | 7 | 1 | 03 April 2024 | | 0 .0 | 25 .0 | 0 .0 | 100 .0 | 0 .0 | 125 .0 | 0 .0 | 0 .0 | 0 .0 | 125 .0 |
1750+
1751+ Scenario : Verify re-aging transaction with N+1 installment outside bucket
1752+ When Admin sets the business date to "01 January 2024"
1753+ When Admin creates a client with random data
1754+ When Admin creates a fully customized loan with the following data:
1755+ | 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 |
1756+ | LP2_DOWNPAYMENT_AUTO_ADVANCED_PAYMENT_ALLOCATION | 01 January 2024 | 100 | 0 | FLAT | SAME_AS_REPAYMENT_PERIOD | EQUAL_INSTALLMENTS | 3 | MONTHS | 1 | MONTHS | 3 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
1757+ And Admin successfully approves the loan on "01 January 2024" with "100" amount and expected disbursement date on "01 January 2024"
1758+ When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
1759+ When Admin sets the business date to "05 April 2024"
1760+ And Admin adds "LOAN_SNOOZE_FEE" due date charge with "03 July 2024" due date and 100 EUR transaction amount
1761+ When Admin creates a Loan re-aging transaction with the following data:
1762+ | frequencyNumber | frequencyType | startDate | numberOfInstallments |
1763+ | 1 | MONTHS | 01 April 2024 | 3 |
1764+ Then Loan Repayment schedule has 8 periods, with the following data for periods:
1765+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
1766+ | | | 01 January 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
1767+ | 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 |
1768+ | 2 | 31 | 01 February 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1769+ | 3 | 29 | 01 March 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1770+ | 4 | 31 | 01 April 2024 | 05 April 2024 | 75 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 |
1771+ | 5 | 0 | 01 April 2024 | | 50 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 |
1772+ | 6 | 30 | 01 May 2024 | | 25 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 |
1773+ | 7 | 31 | 01 June 2024 | | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 | 0 .0 | 0 .0 | 0 .0 | 25 .0 |
1774+ | 8 | 32 | 03 July 2024 | | 0 .0 | 0 .0 | 0 .0 | 100 .0 | 0 .0 | 100 .0 | 0 .0 | 0 .0 | 0 .0 | 100 .0 |
0 commit comments