FINERACT-1889-partial-chargeback-principal-allocation
This commit is contained in:
committed by
Aleksandar Vidakovic
parent
48f7e31567
commit
8f8fd4a172
+2
-1
@@ -72,6 +72,7 @@ import org.apache.fineract.infrastructure.core.serialization.JsonParserHelper;
|
||||
import org.apache.fineract.infrastructure.core.service.DateUtils;
|
||||
import org.apache.fineract.infrastructure.core.service.ExternalIdFactory;
|
||||
import org.apache.fineract.infrastructure.security.service.RandomPasswordGenerator;
|
||||
import org.apache.fineract.interoperation.util.MathUtil;
|
||||
import org.apache.fineract.organisation.holiday.domain.Holiday;
|
||||
import org.apache.fineract.organisation.holiday.service.HolidayUtil;
|
||||
import org.apache.fineract.organisation.monetary.domain.ApplicationCurrency;
|
||||
@@ -6251,7 +6252,7 @@ public class Loan extends AbstractAuditableWithUTCDateTimeCustom {
|
||||
|
||||
final LoanRepaymentScheduleTransactionProcessor loanRepaymentScheduleTransactionProcessor = this.transactionProcessorFactory
|
||||
.determineProcessor(this.transactionProcessingStrategyCode);
|
||||
final Money overpaidAmount = calculateTotalOverpayment(); // Before Transaction
|
||||
final Money overpaidAmount = MathUtil.negativeToZero(calculateTotalOverpayment()); // Before Transaction
|
||||
|
||||
if (chargebackTransaction.isNotZero(loanCurrency())) {
|
||||
addLoanTransaction(chargebackTransaction);
|
||||
|
||||
Reference in New Issue
Block a user