Revision 6fa6c3ea
Von Bernd Bleßmann vor etwa 8 Jahren hinzugefügt
templates/webpages/order/tabs/_second_row.html | ||
---|---|---|
4 | 4 |
[%- USE L %] |
5 | 5 |
|
6 | 6 |
<table> |
7 |
<tr> |
|
8 |
<th>[%- 'Serial No.' | $T8 %]</th>
|
|
9 |
<td>[%- L.input_tag("order.orderitems[].serialnumber", ITEM.serialnumber, size = 15) %]</td>
|
|
10 |
<th>[%- 'Project' | $T8 %]</th>
|
|
11 |
<td>[% L.project_picker("order.orderitems[].project_id", ITEM.project_id, size = 15) %]</td>
|
|
12 |
<th>[%- 'Reqdate' | $T8 %]</th>
|
|
13 |
<td>[% L.date_tag("order.orderitems[].reqdate", ITEM.reqdate) %]</td>
|
|
14 |
<th>[%- 'Subtotal' | $T8 %]</th>
|
|
15 |
<td>[% L.yes_no_tag("order.orderitems[].subtotal", ITEM.subtotal) %]</td>
|
|
7 |
<tr><td colspan="100%">
|
|
8 |
<b>[%- 'Serial No.' | $T8 %]</b>
|
|
9 |
[%- L.input_tag("order.orderitems[].serialnumber", ITEM.serialnumber, size = 15) %]
|
|
10 |
<b>[%- 'Project' | $T8 %]</b>
|
|
11 |
[% L.project_picker("order.orderitems[].project_id", ITEM.project_id, size = 15) %]
|
|
12 |
<b>[%- 'Reqdate' | $T8 %]</b>
|
|
13 |
[% L.date_tag("order.orderitems[].reqdate", ITEM.reqdate) %]
|
|
14 |
<b>[%- 'Subtotal' | $T8 %]</b>
|
|
15 |
[% L.yes_no_tag("order.orderitems[].subtotal", ITEM.subtotal) %]
|
|
16 | 16 |
[%- IF ITEM.order.is_sales %] |
17 |
<th>[%- 'Ertrag' | $T8 %]</th> |
|
18 |
<td> |
|
19 |
<div name="linemargin"> |
|
17 |
<b>[%- 'Ertrag' | $T8 %]</b> |
|
18 |
<span name="linemargin"> |
|
20 | 19 |
<span[%- IF ITEM.marge_total < 0 -%] class="plus0"[%- END -%]> |
21 | 20 |
[%- LxERP.format_amount(ITEM.marge_total, 2, 0) %] |
22 | 21 |
[%- LxERP.format_amount(ITEM.marge_percent, 2, 0) %]% |
23 | 22 |
</span> |
24 |
</div> |
|
25 |
</td> |
|
26 |
<th>[%- 'LP' | $T8 %]</th> |
|
27 |
<td>[%- LxERP.format_amount(ITEM.part.listprice, 2, 0) %]</td> |
|
28 |
<th>[%- 'EK' | $T8 %]</th> |
|
29 |
<td> |
|
23 |
</span> |
|
24 |
<b>[%- 'LP' | $T8 %]</b> |
|
25 |
[%- LxERP.format_amount(ITEM.part.listprice, 2, 0) %] |
|
26 |
<b>[%- 'EK' | $T8 %]</b> |
|
30 | 27 |
[%- L.input_tag("order.orderitems[].lastcost_as_number", |
31 | 28 |
ITEM.lastcost_as_number, |
32 | 29 |
size = 5, |
33 |
class="recalc reformat_number numeric") %] |
|
34 |
</td> |
|
30 |
class="recalc reformat_number numeric") %] |
|
35 | 31 |
[%- END %] |
36 |
<th>[%- 'On Hand' | $T8 %]</th> |
|
37 |
<td> |
|
32 |
<b>[%- 'On Hand' | $T8 %]</b> |
|
38 | 33 |
<span[%- IF ITEM.part.onhand < ITEM.part.rop -%] class="plus0"[%- END -%]> |
39 | 34 |
[%- LxERP.format_amount(ITEM.part.onhand_as_number, 2, 0) -%] [%- ITEM.part.unit -%] |
40 |
</span> |
|
41 |
</td>
|
|
42 |
</tr> |
|
35 |
</span>
|
|
36 |
</td></tr>
|
|
37 |
|
|
43 | 38 |
<tr> |
44 | 39 |
[%- SET n = 0 %] |
45 | 40 |
[%- FOREACH var = ITEM.cvars_by_config %] |
Auch abrufbar als: Unified diff
Auftrags-Controller: zweite Zeile nicht als Tabelle, sondern hintereinander.
Sonst nehmen die Felder zu viel Platz ein.
Das ganze kann man sicher irgendwie mit css besser machen - Vorschläge
willkommen.