if (!oTck.getTotalAmount().equals(BigDecimal.ZERO))
oTotalAmount = oTotalAmount.add(oTck.getTotalAmount());
} else {
if (oTck.getStringNull("vat","").length()>0)
if (!oTck.getVat().equals(BigDecimal.ZERO))
oVAT = oVAT.add(new Money(oTck.getVat(), sCur).convertTo(CurrencyCode.EUR));
if (oTck.getStringNull("base_amount","").length()>0)
if (!oTck.getBaseAmount().equals(BigDecimal.ZERO))
oBaseAmount = oBaseAmount.add(new Money(oTck.getBaseAmount(), sCur).convertTo(CurrencyCode.EUR));
if (oTck.getStringNull("final_amount","").length()>0)
if (!oTck.getTotalAmount().equals(BigDecimal.ZERO))
oTotalAmount = oTotalAmount.add(new Money(oTck.getTotalAmount(), sCur).convertTo(CurrencyCode.EUR));
}
}
} // next
Log.out.debug("VAT is "+oVAT.toString());
Log.out.debug("Base is "+oBaseAmount.toString());