List of usage examples for java.math BigDecimal add
public BigDecimal add(BigDecimal augend)
From source file:com.etcc.csc.presentation.datatype.PaymentContext.java
public BigDecimal getAuthorizedViolationAmount() { BigDecimal total = new BigDecimal(0.0); if (!ArrayUtils.isEmpty(violations)) { for (int i = 0; i < violations.length; i++) { if (violations[i].isAuthorized()) { total = total.add(violations[i].getCashAmount()); }//w w w. j a v a 2 s . c om } } return total; }
From source file:com.etcc.csc.presentation.datatype.PaymentContext.java
public BigDecimal getAuthorizedViolationFeeAmount() { BigDecimal total = new BigDecimal(0.0); if (!ArrayUtils.isEmpty(violations)) { for (int i = 0; i < violations.length; i++) { if (violations[i].isAuthorized()) { total = total.add(BigDecimalUtil.nullSafe(violations[i].getOnlineFee())); }/* www . ja v a 2s . c om*/ } } return total; }
From source file:com.etcc.csc.presentation.datatype.PaymentContext.java
public BigDecimal getPriorInvTotalUnPaidAmount() { BigDecimal amount = BigDecimal.ZERO; if (!ArrayUtils.isEmpty(priorInvs)) { for (int i = 0; i < priorInvs.length; i++) { if ("N".equals(priorInvs[i].getPaidIndicator())) { amount = amount.add(priorInvs[i].getAmount()); }/*from www . jav a 2 s.c om*/ } } return amount; }
From source file:com.etcc.csc.presentation.datatype.PaymentContext.java
public BigDecimal getFirstInvTotalUnPaidAmount() { BigDecimal amount = BigDecimal.ZERO; if (!ArrayUtils.isEmpty(firstInvs)) { for (int i = 0; i < firstInvs.length; i++) { if ("N".equals(firstInvs[i].getPaidIndicator())) { amount = amount.add(firstInvs[i].getAmount()); }//from w w w .ja v a 2 s . c om } } return amount; }
From source file:com.etcc.csc.presentation.datatype.PaymentContext.java
public BigDecimal getFirstInvTotalTXNAdminFee() { BigDecimal amount = BigDecimal.ZERO; if (!ArrayUtils.isEmpty(firstInvs)) { for (int i = 0; i < firstInvs.length; i++) { if ("N".equals(firstInvs[i].getPaidIndicator())) { amount = amount.add(BigDecimalUtil.nullSafe(firstInvs[i].getAdjustedTxnFees())); }//w w w .j a v a 2 s.c o m } } return amount; }
From source file:com.etcc.csc.presentation.datatype.PaymentContext.java
public BigDecimal getFirstInvTotalFNAdminFee() { BigDecimal amount = BigDecimal.ZERO; if (!ArrayUtils.isEmpty(firstInvs)) { for (int i = 0; i < firstInvs.length; i++) { if ("N".equals(firstInvs[i].getPaidIndicator())) { amount = amount.add(BigDecimalUtil.nullSafe(firstInvs[i].getInvoiceAdminFee())); }//w w w . ja v a2 s . c o m } } return amount; }
From source file:com.etcc.csc.presentation.datatype.PaymentContext.java
public BigDecimal getFirstInvTotalSNAdminFee() { BigDecimal amount = BigDecimal.ZERO; if (!ArrayUtils.isEmpty(firstInvs)) { for (int i = 0; i < firstInvs.length; i++) { if ("N".equals(firstInvs[i].getPaidIndicator())) { amount = amount.add(BigDecimalUtil.nullSafe(firstInvs[i].getInvSecondNoticeAdminFee())); }// ww w. j a v a 2 s . c o m } } return amount; }
From source file:com.etcc.csc.presentation.datatype.PaymentContext.java
public BigDecimal getLegalInvTotalUnPaidAmount() { BigDecimal amount = BigDecimal.ZERO; if (!ArrayUtils.isEmpty(legalInvs)) { for (int i = 0; i < legalInvs.length; i++) { if ("N".equals(legalInvs[i].getPaidIndicator())) { amount = amount.add(legalInvs[i].getAmount()); }/*from ww w .ja va 2s. c o m*/ } } return amount; }
From source file:com.etcc.csc.presentation.datatype.PaymentContext.java
public BigDecimal getLegalInvTotalTXNAdminFee() { BigDecimal amount = BigDecimal.ZERO; if (!ArrayUtils.isEmpty(legalInvs)) { for (int i = 0; i < legalInvs.length; i++) { if ("N".equals(legalInvs[i].getPaidIndicator())) { amount = amount.add(legalInvs[i].getAdjustedTxnFees()); }//from ww w . jav a 2 s .co m } } return amount; }