@@ -351,8 +351,7 @@ |
||
351 | 351 | $totalAmount = MathFuncs::round_up($repayment->getTotalAmount(), 2); |
352 | 352 | $interestAmount = MathFuncs::round($repayment->getInterestAmount(), 2); |
353 | 353 | $principalAmount = MathFuncs::round($totalAmount - $interestAmount, 2); |
354 | - } |
|
355 | - else { |
|
354 | + } else { |
|
356 | 355 | $interestAmount = MathFuncs::round($repayment->getInterestAmount(), 2); |
357 | 356 | $totalAmount = MathFuncs::round(MathFuncs::add($balance, $interestAmount), 2); |
358 | 357 | $principalAmount = MathFuncs::round($balance, 2); |