@@ -2288,3 +2288,152 @@ Feature: Full Term Tranche - Schedule handling and Calculations
22882288 | 01 April 2024 | Re -amortize | 68 .52 | 65 .62 | 2 .9 | 0 .0 | 0 .0 | 0 .0 | false | false |
22892289 When Loan Pay-off is made on "01 April 2024"
22902290 Then Loan is closed with zero outstanding balance and it's all installments have obligations met
2291+
2292+ @TestRailId:C4564 @AdvancedPaymentAllocation
2293+ Scenario : Verify full term tranche interest bearing progressive loan - second disbursement on installment date - contract termination - UC8
2294+ When Admin sets the business date to "01 January 2024"
2295+ When Admin creates a client with random data
2296+ When Admin creates a fully customized loan with the following data:
2297+ | 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 |
2298+ | LP2_ADV_PYMNT_INTEREST_DAILY_EMI_360_30_INTEREST_RECALC_DAILY_MULTIDISBURSE_FULL_TERM_TRANCHE | 01 January 2024 | 200 | 9 .4822 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 6 | MONTHS | 1 | MONTHS | 6 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
2299+ And Admin successfully approves the loan on "01 January 2024" with "200" amount and expected disbursement date on "01 January 2024"
2300+ When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
2301+ Then Loan Repayment schedule has 6 periods, with the following data for periods:
2302+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
2303+ | | | 01 January 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
2304+ | 1 | 31 | 01 February 2024 | | 83 .66 | 16 .34 | 0 .79 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2305+ | 2 | 29 | 01 March 2024 | | 67 .19 | 16 .47 | 0 .66 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2306+ | 3 | 31 | 01 April 2024 | | 50 .59 | 16 .6 | 0 .53 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2307+ | 4 | 30 | 01 May 2024 | | 33 .86 | 16 .73 | 0 .4 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2308+ | 5 | 31 | 01 June 2024 | | 17 .0 | 16 .86 | 0 .27 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2309+ | 6 | 30 | 01 July 2024 | | 0 .0 | 17 .0 | 0 .13 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2310+ Then Loan Repayment schedule has the following data in Total row:
2311+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
2312+ | 100 .0 | 2 .78 | 0 .0 | 0 .0 | 102 .78 | 0 .0 | 0 .0 | 0 .0 | 102 .78 |
2313+ Then Loan Transactions tab has the following data:
2314+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
2315+ | 01 January 2024 | Disbursement | 100 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 100 .0 | false | false |
2316+ # --- 2nd disbursement on installment date ---
2317+ When Admin sets the business date to "01 February 2024"
2318+ And Customer makes "AUTOPAY" repayment on "01 February 2024" with 17.13 EUR transaction amount
2319+ Then Loan Repayment schedule has 6 periods, with the following data for periods:
2320+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
2321+ | | | 01 January 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
2322+ | 1 | 31 | 01 February 2024 | 01 February 2024 | 83 .66 | 16 .34 | 0 .79 | 0 .0 | 0 .0 | 17 .13 | 17 .13 | 0 .0 | 0 .0 | 0 .0 |
2323+ | 2 | 29 | 01 March 2024 | | 67 .19 | 16 .47 | 0 .66 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2324+ | 3 | 31 | 01 April 2024 | | 50 .59 | 16 .6 | 0 .53 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2325+ | 4 | 30 | 01 May 2024 | | 33 .86 | 16 .73 | 0 .4 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2326+ | 5 | 31 | 01 June 2024 | | 17 .0 | 16 .86 | 0 .27 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2327+ | 6 | 30 | 01 July 2024 | | 0 .0 | 17 .0 | 0 .13 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2328+ Then Loan Repayment schedule has the following data in Total row:
2329+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
2330+ | 100 .0 | 2 .78 | 0 .0 | 0 .0 | 102 .78 | 17 .13 | 0 .0 | 0 .0 | 85 .65 |
2331+ Then Loan Transactions tab has the following data:
2332+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
2333+ | 01 January 2024 | Disbursement | 100 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 100 .0 | false | false |
2334+ | 01 February 2024 | Repayment | 17 .13 | 16 .34 | 0 .79 | 0 .0 | 0 .0 | 83 .66 | false | false |
2335+ When Admin successfully disburse the loan on "01 February 2024" with "100" EUR transaction amount
2336+ Then Loan Repayment schedule has 7 periods, with the following data for periods:
2337+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
2338+ | | | 01 January 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
2339+ | 1 | 31 | 01 February 2024 | 01 February 2024 | 83 .66 | 16 .34 | 0 .79 | 0 .0 | 0 .0 | 17 .13 | 17 .13 | 0 .0 | 0 .0 | 0 .0 |
2340+ | | | 01 February 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
2341+ | 2 | 29 | 01 March 2024 | | 150 .85 | 32 .81 | 1 .45 | 0 .0 | 0 .0 | 34 .26 | 0 .0 | 0 .0 | 0 .0 | 34 .26 |
2342+ | 3 | 31 | 01 April 2024 | | 117 .78 | 33 .07 | 1 .19 | 0 .0 | 0 .0 | 34 .26 | 0 .0 | 0 .0 | 0 .0 | 34 .26 |
2343+ | 4 | 30 | 01 May 2024 | | 84 .45 | 33 .33 | 0 .93 | 0 .0 | 0 .0 | 34 .26 | 0 .0 | 0 .0 | 0 .0 | 34 .26 |
2344+ | 5 | 31 | 01 June 2024 | | 50 .86 | 33 .59 | 0 .67 | 0 .0 | 0 .0 | 34 .26 | 0 .0 | 0 .0 | 0 .0 | 34 .26 |
2345+ | 6 | 30 | 01 July 2024 | | 17 .0 | 33 .86 | 0 .4 | 0 .0 | 0 .0 | 34 .26 | 0 .0 | 0 .0 | 0 .0 | 34 .26 |
2346+ | 7 | 31 | 01 August 2024 | | 0 .0 | 17 .0 | 0 .13 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2347+ Then Loan Repayment schedule has the following data in Total row:
2348+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
2349+ | 200 .0 | 5 .56 | 0 .0 | 0 .0 | 205 .56 | 17 .13 | 0 .0 | 0 .0 | 188 .43 |
2350+ Then Loan Transactions tab has the following data:
2351+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
2352+ | 01 January 2024 | Disbursement | 100 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 100 .0 | false | false |
2353+ | 01 February 2024 | Repayment | 17 .13 | 16 .34 | 0 .79 | 0 .0 | 0 .0 | 83 .66 | false | false |
2354+ | 01 February 2024 | Disbursement | 100 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 183 .66 | false | false |
2355+ When Admin sets the business date to "01 March 2024"
2356+ And Admin successfully terminates loan contract
2357+ Then Loan Repayment schedule has 2 periods, with the following data for periods:
2358+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
2359+ | | | 01 January 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
2360+ | 1 | 31 | 01 February 2024 | 01 February 2024 | 83 .66 | 16 .34 | 0 .79 | 0 .0 | 0 .0 | 17 .13 | 17 .13 | 0 .0 | 0 .0 | 0 .0 |
2361+ | | | 01 February 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
2362+ | 2 | 29 | 01 March 2024 | | 0 .0 | 183 .66 | 1 .45 | 0 .0 | 0 .0 | 185 .11 | 0 .0 | 0 .0 | 0 .0 | 185 .11 |
2363+ Then Loan Repayment schedule has the following data in Total row:
2364+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
2365+ | 200 .0 | 2 .24 | 0 .0 | 0 .0 | 202 .24 | 17 .13 | 0 .0 | 0 .0 | 185 .11 |
2366+ Then Loan Transactions tab has the following data:
2367+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
2368+ | 01 January 2024 | Disbursement | 100 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 100 .0 | false | false |
2369+ | 01 February 2024 | Repayment | 17 .13 | 16 .34 | 0 .79 | 0 .0 | 0 .0 | 83 .66 | false | false |
2370+ | 01 February 2024 | Disbursement | 100 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 183 .66 | false | false |
2371+ | 01 March 2024 | Accrual | 2 .24 | 0 .0 | 2 .24 | 0 .0 | 0 .0 | 0 .0 | false | false |
2372+ | 01 March 2024 | Contract Termination | 185 .11 | 183 .66 | 1 .45 | 0 .0 | 0 .0 | 0 .0 | false | false |
2373+ When Loan Pay-off is made on "01 March 2024"
2374+ Then Loan is closed with zero outstanding balance and it's all installments have obligations met
2375+
2376+ @TestRailId:C4565 @AdvancedPaymentAllocation
2377+ Scenario : Verify full term tranche interest bearing progressive loan - second disbursement mid-period - contract termination - UC8.1
2378+ When Admin sets the business date to "01 January 2024"
2379+ When Admin creates a client with random data
2380+ When Admin creates a fully customized loan with the following data:
2381+ | 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 |
2382+ | LP2_ADV_PYMNT_INTEREST_DAILY_EMI_360_30_INTEREST_RECALC_DAILY_MULTIDISBURSE_FULL_TERM_TRANCHE | 01 January 2024 | 200 | 9 .4822 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 6 | MONTHS | 1 | MONTHS | 6 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
2383+ And Admin successfully approves the loan on "01 January 2024" with "200" amount and expected disbursement date on "01 January 2024"
2384+ When Admin successfully disburse the loan on "01 January 2024" with "100" EUR transaction amount
2385+ Then Loan Repayment schedule has 6 periods, with the following data for periods:
2386+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
2387+ | | | 01 January 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
2388+ | 1 | 31 | 01 February 2024 | | 83 .66 | 16 .34 | 0 .79 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2389+ | 2 | 29 | 01 March 2024 | | 67 .19 | 16 .47 | 0 .66 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2390+ | 3 | 31 | 01 April 2024 | | 50 .59 | 16 .6 | 0 .53 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2391+ | 4 | 30 | 01 May 2024 | | 33 .86 | 16 .73 | 0 .4 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2392+ | 5 | 31 | 01 June 2024 | | 17 .0 | 16 .86 | 0 .27 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2393+ | 6 | 30 | 01 July 2024 | | 0 .0 | 17 .0 | 0 .13 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2394+ Then Loan Repayment schedule has the following data in Total row:
2395+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
2396+ | 100 .0 | 2 .78 | 0 .0 | 0 .0 | 102 .78 | 0 .0 | 0 .0 | 0 .0 | 102 .78 |
2397+ Then Loan Transactions tab has the following data:
2398+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
2399+ | 01 January 2024 | Disbursement | 100 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 100 .0 | false | false |
2400+ # --- 2nd disbursement mid-period (Feb 15) ---
2401+ When Admin sets the business date to "15 February 2024"
2402+ When Admin successfully disburse the loan on "15 February 2024" with "100" EUR transaction amount
2403+ Then Loan Repayment schedule has 7 periods, with the following data for periods:
2404+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
2405+ | | | 01 January 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
2406+ | 1 | 31 | 01 February 2024 | | 83 .66 | 16 .34 | 0 .79 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2407+ | | | 15 February 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
2408+ | 2 | 29 | 01 March 2024 | | 150 .59 | 33 .07 | 1 .13 | 0 .0 | 0 .0 | 34 .2 | 0 .0 | 0 .0 | 0 .0 | 34 .2 |
2409+ | 3 | 31 | 01 April 2024 | | 117 .58 | 33 .01 | 1 .19 | 0 .0 | 0 .0 | 34 .2 | 0 .0 | 0 .0 | 0 .0 | 34 .2 |
2410+ | 4 | 30 | 01 May 2024 | | 84 .31 | 33 .27 | 0 .93 | 0 .0 | 0 .0 | 34 .2 | 0 .0 | 0 .0 | 0 .0 | 34 .2 |
2411+ | 5 | 31 | 01 June 2024 | | 50 .78 | 33 .53 | 0 .67 | 0 .0 | 0 .0 | 34 .2 | 0 .0 | 0 .0 | 0 .0 | 34 .2 |
2412+ | 6 | 30 | 01 July 2024 | | 16 .92 | 33 .86 | 0 .4 | 0 .0 | 0 .0 | 34 .26 | 0 .0 | 0 .0 | 0 .0 | 34 .26 |
2413+ | 7 | 31 | 01 August 2024 | | 0 .0 | 16 .92 | 0 .13 | 0 .0 | 0 .0 | 17 .05 | 0 .0 | 0 .0 | 0 .0 | 17 .05 |
2414+ Then Loan Repayment schedule has the following data in Total row:
2415+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
2416+ | 200 .0 | 5 .24 | 0 .0 | 0 .0 | 205 .24 | 0 .0 | 0 .0 | 0 .0 | 205 .24 |
2417+ Then Loan Transactions tab has the following data:
2418+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
2419+ | 01 January 2024 | Disbursement | 100 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 100 .0 | false | false |
2420+ | 15 February 2024 | Disbursement | 100 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 200 .0 | false | false |
2421+ When Admin sets the business date to "01 March 2024"
2422+ And Admin successfully terminates loan contract
2423+ Then Loan Repayment schedule has 2 periods, with the following data for periods:
2424+ | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
2425+ | | | 01 January 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
2426+ | 1 | 31 | 01 February 2024 | | 83 .66 | 16 .34 | 0 .79 | 0 .0 | 0 .0 | 17 .13 | 0 .0 | 0 .0 | 0 .0 | 17 .13 |
2427+ | | | 15 February 2024 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
2428+ | 2 | 29 | 01 March 2024 | | 0 .0 | 183 .66 | 1 .2 | 0 .0 | 0 .0 | 184 .86 | 0 .0 | 0 .0 | 0 .0 | 184 .86 |
2429+ Then Loan Repayment schedule has the following data in Total row:
2430+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
2431+ | 200 .0 | 1 .99 | 0 .0 | 0 .0 | 201 .99 | 0 .0 | 0 .0 | 0 .0 | 201 .99 |
2432+ Then Loan Transactions tab has the following data:
2433+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance | Reverted | Replayed |
2434+ | 01 January 2024 | Disbursement | 100 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 100 .0 | false | false |
2435+ | 15 February 2024 | Disbursement | 100 .0 | 0 .0 | 0 .0 | 0 .0 | 0 .0 | 200 .0 | false | false |
2436+ | 01 March 2024 | Accrual | 1 .99 | 0 .0 | 1 .99 | 0 .0 | 0 .0 | 0 .0 | false | false |
2437+ | 01 March 2024 | Contract Termination | 201 .99 | 200 .0 | 1 .99 | 0 .0 | 0 .0 | 0 .0 | false | false |
2438+ When Loan Pay-off is made on "01 March 2024"
2439+ Then Loan is closed with zero outstanding balance and it's all installments have obligations met
0 commit comments