adamsaghy commented on code in PR #5940:
URL: https://github.com/apache/fineract/pull/5940#discussion_r3374366339


##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/client/domain/ClientCharge.java:
##########
@@ -94,12 +94,9 @@ protected ClientCharge() {
         //
     }
 
-    public static ClientCharge createNew(final Client client, final Charge 
charge, final JsonCommand command) {
-        BigDecimal amount = 
command.bigDecimalValueOfParameterNamed(ClientApiConstants.amountParamName);
+    public static ClientCharge createNew(final Client client, final Charge 
charge, final BigDecimal amount, final JsonCommand command) {

Review Comment:
   If you’ve started providing the fields as incoming arguments, don’t stop 
halfway. Remove the `command` parameter and ensure that the due date is 
provided as a parameter.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to