Vladyslav Samchenko created FINERACT-2841:
---------------------------------------------

             Summary: Savings account charge update silently ignores/corrupts 
unsupported ChargeCalculationType values and throws NPE for PERCENT_OF_AMOUNT
                 Key: FINERACT-2841
                 URL: https://issues.apache.org/jira/browse/FINERACT-2841
             Project: Apache Fineract
          Issue Type: Bug
            Reporter: Vladyslav Samchenko
            Assignee: Vladyslav Samchenko


{{SavingsAccountCharge#update(...)}} (both the {{JsonCommand}} overload and the 
4-argument overload) switches on {{ChargeCalculationType}} and includes a case 
for every enum constant, even though savings charges only support {{FLAT}} and 
{{{}PERCENT_OF_AMOUNT{}}}, as defined by 
{{ChargeCalculationType#validValuesForSavings()}} and enforced on the charge 
definition by {{Charge#validate()}} / {{{}update(){}}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to