Merge branch 'master' of ssh://git-jbueren@lx-office.linet-services.de/~/lx-office-erp
[kivitendo-erp.git] / templates / webpages / ct / get_delivery.html
1 [%- USE T8 %]
2 [% USE HTML %][% USE LxERP %]
3 <table width="100%">
4   <tr>
5     <td>
6       <table width="100%">
7         <tr class="listheading">
8           <th class="listheading">[% 'Shipping Address' | $T8 %]</th>
9           <th class="listheading">[% 'Invoice' | $T8 %]</th>
10           <th class="listheading">[% 'Order' | $T8 %]</th>
11           <th class="listheading">[% 'Invdate' | $T8 %]</th>
12           <th class="listheading">[% 'Description' | $T8 %]</th>
13           <th class="listheading">[% 'Qty' | $T8 %]</th>
14           <th class="listheading">[% 'Unit' | $T8 %]</th>
15 [%- IF is_customer %]
16           <th class="listheading">[% 'Sell Price' | $T8 %]</th>
17 [%- ELSE %]
18           <th class="listheading">[% 'Last Cost' | $T8 %]</th>
19 [%- END %]
20         </tr>
21 [%- FOREACH row = DELIVERY %]
22 [%-
23     row.script = is_customer ?  ( row.invoice ? 'is' : 'ar' )
24                              :  ( row.invoice ? 'ir' : 'ap' )
25 -%]
26         <tr class="listrow[% loop.count % 2 %]">
27           <td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]&nbsp;</td>
28           <td>[% IF row.id %]<a href='[% row.script %].pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
29           <td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=[% IF is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.oe_id %]</a>[% END %]</td>
30           <td>[% HTML.escape(row.transdate)   || '&nbsp;' %]</td>
31           <td>[% HTML.escape(row.description) || '&nbsp;' %]</td>
32           <td>[% HTML.escape(row.qty)         || '&nbsp;' %]</td>
33           <td>[% HTML.escape(row.unit)        || '&nbsp;' %]</td>
34           <td>[% LxERP.format_amount(row.sellprice, 2) || '&nbsp;' %]</td>
35         </tr>
36 [%- END %]
37
38      </table>
39 [%- IF DELIVERY.size == 15 %]
40      <p>[% 'This list is capped at 15 items to keep it fast. If you need a full list, please use reports.' | $T8 %]</p>
41 [%- END %]