@@ -9949,3 +9949,130 @@ Feature: Charge-off
99499949 Then Loan Repayment schedule has the following data in Total row:
99509950 | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
99519951 | 546.14 | 24.69 | 0.0 | 10.0 | 580.83 | 308.59 | 308.59 | 0.0 | 272.24 |
9952+
9953+ @TestRailId:C4153
9954+ Scenario: Verify that totalUnpaidPayableNotDueInterest doesn't get reset to 0 on the charge-off date
9955+ When Admin sets the business date to "01 May 2025"
9956+ And Admin creates a client with random data
9957+ And Admin creates a fully customized loan with the following data:
9958+ | 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 |
9959+ | LP2_ADV_PYMNT_360_30_ZERO_INTEREST_CHARGE_OFF_ACCRUAL_ACTIVITY | 01 May 2025 | 423.38 | 12.25 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 24 | MONTHS | 1 | MONTHS | 24 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
9960+ And Admin successfully approves the loan on "01 May 2025" with "423.38" amount and expected disbursement date on "01 May 2025"
9961+ And Admin successfully disburse the loan on "01 May 2025" with "423.38" EUR transaction amount
9962+ Then Loan Repayment schedule has the following data in Total row:
9963+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
9964+ | 423.38 | 56.13 | 0.0 | 0.0 | 479.51 | 0.0 | 0.0 | 0.0 | 479.51 |
9965+ Then Loan Transactions tab has the following data:
9966+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
9967+ | 01 May 2025 | Disbursement | 423.38 | 0.0 | 0.0 | 0.0 | 0.0 | 423.38 |
9968+ When Admin sets the business date to "01 June 2025"
9969+ When Customer makes "REPAYMENT" transaction with "AUTOPAY" payment type on "01 June 2025" with 19.98 EUR transaction amount and system-generated Idempotency key
9970+ Then Loan Repayment schedule has the following data in Total row:
9971+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
9972+ | 423.38 | 56.13 | 0.0 | 0.0 | 479.51 | 19.98 | 0.0 | 0.0 | 459.53 |
9973+ Then Loan Transactions tab has the following data:
9974+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
9975+ | 01 May 2025 | Disbursement | 423.38 | 0.0 | 0.0 | 0.0 | 0.0 | 423.38 |
9976+ | 01 June 2025 | Repayment | 19.98 | 15.66 | 4.32 | 0.0 | 0.0 | 407.72 |
9977+ When Admin sets the business date to "01 July 2025"
9978+ When Customer makes "REPAYMENT" transaction with "AUTOPAY" payment type on "01 July 2025" with 19.98 EUR transaction amount and system-generated Idempotency key
9979+ Then Loan Repayment schedule has the following data in Total row:
9980+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
9981+ | 423.38 | 56.13 | 0.0 | 0.0 | 479.51 | 39.96 | 0.0 | 0.0 | 439.55 |
9982+ Then Loan Transactions tab has the following data:
9983+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
9984+ | 01 May 2025 | Disbursement | 423.38 | 0.0 | 0.0 | 0.0 | 0.0 | 423.38 |
9985+ | 01 June 2025 | Repayment | 19.98 | 15.66 | 4.32 | 0.0 | 0.0 | 407.72 |
9986+ | 01 July 2025 | Repayment | 19.98 | 15.82 | 4.16 | 0.0 | 0.0 | 391.9 |
9987+ When Admin sets the business date to "08 October 2025"
9988+ When Admin runs inline COB job for Loan
9989+ Then Loan has 11.51 total unpaid payable due interest
9990+ Then Loan has 0.79 total unpaid payable not due interest
9991+ Then Loan Repayment schedule has the following data in Total row:
9992+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
9993+ | 423.38 | 56.13 | 0.0 | 0.0 | 479.51 | 39.96 | 0.0 | 0.0 | 439.55 |
9994+ Then Loan Transactions tab has the following data:
9995+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
9996+ | 01 May 2025 | Disbursement | 423.38 | 0.0 | 0.0 | 0.0 | 0.0 | 423.38 |
9997+ | 01 June 2025 | Repayment | 19.98 | 15.66 | 4.32 | 0.0 | 0.0 | 407.72 |
9998+ | 01 June 2025 | Accrual Activity | 4.32 | 0.0 | 4.32 | 0.0 | 0.0 | 0.0 |
9999+ | 01 July 2025 | Repayment | 19.98 | 15.82 | 4.16 | 0.0 | 0.0 | 391.9 |
10000+ | 01 July 2025 | Accrual Activity | 4.16 | 0.0 | 4.16 | 0.0 | 0.0 | 0.0 |
10001+ | 01 August 2025 | Accrual Activity | 4.0 | 0.0 | 4.0 | 0.0 | 0.0 | 0.0 |
10002+ | 01 September 2025 | Accrual Activity | 3.84 | 0.0 | 3.84 | 0.0 | 0.0 | 0.0 |
10003+ | 01 October 2025 | Accrual Activity | 3.67 | 0.0 | 3.67 | 0.0 | 0.0 | 0.0 |
10004+ | 07 October 2025 | Accrual | 20.67 | 0.0 | 20.67 | 0.0 | 0.0 | 0.0 |
10005+ And Admin does charge-off the loan on "08 October 2025"
10006+ Then Loan has 11.51 total unpaid payable due interest
10007+ Then Loan has 0.79 total unpaid payable not due interest
10008+ Then Loan Repayment schedule has the following data in Total row:
10009+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
10010+ | 423.38 | 20.78 | 0.0 | 0.0 | 444.16 | 39.96 | 0.0 | 0.0 | 404.2 |
10011+ Then Loan Transactions tab has the following data:
10012+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
10013+ | 01 May 2025 | Disbursement | 423.38 | 0.0 | 0.0 | 0.0 | 0.0 | 423.38 |
10014+ | 01 June 2025 | Repayment | 19.98 | 15.66 | 4.32 | 0.0 | 0.0 | 407.72 |
10015+ | 01 June 2025 | Accrual Activity | 4.32 | 0.0 | 4.32 | 0.0 | 0.0 | 0.0 |
10016+ | 01 July 2025 | Repayment | 19.98 | 15.82 | 4.16 | 0.0 | 0.0 | 391.9 |
10017+ | 01 July 2025 | Accrual Activity | 4.16 | 0.0 | 4.16 | 0.0 | 0.0 | 0.0 |
10018+ | 01 August 2025 | Accrual Activity | 4.0 | 0.0 | 4.0 | 0.0 | 0.0 | 0.0 |
10019+ | 01 September 2025 | Accrual Activity | 3.84 | 0.0 | 3.84 | 0.0 | 0.0 | 0.0 |
10020+ | 01 October 2025 | Accrual Activity | 3.67 | 0.0 | 3.67 | 0.0 | 0.0 | 0.0 |
10021+ | 07 October 2025 | Accrual | 20.67 | 0.0 | 20.67 | 0.0 | 0.0 | 0.0 |
10022+ | 08 October 2025 | Accrual | 0.11 | 0.0 | 0.11 | 0.0 | 0.0 | 0.0 |
10023+ | 08 October 2025 | Charge-off | 404.2 | 391.9 | 12.3 | 0.0 | 0.0 | 0.0 |
10024+
10025+ @TestRailId:C4228
10026+ Scenario: Verify that totalUnpaidPayableNotDueInterest is correct when charge-off falls on a due date of an open repayment period
10027+ When Admin sets the business date to "01 May 2025"
10028+ And Admin creates a client with random data
10029+ And Admin creates a fully customized loan with the following data:
10030+ | 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 |
10031+ | LP2_ADV_PYMNT_360_30_ZERO_INTEREST_CHARGE_OFF_ACCRUAL_ACTIVITY | 01 May 2025 | 423.38 | 12.25 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 24 | MONTHS | 1 | MONTHS | 24 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
10032+ And Admin successfully approves the loan on "01 May 2025" with "423.38" amount and expected disbursement date on "01 May 2025"
10033+ And Admin successfully disburse the loan on "01 May 2025" with "423.38" EUR transaction amount
10034+ Then Loan Repayment schedule has the following data in Total row:
10035+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
10036+ | 423.38 | 56.13 | 0.0 | 0.0 | 479.51 | 0.0 | 0.0 | 0.0 | 479.51 |
10037+ Then Loan Transactions tab has the following data:
10038+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
10039+ | 01 May 2025 | Disbursement | 423.38 | 0.0 | 0.0 | 0.0 | 0.0 | 423.38 |
10040+ When Admin sets the business date to "01 June 2025"
10041+ When Customer makes "REPAYMENT" transaction with "AUTOPAY" payment type on "01 June 2025" with 19.98 EUR transaction amount and system-generated Idempotency key
10042+ Then Loan Repayment schedule has the following data in Total row:
10043+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
10044+ | 423.38 | 56.13 | 0.0 | 0.0 | 479.51 | 19.98 | 0.0 | 0.0 | 459.53 |
10045+ Then Loan Transactions tab has the following data:
10046+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
10047+ | 01 May 2025 | Disbursement | 423.38 | 0.0 | 0.0 | 0.0 | 0.0 | 423.38 |
10048+ | 01 June 2025 | Repayment | 19.98 | 15.66 | 4.32 | 0.0 | 0.0 | 407.72 |
10049+ When Admin sets the business date to "01 July 2025"
10050+ When Customer makes "REPAYMENT" transaction with "AUTOPAY" payment type on "01 July 2025" with 19.98 EUR transaction amount and system-generated Idempotency key
10051+ Then Loan Repayment schedule has the following data in Total row:
10052+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
10053+ | 423.38 | 56.13 | 0.0 | 0.0 | 479.51 | 39.96 | 0.0 | 0.0 | 439.55 |
10054+ Then Loan Transactions tab has the following data:
10055+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
10056+ | 01 May 2025 | Disbursement | 423.38 | 0.0 | 0.0 | 0.0 | 0.0 | 423.38 |
10057+ | 01 June 2025 | Repayment | 19.98 | 15.66 | 4.32 | 0.0 | 0.0 | 407.72 |
10058+ | 01 July 2025 | Repayment | 19.98 | 15.82 | 4.16 | 0.0 | 0.0 | 391.9 |
10059+ When Admin sets the business date to "01 October 2025"
10060+ When Admin runs inline COB job for Loan
10061+ Then Loan has 11.51 total unpaid payable due interest
10062+ Then Loan has 0.0 total unpaid payable not due interest
10063+ Then Loan Repayment schedule has the following data in Total row:
10064+ | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
10065+ | 423.38 | 56.13 | 0.0 | 0.0 | 479.51 | 39.96 | 0.0 | 0.0 | 439.55 |
10066+ Then Loan Transactions tab has the following data:
10067+ | Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
10068+ | 01 May 2025 | Disbursement | 423.38 | 0.0 | 0.0 | 0.0 | 0.0 | 423.38 |
10069+ | 01 June 2025 | Repayment | 19.98 | 15.66 | 4.32 | 0.0 | 0.0 | 407.72 |
10070+ | 01 June 2025 | Accrual Activity | 4.32 | 0.0 | 4.32 | 0.0 | 0.0 | 0.0 |
10071+ | 01 July 2025 | Repayment | 19.98 | 15.82 | 4.16 | 0.0 | 0.0 | 391.9 |
10072+ | 01 July 2025 | Accrual Activity | 4.16 | 0.0 | 4.16 | 0.0 | 0.0 | 0.0 |
10073+ | 01 August 2025 | Accrual Activity | 4.0 | 0.0 | 4.0 | 0.0 | 0.0 | 0.0 |
10074+ | 01 September 2025 | Accrual Activity | 3.84 | 0.0 | 3.84 | 0.0 | 0.0 | 0.0 |
10075+ | 30 September 2025 | Accrual | 19.87 | 0.0 | 19.87 | 0.0 | 0.0 | 0.0 |
10076+ And Admin does charge-off the loan on "01 October 2025"
10077+ Then Loan has 11.51 total unpaid payable due interest
10078+ Then Loan has 0.0 total unpaid payable not due interest
0 commit comments