Beispiel #1
0
  private static FoundTax nullFoundTax() {
    FoundTax foundTax = new FoundTax();
    foundTax.setAmount(BigDecimal.ZERO);
    foundTax.setRate(BigDecimal.ZERO);

    return foundTax;
  }
Beispiel #2
0
  private FoundTax foundTax(String taxName) {
    List<FoundTax> foundTaxes = pd.getFoundTaxes();

    for (FoundTax tax : foundTaxes) {
      if (taxName.equals(tax.getTaxName())) {
        return tax;
      }
    }

    return NULL_FOUND_TAX;
  }