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


##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/client/service/ClientChargeWritePlatformServiceImpl.java:
##########
@@ -95,7 +99,12 @@ public CommandProcessingResult addCharge(Long clientId, 
JsonCommand command) {
                 throw new ChargeCannotBeAppliedToException("client", 
errorMessage, charge.getId());
             }
 
-            final ClientCharge clientCharge = ClientCharge.createNew(client, 
charge, command);
+            BigDecimal roundedAmount = calculateRoundedChargeAmount(charge, 
command);
+            if (roundedAmount.compareTo(BigDecimal.ZERO) == 0) {
+                return new 
CommandProcessingResultBuilder().withOfficeId(client.getOffice().getId()).withClientId(client.getId()).build();

Review Comment:
   See no changes...no reply...



##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanChargeWritePlatformServiceImpl.java:
##########
@@ -206,21 +206,38 @@ public CommandProcessingResult addLoanCharge(final Long 
loanId, final JsonComman
             LoanTrancheDisbursementCharge loanTrancheDisbursementCharge;
             ExternalId externalId = 
externalIdFactory.createFromCommand(command, "externalId");
             boolean isFirst = true;
+            boolean atLeastOneChargePersisted = false;

Review Comment:
   See no changes...no reply...



-- 
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