FINERACT-2181: Accruals on accounts where charge adjustments and refunds are done on the same day causing duplicate journal entries
This commit is contained in:
committed by
Adam Saghy
parent
5649aa3ded
commit
496e37e3d4
@@ -501,8 +501,6 @@ Feature: Loan
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 450.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 450.0 | |
|
||||
Then Loan Transactions tab has a "REPAYMENT" transaction with date "05 January 2023" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 100.0 |
|
||||
| LIABILITY | l1 | Overpayment account | | 200.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 300.0 | |
|
||||
@@ -544,8 +542,6 @@ Feature: Loan
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 450.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 450.0 | |
|
||||
Then Loan Transactions tab has a "REPAYMENT" transaction with date "05 January 2023" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 300.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 300.0 | |
|
||||
|
||||
@@ -686,8 +682,6 @@ Feature: Loan
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 450.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 450.0 | |
|
||||
Then Loan Transactions tab has a "REPAYMENT" transaction with date "05 January 2023" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 100.0 |
|
||||
| LIABILITY | l1 | Overpayment account | | 200.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 300.0 | |
|
||||
@@ -729,8 +723,6 @@ Feature: Loan
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 700.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 700.0 | |
|
||||
Then Loan Transactions tab has a "REPAYMENT" transaction with date "05 January 2023" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 300.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 300.0 | |
|
||||
|
||||
|
||||
+25
-1
@@ -1566,4 +1566,28 @@ Feature: LoanAccrualTransaction
|
||||
| 19 February 2025 | Repayment | 376.21 | 272.65 | 103.56 | 0.0 | 0.0 | 3477.35 | false | false |
|
||||
| 20 February 2025 | Merchant Issued Refund | 1881.05 | 1881.05 | 0.0 | 0.0 | 0.0 | 1596.3 | false | false |
|
||||
| 20 February 2025 | Accrual | 3.7 | 0.0 | 3.7 | 0.0 | 0.0 | 0.0 | false | false |
|
||||
| 21 February 2025 | Accrual | 3.7 | 0.0 | 3.7 | 0.0 | 0.0 | 0.0 | false | false |
|
||||
| 21 February 2025 | Accrual | 3.7 | 0.0 | 3.7 | 0.0 | 0.0 | 0.0 | false | false |
|
||||
|
||||
@TestRailId:C3733
|
||||
Scenario: Accruals on accounts where charge adjustments and refunds are done on the same day should not cause duplicate journal entries
|
||||
When Admin sets the business date to "12 May 2025"
|
||||
And 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_PYMNT_360_30_INTEREST_RECALCULATION_ZERO_INTEREST_CHARGE_OFF_ACCRUAL_ACTIVITY | 12 May 2025 | 50 | 12.19 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 1 | MONTHS | 1 | MONTHS | 1 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
|
||||
And Admin successfully approves the loan on "12 May 2025" with "50" amount and expected disbursement date on "12 May 2025"
|
||||
And Admin successfully disburse the loan on "12 May 2025" with "48.25" EUR transaction amount
|
||||
When Admin adds "LOAN_NSF_FEE" due date charge with "12 May 2025" due date and 1.30 EUR transaction amount
|
||||
And Admin makes a charge adjustment for the last "LOAN_NSF_FEE" type charge which is due on "12 May 2025" with 1.30 EUR transaction amount and externalId ""
|
||||
When Admin makes "PAYOUT_REFUND" transaction with "AUTOPAY" payment type on "12 May 2025" with 48.25 EUR transaction amount
|
||||
Then Loan Transactions tab has the following data:
|
||||
| Transaction date | Transaction Type | Amount | Principal | Interest | Fees | Penalties | Loan Balance |
|
||||
| 12 May 2025 | Disbursement | 48.25 | 0.0 | 0.0 | 0.0 | 0.0 | 48.25 |
|
||||
| 12 May 2025 | Charge Adjustment | 1.3 | 0.0 | 0.0 | 0.0 | 1.3 | 48.25 |
|
||||
| 12 May 2025 | Payout Refund | 48.25 | 48.25 | 0.0 | 0.0 | 0.0 | 0.0 |
|
||||
| 12 May 2025 | Accrual | 1.3 | 0.0 | 0.0 | 0.0 | 1.3 | 0.0 |
|
||||
| 12 May 2025 | Accrual Activity | 1.3 | 0.0 | 0.0 | 0.0 | 1.3 | 0.0 |
|
||||
Then Loan Transactions tab has a "ACCRUAL" transaction with date "12 May 2025" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 1.3 | |
|
||||
| INCOME | 404007 | Fee Income | | 1.3 |
|
||||
@@ -37,8 +37,6 @@ Feature: Credit Balance Refund
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 500.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 500.0 | |
|
||||
Then Loan Transactions tab has a "REPAYMENT" transaction with date "05 January 2023" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 500.0 |
|
||||
| LIABILITY | l1 | Overpayment account | | 100.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 600.0 | |
|
||||
@@ -78,8 +76,6 @@ Feature: Credit Balance Refund
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 450.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 450.0 | |
|
||||
Then Loan Transactions tab has a "REPAYMENT" transaction with date "05 January 2023" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 100.0 |
|
||||
| LIABILITY | l1 | Overpayment account | | 200.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 300.0 | |
|
||||
@@ -1410,6 +1406,8 @@ Feature: Credit Balance Refund
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 100.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 100.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | 100.0 | |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | | 100.0 |
|
||||
Then Loan Transactions tab has a "CHARGE_OFF" transaction with date "03 January 2024" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 750.0 |
|
||||
|
||||
@@ -350,14 +350,12 @@ Feature: LoanCharge
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 2.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 3.0 |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
Then Loan Transactions tab has a "ACCRUAL" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 9.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 9.0 |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
# --- Backdated repayment with 507 EUR ---
|
||||
And Customer makes "AUTOPAY" repayment on "31 October 2022" with 507 EUR transaction amount
|
||||
Then Loan has 500 outstanding amount
|
||||
@@ -408,14 +406,12 @@ Feature: LoanCharge
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 2.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 3.0 |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
Then Loan Transactions tab has a "ACCRUAL" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 9.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 9.0 |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
# --- charge adjustment for nsf fee with 5 ---
|
||||
When Admin makes a charge adjustment for the last "LOAN_NSF_FEE" type charge which is due on "23 October 2022" with 5 EUR transaction amount and externalId ""
|
||||
Then Loan has 495 outstanding amount
|
||||
@@ -467,18 +463,14 @@ Feature: LoanCharge
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 2.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 3.0 |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | | 5.0 |
|
||||
| INCOME | 404007 | Fee Income | 5.0 | |
|
||||
Then Loan Transactions tab has a "ACCRUAL" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 9.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 9.0 |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 5.0 |
|
||||
| INCOME | 404007 | Fee Income | 5.0 | |
|
||||
# --- Backdated repayment with 494 EUR ---
|
||||
And Customer makes "AUTOPAY" repayment on "1 November 2022" with 494 EUR transaction amount
|
||||
Then Loan has 1 outstanding amount
|
||||
@@ -535,18 +527,14 @@ Feature: LoanCharge
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 2.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 3.0 |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | | 5.0 |
|
||||
| INCOME | 404007 | Fee Income | 5.0 | |
|
||||
Then Loan Transactions tab has a "ACCRUAL" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 9.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 9.0 |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 5.0 |
|
||||
| INCOME | 404007 | Fee Income | 5.0 | |
|
||||
# --- charge adjustment for snooze fee with 1 ---
|
||||
When Admin makes a charge adjustment for the last "LOAN_SNOOZE_FEE" type charge which is due on "27 October 2022" with 1 EUR transaction amount and externalId ""
|
||||
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
|
||||
@@ -605,22 +593,16 @@ Feature: LoanCharge
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 2.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 3.0 |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | | 5.0 |
|
||||
| INCOME | 404007 | Fee Income | 5.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
Then Loan Transactions tab has a "ACCRUAL" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 9.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 9.0 |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 5.0 |
|
||||
| INCOME | 404007 | Fee Income | 5.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
# --- revert last charge adjustment (was amount 1) ---
|
||||
When Admin reverts the charge adjustment which was raised on "04 November 2022" with 1 EUR transaction amount
|
||||
Then Loan status will be "ACTIVE"
|
||||
@@ -679,24 +661,18 @@ Feature: LoanCharge
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 2.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 3.0 |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | | 5.0 |
|
||||
| INCOME | 404007 | Fee Income | 5.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 1.0 |
|
||||
Then Loan Transactions tab has a "ACCRUAL" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 9.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 9.0 |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 5.0 |
|
||||
| INCOME | 404007 | Fee Income | 5.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 1.0 |
|
||||
# --- charge adjustment for nsf fee with 1 ---
|
||||
When Admin makes a charge adjustment for the last "LOAN_NSF_FEE" type charge which is due on "23 October 2022" with 1 EUR transaction amount and externalId ""
|
||||
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
|
||||
@@ -756,28 +732,20 @@ Feature: LoanCharge
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 2.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 3.0 |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | | 5.0 |
|
||||
| INCOME | 404007 | Fee Income | 5.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 1.0 |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
Then Loan Transactions tab has a "ACCRUAL" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 9.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 9.0 |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 5.0 |
|
||||
| INCOME | 404007 | Fee Income | 5.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 1.0 |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
# --- charge adjustment for nsf fee with 2 ---
|
||||
When Admin makes a charge adjustment for the last "LOAN_NSF_FEE" type charge which is due on "23 October 2022" with 2 EUR transaction amount and externalId ""
|
||||
Then Loan status will be "OVERPAID"
|
||||
@@ -831,39 +799,29 @@ Feature: LoanCharge
|
||||
| ASSET | 112601 | Loans Receivable | | 494.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 494.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | | 2.0 |
|
||||
| INCOME | 404007 | Fee Income | 3.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 2.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 3.0 |
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | | 2.0 |
|
||||
| INCOME | 404007 | Fee Income | 3.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 2.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 3.0 |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | | 5.0 |
|
||||
| INCOME | 404007 | Fee Income | 5.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 1.0 |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
| LIABILITY | l1 | Overpayment account | | 2.0 |
|
||||
| INCOME | 404007 | Fee Income | 2.0 | |
|
||||
Then Loan Transactions tab has a "ACCRUAL" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 9.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 9.0 |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 5.0 |
|
||||
| INCOME | 404007 | Fee Income | 5.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 1.0 |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| LIABILITY | l1 | Overpayment account | | 2.0 |
|
||||
| INCOME | 404007 | Fee Income | 2.0 | |
|
||||
# --- revert last charge adjustment (was amount 2) ---
|
||||
When Admin reverts the charge adjustment which was raised on "04 November 2022" with 2 EUR transaction amount
|
||||
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
|
||||
@@ -917,41 +875,31 @@ Feature: LoanCharge
|
||||
| ASSET | 112601 | Loans Receivable | | 494.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 494.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | | 2.0 |
|
||||
| INCOME | 404007 | Fee Income | 3.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 2.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 3.0 |
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | | 2.0 |
|
||||
| INCOME | 404007 | Fee Income | 3.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 2.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 3.0 |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | | 5.0 |
|
||||
| INCOME | 404007 | Fee Income | 5.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 1.0 |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
| LIABILITY | l1 | Overpayment account | | 2.0 |
|
||||
| INCOME | 404007 | Fee Income | 2.0 | |
|
||||
| LIABILITY | l1 | Overpayment account | 2.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 2.0 |
|
||||
Then Loan Transactions tab has a "ACCRUAL" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 9.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 9.0 |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 4.0 |
|
||||
| INCOME | 404007 | Fee Income | 4.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 5.0 |
|
||||
| INCOME | 404007 | Fee Income | 5.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
| ASSET | 112601 | Loans Receivable | 1.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 1.0 |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 1.0 |
|
||||
| INCOME | 404007 | Fee Income | 1.0 | |
|
||||
Then Loan Transactions tab has a "CHARGE_ADJUSTMENT" transaction with date "04 November 2022" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| LIABILITY | l1 | Overpayment account | | 2.0 |
|
||||
| INCOME | 404007 | Fee Income | 2.0 | |
|
||||
| LIABILITY | l1 | Overpayment account | 2.0 | |
|
||||
| INCOME | 404007 | Fee Income | | 2.0 |
|
||||
|
||||
@TestRailId:C2532
|
||||
Scenario: Verify that charge can be added to loan on disbursement date (loan status is 'active')
|
||||
@@ -5386,8 +5334,9 @@ Feature: LoanCharge
|
||||
| 03 March 2024 | Repayment (at time of disbursement) | 5.0 | 0.0 | 0.0 | 5.0 | 0.0 | 167.05 | false | false |
|
||||
| 03 March 2024 | Accrual | 1.1 | 0.0 | 1.1 | 0.0 | 0.0 | 0.0 | false | false |
|
||||
Then Loan Transactions tab has a "ACCRUAL" transaction with date "03 March 2024" which has the following Journal entries:
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 1.1 | |
|
||||
| INCOME | 404000 | Interest Income | | 1.1 |
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | 1.1 | |
|
||||
| INCOME | 404000 | Interest Income | | 1.1 |
|
||||
# Undo disbursement
|
||||
When Admin successfully undo disbursal
|
||||
Then Loan status has changed to "Approved"
|
||||
|
||||
-2
@@ -392,8 +392,6 @@ Feature: LoanInterestWaiver
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112601 | Loans Receivable | | 250.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 250.0 | |
|
||||
Then Loan Transactions tab has a "REPAYMENT" transaction with date "01 February 2024" which has the following Journal entries:
|
||||
| Type | Account code | Account name | Debit | Credit |
|
||||
| ASSET | 112603 | Interest/Fee Receivable | | 10.0 |
|
||||
| LIABILITY | 145023 | Suspense/Clearing account | 10.0 | |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user