6 [% SET qty_round = 2 %]
7 <table cellpadding="3px">
8 <tr class="listheading">
9 <th>[%- LxERP.t8("Part") %]</th>
10 <th>[%- LxERP.t8("Customer") %]</th>
11 <th>[%- LxERP.t8("Order") %]</th>
12 <th>[%- LxERP.t8("Order Date") %]</th>
13 <th>[%- LxERP.t8("Qty") %]</th>
14 <th>[%- LxERP.t8("Delivered") %]</th>
15 <th>[%- LxERP.t8("Price") %]</th>
16 <th>[%- LxERP.t8("Discount") %] %</th>
17 <th>[%- LxERP.t8("Delivery Order") %]</th>
18 [% IF FORM.show_images %]
19 <th>[%- LxERP.t8("Image") %]</th>
22 [% FOREACH order_item = SELF.orderitems %]
23 <tr id="tr_[% loop.count %]" class="listrow[% loop.count % 2 %]">
24 <td> [% order_item.part.presenter.part(no_link => 0) %]</td>
25 <td> [% order_item.order.customer.presenter.customer(no_link => 0) %]</td>
26 <td class="numeric"> [% order_item.order.presenter.sales_order(no_link => 0) %]</td>
27 <td> [% order_item.order.transdate.to_kivitendo %]</td>
28 <td class="numeric [% IF order_item.delivered_qty == order_item.qty %]shipped[% ELSE %]not_shipped[% END %]">
29 [% LxERP.format_amount(order_item.qty, qty_round) %] [% order_item.unit | html %]
31 <td class="numeric"> [% LxERP.format_amount(order_item.delivered_qty, qty_round) %] [% order_item.unit | html %] </td>
32 <td class="numeric"> [% order_item.sellprice_as_number %]</td>
33 <td class="numeric"> [% order_item.discount_as_percent %]</td>
34 <td> [% order_item.deliveryorders %]</td>
35 [% IF FORM.show_images %]
36 <td> [% IF order_item.part.image %]<a href="[% order_item.part.image | html %]" target="_blank"><img height="32" border="0" src="[% order_item.part.image | html %]"/></a>[% END %]</td>