Hello,
I created a ph-ebinterface and used your html visualizer to generate a printable pdf of my invoice. However, after adding all the required item fields, adding the items to my list, the list to the details, and the details to the invoice, the html does NOT visualize the items, which makes the bill look a bit sketchy.
Here is an example pdf:
bill_1(12).pdf
Here is my item code:
final Ebi40DetailsType details = new Ebi40DetailsType();
inv.setDetails(details);
Ebi40ItemListType list = new Ebi40ItemListType();
int cnt=0;
for(final Ticket ticket: bill.getTickets()){
list.setHeaderDescription("Tickets");
cnt++;
list.setFooterDescription(""+cnt+" Ticket/s");
final Ebi40ListLineItemType item = new Ebi40ListLineItemType();
final Ebi40UnitType u = new Ebi40UnitType();
item.setQuantity(u);
u.setValue(BigDecimal.ONE);
u.setUnit("Stk.");
item.setUnitPrice(ticket.getPrice().setScale(2, RoundingMode.HALF_UP));
item.setLineItemAmount(ticket.getPrice().setScale(2, RoundingMode.HALF_UP));
final Ebi40TaxRateType tax = new Ebi40TaxRateType();
item.setTaxRate(tax);
tax.setValue(ticket.getPrice().multiply(BigDecimal.valueOf(0.2)).setScale(2, RoundingMode.HALF_UP));
item.setUnitPrice(ticket.getPrice().setScale(2, RoundingMode.HALF_UP));
item.setLineItemAmount(ticket.getPrice().setScale(2, RoundingMode.HALF_UP));
item.getDescription().add(bill.getEventName());
item.getDescription().add("Sektor: " + ticket.getSeat().getSector());
item.getDescription().add("Reihe: "+ ticket.getSeat().getX());
item.getDescription().add("Platz: "+ ticket.getSeat().getY());
final Ebi40DeliveryType delivery = new Ebi40DeliveryType();
item.setDelivery(delivery);
delivery.setDate(LocalDate.now());
list.addListLineItem(item);
}
details.addItemList(list);
inv.setDetails(details);
}
The header and footer are being rendered correctly, but the items are missing.
Hello,
I created a ph-ebinterface and used your html visualizer to generate a printable pdf of my invoice. However, after adding all the required item fields, adding the items to my list, the list to the details, and the details to the invoice, the html does NOT visualize the items, which makes the bill look a bit sketchy.
Here is an example pdf:
bill_1(12).pdf
Here is my item code:
The header and footer are being rendered correctly, but the items are missing.