JohnAlva commented on code in PR #4886:
URL: https://github.com/apache/fineract/pull/4886#discussion_r2263384715


##########
fineract-core/src/main/java/org/apache/fineract/portfolio/savings/data/SavingsAccountTransactionData.java:
##########
@@ -105,14 +105,15 @@ public final class SavingsAccountTransactionData 
implements Serializable {
     private BigDecimal overdraftAmount;
     private transient Long modifiedId;
     private transient String refNo;
+    private Boolean isOverdraftDown;

Review Comment:
   isOverdraftDown has been renamed to isOverdraft for clarity and simplicity.



##########
fineract-core/src/main/java/org/apache/fineract/portfolio/savings/domain/interest/CompoundInterestHelper.java:
##########
@@ -47,9 +47,14 @@ public Money calculateInterestForAllPostingPeriods(final 
MonetaryCurrency curren
         // total interest earned in previous periods but not yet recognised
         BigDecimal compoundedInterest = BigDecimal.ZERO;
         BigDecimal unCompoundedInterest = BigDecimal.ZERO;
+        LocalDate endDay = DateUtils.getBusinessLocalDate();
         final CompoundInterestValues compoundInterestValues = new 
CompoundInterestValues(compoundedInterest, unCompoundedInterest);
         for (final PostingPeriod postingPeriod : allPeriods) {
 
+            if (postingPeriod.dateOfPostingTransaction().getMonth() != 
endDay.getMonth()) {
+                
compoundInterestValues.setcompoundedInterest(interestEarned.getAmount());

Review Comment:
   The method name has been corrected, it is now setCompoundedInterest instead 
of setcompoundedInterest.



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