FINERACT-1724: Fix NPE issues + Incorrect arguments to mysqld_stmt_bulk_execute
This commit is contained in:
committed by
Arnold Gálovics
parent
4d5dce0309
commit
70f2783508
+2
-1
@@ -489,7 +489,8 @@ public class SavingsAccountInterestPostingServiceImpl implements SavingsAccountI
|
||||
|
||||
private boolean createWithHoldTransaction(final BigDecimal amount, final LocalDate date, final SavingsAccountData savingsAccountData) {
|
||||
boolean isTaxAdded = false;
|
||||
if (savingsAccountData.getTaxGroup() != null && amount.compareTo(BigDecimal.ZERO) > 0) {
|
||||
if (savingsAccountData.getTaxGroup() != null && savingsAccountData.getTaxGroup().getTaxAssociations() != null
|
||||
&& amount.compareTo(BigDecimal.ZERO) > 0) {
|
||||
Map<TaxComponentData, BigDecimal> taxSplit = TaxUtils.splitTaxData(amount, date,
|
||||
savingsAccountData.getTaxGroup().getTaxAssociations().stream().collect(Collectors.toSet()), amount.scale());
|
||||
BigDecimal totalTax = TaxUtils.totalTaxDataAmount(taxSplit);
|
||||
|
||||
Reference in New Issue
Block a user