Revision a85900cb
Von Hans Peter Schlaepfer vor etwa 6 Jahren hinzugefügt
templates/webpages/customer_vendor/get_delivery.html | ||
---|---|---|
1 | 1 |
[% USE T8 %] |
2 | 2 |
[% USE HTML %] |
3 | 3 |
[% USE LxERP %] |
4 |
|
|
4 | 5 |
<div id="delivery"> |
5 |
<table width="100%"> |
|
6 |
<tr> |
|
7 |
<td> |
|
8 |
<table width="100%"> |
|
9 |
<tr class="listheading"> |
|
10 |
<th class="listheading">[% 'Shipping Address' | $T8 %]</th> |
|
11 |
<th class="listheading">[% 'Invoice' | $T8 %]</th> |
|
12 |
<th class="listheading">[% 'Order' | $T8 %]</th> |
|
13 |
<th class="listheading">[% 'Invdate' | $T8 %]</th> |
|
14 |
<th class="listheading">[% 'Description' | $T8 %]</th> |
|
15 |
<th class="listheading">[% 'Qty' | $T8 %]</th> |
|
16 |
<th class="listheading">[% 'Unit' | $T8 %]</th> |
|
17 |
[% IF ( SELF.is_customer() ) %] |
|
18 |
<th class="listheading">[% 'Sell Price' | $T8 %]</th> |
|
19 |
[% ELSE %] |
|
20 |
<th class="listheading">[% 'Last Cost' | $T8 %]</th> |
|
21 |
[%- END %] |
|
22 |
</tr> |
|
23 | 6 |
|
7 |
<table class="tbl-list"> |
|
8 |
<caption>[% 'Deliveries' | $T8 %]</caption> |
|
9 |
<thead> |
|
10 |
<tr> |
|
11 |
<th>[% 'Shipping Address' | $T8 %]</th> |
|
12 |
<th>[% 'Invoice' | $T8 %]</th> |
|
13 |
<th>[% 'Order' | $T8 %]</th> |
|
14 |
<th>[% 'Invdate' | $T8 %]</th> |
|
15 |
<th>[% 'Description' | $T8 %]</th> |
|
16 |
<th>[% 'Qty' | $T8 %]</th> |
|
17 |
<th>[% 'Unit' | $T8 %]</th> |
|
18 |
[% IF ( SELF.is_customer() ) %] |
|
19 |
<th>[% 'Sell Price' | $T8 %]</th> |
|
20 |
[% ELSE %] |
|
21 |
<th>[% 'Last Cost' | $T8 %]</th> |
|
22 |
[%- END %] |
|
23 |
</tr> |
|
24 |
</thead> |
|
24 | 25 |
|
25 |
[% FOREACH row = SELF.delivery %] |
|
26 |
[% row.script = SELF.is_vendor() ? ( row.invoice ? 'ir' : 'ap' ) : ( row.invoice ? 'is' : 'ar' ) %] |
|
27 |
<tr class="listrow[% loop.count % 2 %]"> |
|
28 |
<td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %] </td> |
|
29 |
<td>[% IF row.id %]<a href='[% row.script %].pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %]</a>[% END %]</td> |
|
30 |
<td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %]</a>[% END %]</td> |
|
31 |
<td>[% HTML.escape(row.transdate) || ' ' %]</td> |
|
32 |
<td>[% HTML.escape(row.description) || ' ' %]</td> |
|
33 |
<td>[% HTML.escape(row.qty) || ' ' %]</td> |
|
34 |
<td>[% HTML.escape(row.unit) || ' ' %]</td> |
|
35 |
<td>[% LxERP.format_amount(row.sellprice, 2) || ' ' %]</td> |
|
36 |
</tr> |
|
26 |
<tbody> |
|
27 |
[% FOREACH row = SELF.delivery %] |
|
28 |
[% row.script = SELF.is_vendor() ? ( row.invoice ? 'ir' : 'ap' ) : ( row.invoice ? 'is' : 'ar' ) %] |
|
29 |
<tr> |
|
30 |
<td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %] </td> |
|
31 |
<td> |
|
32 |
[% IF row.id %] |
|
33 |
<a href="[% row.script %].pl?action=edit&id=[% HTML.escape(row.id) %]"> |
|
37 | 34 |
[% END %] |
35 |
[% HTML.escape(row.invnumber) || ' ' %] |
|
36 |
[% IF row.id %]</a>[% END %] |
|
37 |
</td> |
|
38 |
<td> |
|
39 |
[% IF row.oe_id %] |
|
40 |
<a href="oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]"> |
|
41 |
[% END %] |
|
42 |
[% HTML.escape(row.ordnumber) || ' ' %] |
|
43 |
[% IF row.oe_id %]</a>[% END %] |
|
44 |
</td> |
|
45 |
<td>[% HTML.escape(row.transdate) || ' ' %]</td> |
|
46 |
<td>[% HTML.escape(row.description) || ' ' %]</td> |
|
47 |
<td>[% HTML.escape(row.qty) || ' ' %]</td> |
|
48 |
<td>[% HTML.escape(row.unit) || ' ' %]</td> |
|
49 |
<td>[% LxERP.format_amount(row.sellprice, 2) || ' ' %]</td> |
|
50 |
</tr> |
|
51 |
[% END %] |
|
52 |
</tbody> |
|
53 |
|
|
54 |
</table> |
|
38 | 55 |
|
39 |
</table> |
|
40 |
|
|
41 |
[% IF DELIVERY.size == 15 %] |
|
42 |
<p>[% 'This list is capped at 15 items to keep it fast. If you need a full list, please use reports.' | $T8 %]</p> |
|
43 |
[% END %] |
|
56 |
[% IF DELIVERY.size == 15 %] |
|
57 |
<p>[% 'This list is capped at 15 items to keep it fast. If you need a full list, please use reports.' | $T8 %]</p> |
|
58 |
[% END %] |
|
44 | 59 |
|
45 |
</td> |
|
46 |
</tr> |
|
47 |
</table> |
|
48 | 60 |
</div> |
Auch abrufbar als: Unified diff
Preview design 4.0