.getTaxRateAsFormattedNumber(invoiceLineType, pdfInvoice.getLocale());
table.addValueCell(taxRate, invoiceRendererBean.getInvoiceLineFont());
}
// Invoice Line extension amount
CurrencyDecimal lineExtensionAmount =
createLineExtensionAmount(invoiceLineType.getLineExtensionAmount());
if (label.equals(org.openinvoice.ubl4j.core.common.text.TextLabel.INV_ITEM_SUBTOTAL)) {
table.addValueCell(lineExtensionAmount, invoiceRendererBean.getInvoiceLineFont());
}
// Invoice Line tax total amount
CurrencyDecimal lineTaxTotal = createLineTaxAmount(invoiceLineType.getTaxTotal().get(0));
if (label == org.openinvoice.ubl4j.core.common.text.TextLabel.INV_ITEM_VAT) {
table.addValueCell(lineTaxTotal, invoiceRendererBean.getInvoiceLineFont());
}
// Invoice Line total amount
if (label == org.openinvoice.ubl4j.core.common.text.TextLabel.INV_ITEM_TOTAL) {
CurrencyDecimal lineTotalAmount = lineExtensionAmount.add(lineTaxTotal);
table.addValueCell(includeCurrencySymbolOrCode(lineTotalAmount),
invoiceRendererBean.getInvoiceLineFont());
}
}
}