use of org.estatio.module.invoice.dom.InvoiceItemForTesting in project estatio by estatio.
the class InvoiceForLeaseDtoFactory_Test method newItem.
private static InvoiceItemForTesting newItem(final Invoice invoice, final String netAmt, final String grossAmt, final String vatAmt) {
final InvoiceItemForTesting invoiceItem = new InvoiceItemForTesting(invoice);
invoiceItem.setInvoice(invoice);
final ChargeGroup chargeGroup = new ChargeGroup();
final Charge charge = new Charge();
charge.setGroup(chargeGroup);
invoiceItem.setCharge(charge);
final Tax tax = new Tax();
invoiceItem.setTax(tax);
invoiceItem.setNetAmount(new BigDecimal(netAmt));
invoiceItem.setGrossAmount(new BigDecimal(grossAmt));
invoiceItem.setVatAmount(new BigDecimal(vatAmt));
return invoiceItem;
}
Aggregations