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