[
https://issues.apache.org/jira/browse/FINERACT-2033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17813317#comment-17813317
]
Uddyan Goyal edited comment on FINERACT-2033 at 2/1/24 3:40 PM:
----------------------------------------------------------------
Hello, due to a condition set in code, the minCap and maxCap values are only
set if the value of chargeCalculationType==2 i.e. PERCENT_OF_AMOUNT.
Therefore, if I pass any value for chargeCalculationType other than 2, the
values of minCap and maxCap will not be set and therefore will not be displayed.
Everything works fine if the value of chargeCalculationType==2. I think this
should not be an issue.
I am attaching relevant screenshots and videos for better understanding.
[^Fineract_Charges.mp4]!charges1.png! !charges2.png!
was (Author: JIRAUSER303958):
Hello, due to a condition set in code, the minCap and maxCap values are only
set if the value of chargeCalculationType==2 i.e. PERCENT_OF_AMOUNT.
Therefore, if I pass any value for chargeCalculationType other than 2, the
values of minCap and maxCap will not be set and therefore will not be displayed.
Everything works fine if the value of chargeCalculationType==2. I think this
should not be an issue.
I am attaching relevant screenshots and videos for better understanding.
!charges2.png!
> View charge page does not show minimum and maximum charge cap values
> --------------------------------------------------------------------
>
> Key: FINERACT-2033
> URL: https://issues.apache.org/jira/browse/FINERACT-2033
> Project: Apache Fineract
> Issue Type: Bug
> Reporter: Bharath Gowda
> Priority: Major
> Attachments: Fineract_Charges.mp4, charges1.png, charges2.png,
> image-2023-12-25-19-27-19-425.png, image-2023-12-25-19-30-26-668.png
>
>
> Go to Admin/Products/Charges
> Select applies to savings
> !image-2023-12-25-19-27-19-425.png!
> Fill the other fields making sure to set the min and max values
> Submit
> Once the fee has been created, open the fee and note the min/max values are
> not shown
> h2. Expected Behaviour
> Min and Max values should be displayed on the view fee page
> h2. Actual Behaviour
> Min and max values are not displayed
>
> So Api: /charges
>
> When we created the charge, we sent the minCap and maxCap
> !image-2023-12-25-19-30-26-668.png!
> When we try to get details: API : api/v1/charges/4?template=false
> {
> "id": 4,
> "name": "ascdasd",
> "active": false,
> "penalty": false,
> "freeWithdrawal": false,
> "freeWithdrawalChargeFrequency": 0,
> "restartFrequency": 0,
> "restartFrequencyEnum": 0,
> "isPaymentType": false,
> "currency": \{
> "code": "USD",
> "name": "US Dollar",
> "decimalPlaces": 2,
> "displaySymbol": "$",
> "nameCode": "currency.USD",
> "displayLabel": "US Dollar ($)"
> },
> "amount": 1223.000000,
> "chargeTimeType": \{
> "id": 1,
> "code": "chargeTimeType.disbursement",
> "value": "Disbursement"
> },
> "chargeAppliesTo": \{
> "id": 1,
> "code": "chargeAppliesTo.loan",
> "value": "Loan"
> },
> "chargeCalculationType": \{
> "id": 1,
> "code": "chargeCalculationType.flat",
> "value": "Flat"
> },
> "chargePaymentMode": \{
> "id": 0,
> "code": "chargepaymentmode.regular",
> "value": "Regular"
> }
> }
>
> There is no minCap and maxCap
--
This message was sent by Atlassian Jira
(v8.20.10#820010)