% if report.payments: %endif <% total = 0 total_cost = 0 %> % for item in report.order.get_items(): <% total += item.quantity total_cost += item.total_cost %> % if item.batch: % else: %endif % if report.payments: %endif % endfor % if report.payments: %endif % if report.payments: %endif
${ _("Code") } ${ _("Barcode") } ${ _("Item") } ${ _("Batch") } ${ _("Qty") }${ _("Cost") }
${ item.sellable.code } ${ item.sellable.barcode } ${ item.sellable.get_description() }${ item.batch.batch_number }${ item.get_quantity_unit_string() }${ format_price(item.cost)}
${ format_quantity(total) }${ format_price(total_cost)}