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


##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/data/LoanSummaryData.java:
##########
@@ -96,7 +96,7 @@ public LoanSummaryData(final CurrencyData currency, final 
BigDecimal principalDi
         this.interestOverdue = interestOverdue;
         this.feeChargesCharged = feeChargesCharged;
         this.feeChargesDueAtDisbursementCharged = 
feeChargesDueAtDisbursementCharged;
-        this.feeChargesPaid = feeChargesPaid;
+        this.feeChargesPaid = feeChargesPaid != null ? feeChargesPaid : 
BigDecimal.ZERO;

Review Comment:
   For generic behaviour, i would not set only the feeChargesPaid to Zero.



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