FINERACT-1981: Generate loan schedule as dto
This commit is contained in:
+1
-1
@@ -186,7 +186,7 @@ public class ProvisioningEntriesWritePlatformServiceJpaRepositoryImpl implements
|
||||
GLAccount expenseAccount = glAccountRepository.findById(data.getExpenseAccount()).orElseThrow();
|
||||
MonetaryCurrency currency = loanProduct.getPrincipalAmount().getCurrency();
|
||||
Money money = Money.of(currency, data.getBalance());
|
||||
Money amountToReserve = money.percentageOf(data.getPercentage(), MoneyHelper.getRoundingMode());
|
||||
Money amountToReserve = money.percentageOf(data.getPercentage(), MoneyHelper.getMathContext());
|
||||
Long criteraId = data.getCriteriaId();
|
||||
LoanProductProvisioningEntry entry = new LoanProductProvisioningEntry().setLoanProduct(loanProduct).setOffice(office)
|
||||
.setCurrencyCode(data.getCurrencyCode()).setProvisioningCategory(provisioningCategory)
|
||||
|
||||
Reference in New Issue
Block a user