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


##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain/DefaultPaymentPeriodsInOneYearCalculator.java:
##########
@@ -32,15 +32,15 @@
 public class DefaultPaymentPeriodsInOneYearCalculator implements 
PaymentPeriodsInOneYearCalculator {
 
     @Override
-    public Integer calculate(final PeriodFrequencyType repaymentFrequencyType) 
{
+    public Integer calculate(final PeriodFrequencyType 
repaymentFrequencyType,final PeriodFrequencyType interestRateFrequencyMethod) {
 
         Integer paymentPeriodsInOneYear = 0;
         switch (repaymentFrequencyType) {
             case DAYS:
-                paymentPeriodsInOneYear = 365;
+                paymentPeriodsInOneYear = 
interestRateFrequencyMethod.isMonthly() ? Integer.valueOf(360) : 
Integer.valueOf(365);
             break;
             case WEEKS:
-                paymentPeriodsInOneYear = 52;
+                paymentPeriodsInOneYear = 
interestRateFrequencyMethod.isMonthly() ? Integer.valueOf(48) : 
Integer.valueOf(52);

Review Comment:
   I dont think thats right... monthly interest calculation cannot be 4 
weeks... @bharathc27 Thoughts?



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