[
https://issues.apache.org/jira/browse/FINERACT-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Dailey updated FINERACT-2041:
-----------------------------------
Fix Version/s: 1.10.1
> summary - totalRepaymentTransaction doesnt include downpayment amount
> ---------------------------------------------------------------------
>
> Key: FINERACT-2041
> URL: https://issues.apache.org/jira/browse/FINERACT-2041
> Project: Apache Fineract
> Issue Type: Bug
> Reporter: Norbert Táskai
> Priority: Major
> Fix For: 1.10.0, 1.10.1
>
>
> *Steps to reproduce:*
> # Create Loan, approve
> # Disburse $1000 with downpayment enabled
> # Get Loan - {{summary.totalRepaymentTransaction}} field returns as 0
>
> {{{ "id": 44,
> "accountNo": "000000044",
> "externalId": "a1053484-3fdb-46a5-9cf9-4a087577de3d",
> "status": \{
> "id": 300,
> "code": "loanStatusType.active",
> "value": "Active",
> "pendingApproval": false,
> "waitingForDisbursal": false,
> "active": true,
> "closedObligationsMet": false,
> "closedWrittenOff": false,
> "closedRescheduled": false,
> "closed": false,
> "overpaid": false
> },
> "clientId": 34,
> "clientAccountNo": "000000034",
> "clientName": "Johny Victor",
> "clientExternalId": "100a0a1a-292c-4076-b11a-882bbafd4eda",
> "clientOfficeId": 1,
> "loanProductId": 1,
> "loanProductName": "GPL_US_PI4",
> "loanProductDescription": "Global Pay Later - US - 4 Installment over 45
> Days",
> "isLoanProductLinkedToFloatingRate": false,
> "loanType": \{
> "id": 1,
> "code": "accountType.individual",
> "value": "Individual"
> },
> "currency": \{
> "code": "USD",
> "name": "US Dollar",
> "decimalPlaces": 2,
> "inMultiplesOf": 0,
> "displaySymbol": "$",
> "nameCode": "currency.USD",
> "displayLabel": "US Dollar ($)"
> },
> "principal": 900.000000,
> "approvedPrincipal": 900.000000,
> "proposedPrincipal": 900.000000,
> "netDisbursalAmount": 300.000000,
> "termFrequency": 45,
> "termPeriodFrequencyType": \{
> "id": 0,
> "code": "termFrequency.periodFrequencyType.days",
> "value": "Days"
> },
> "numberOfRepayments": 3,
> "repaymentEvery": 15,
> "repaymentFrequencyType": \{
> "id": 0,
> "code": "repaymentFrequency.periodFrequencyType.days",
> "value": "Days"
> },
> "interestRatePerPeriod": 0.000000,
> "interestRateFrequencyType": \{
> "id": 5,
> "code": "periodFrequencyType.invalid",
> "value": "Invalid"
> },
> "annualInterestRate": 0.000000,
> "isFloatingInterestRate": false,
> "amortizationType": \{
> "id": 1,
> "code": "amortizationType.equal.installments",
> "value": "Equal installments"
> },
> "interestType": \{
> "id": 0,
> "code": "interestType.declining.balance",
> "value": "Declining Balance"
> },
> "interestCalculationPeriodType": \{
> "id": 0,
> "code": "interestCalculationPeriodType.daily",
> "value": "Daily"
> },
> "allowPartialPeriodInterestCalculation": false,
> "transactionProcessingStrategyCode":
> "advanced-payment-allocation-strategy",
> "transactionProcessingStrategyName": "Advanced payment allocation
> strategy",
> "syncDisbursementWithMeeting": false,
> "disallowExpectedDisbursements": true,
> "timeline": \{
> "submittedOnDate": [
> 2024,
> 1,
> 7
> ],
> "submittedByUsername": "crpadapteruser",
> "submittedByFirstname": "crpadapteruser",
> "submittedByLastname": "crpadapteruser",
> "approvedOnDate": [
> 2024,
> 1,
> 7
> ],
> "approvedByUsername": "crpadapteruser",
> "approvedByFirstname": "crpadapteruser",
> "approvedByLastname": "crpadapteruser",
> "expectedDisbursementDate": [
> 2024,
> 1,
> 7
> ],
> "actualDisbursementDate": [
> 2024,
> 1,
> 7
> ],
> "disbursedByUsername": "crpadapteruser",
> "disbursedByFirstname": "crpadapteruser",
> "disbursedByLastname": "crpadapteruser",
> "actualMaturityDate": [
> 2024,
> 2,
> 21
> ],
> "expectedMaturityDate": [
> 2024,
> 2,
> 21
> ]
> },
> "summary": \{
> "currency": {
> "code": "USD",
> "name": "US Dollar",
> "decimalPlaces": 2,
> "inMultiplesOf": 0,
> "displaySymbol": "$",
> "nameCode": "currency.USD",
> "displayLabel": "US Dollar ($)"
> },
> "principalDisbursed": 900.000000,
> "principalAdjustments": 5.000000,
> "principalPaid": 250.000000,
> "principalWrittenOff": 0.000000,
> "principalOutstanding": 655.000000,
> "principalOverdue": 0,
> "interestCharged": 0.000000,
> "interestPaid": 0.000000,
> "interestWaived": 0.000000,
> "interestWrittenOff": 0.000000,
> "interestOutstanding": 0.000000,
> "interestOverdue": 0,
> "feeChargesCharged": 0.000000,
> "feeChargesDueAtDisbursementCharged": 0.000000,
> "feeChargesPaid": 0.000000,
> "feeChargesWaived": 0.000000,
> "feeChargesWrittenOff": 0.000000,
> "feeChargesOutstanding": 0.000000,
> "feeChargesOverdue": 0,
> "penaltyChargesCharged": 0.000000,
> "penaltyChargesPaid": 0.000000,
> "penaltyChargesWaived": 0.000000,
> "penaltyChargesWrittenOff": 0.000000,
> "penaltyChargesOutstanding": 0.000000,
> "penaltyChargesOverdue": 0,
> "totalExpectedRepayment": 900.000000,
> "totalRepayment": 250.000000,
> "totalExpectedCostOfLoan": 0.000000,
> "totalCostOfLoan": 0.000000,
> "totalWaived": 0.000000,
> "totalWrittenOff": 0.000000,
> "totalOutstanding": 655.000000,
> "totalOverdue": 0,
> "totalRecovered": 0,
> "totalMerchantRefund": 0,
> "totalMerchantRefundReversed": 0,
> "totalPayoutRefund": 0,
> "totalPayoutRefundReversed": 0,
> "totalGoodwillCredit": 0,
> "totalGoodwillCreditReversed": 0,
> "totalChargeAdjustment": 0,
> "totalChargeAdjustmentReversed": 0,
> "totalChargeback": 5.000000,
> "totalCreditBalanceRefund": 0,
> "totalCreditBalanceRefundReversed": 0,
> "totalRepaymentTransaction": 25.000000,
> "totalRepaymentTransactionReversed": 0
> },
>
> "transactions": [
> \{
> "id": 56,
> "loanId": 44,
> "externalLoanId": "a1053484-3fdb-46a5-9cf9-4a087577de3d",
> "officeId": 1,
> "officeName": "Head Office",
> "type": {
> "id": 1,
> "code": "loanTransactionType.disbursement",
> "value": "Disbursement",
> "disbursement": true,
> "repaymentAtDisbursement": false,
> "repayment": false,
> "merchantIssuedRefund": false,
> "payoutRefund": false,
> "goodwillCredit": false,
> "chargeRefund": false,
> "contra": false,
> "waiveInterest": false,
> "waiveCharges": false,
> "accrual": false,
> "writeOff": false,
> "recoveryRepayment": false,
> "initiateTransfer": false,
> "approveTransfer": false,
> "withdrawTransfer": false,
> "rejectTransfer": false,
> "chargePayment": false,
> "refund": false,
> "refundForActiveLoans": false,
> "creditBalanceRefund": false,
> "chargeAdjustment": false,
> "chargeback": false,
> "chargeoff": false,
> "downPayment": false
> },
> "date": [
> 2024,
> 1,
> 7
> ],
> "currency": \{
> "code": "USD",
> "name": "US Dollar",
> "decimalPlaces": 2,
> "inMultiplesOf": 0,
> "displaySymbol": "$",
> "nameCode": "currency.USD",
> "displayLabel": "US Dollar ($)"
> },
> "paymentDetailData": \{
> "id": 56,
> "paymentType": {
> "id": 4,
> "name": "DISBURSEMENT",
> "isSystemDefined": false
> },
> "accountNumber": "",
> "checkNumber": "",
> "routingCode": "",
> "receiptNumber": "",
> "bankNumber": ""
> },
> "amount": 300.000000,
> "netDisbursalAmount": 300.000000,
> "principalPortion": 0,
> "interestPortion": 0,
> "feeChargesPortion": 0,
> "penaltyChargesPortion": 0,
> "overpaymentPortion": 0,
> "unrecognizedIncomePortion": 0,
> "externalId": "19bd46a8-089a-4eb0-ab3d-a26018e91cc9",
> "outstandingLoanBalance": 300.000000,
> "submittedOnDate": [
> 2024,
> 1,
> 7
> ],
> "manuallyReversed": false,
> "loanChargePaidByList": [],
> "numberOfRepayments": 0,
> "transactionRelations": []
> }
> ],
>
> }}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)