Revision a143bb85
Von Bernd Bleßmann vor etwa 8 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
594 | 594 |
$_[0]->render(\ $longdescription, { type => 'text' }); |
595 | 595 |
} |
596 | 596 |
|
597 |
# load the second row for one or more items (cvars only for now)
|
|
597 |
# load the second row for one or more items |
|
598 | 598 |
# |
599 | 599 |
# This action gets the html code for all items second rows by rendering a template for |
600 | 600 |
# the second row and sets the html code via client js. |
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>[%- 'Reqdate' | $T8 %]</th> |
|
11 |
<td>[% L.date_tag("order.orderitems[].reqdate", ITEM.reqdate) %]</td> |
|
12 |
<th>[%- 'Subtotal' | $T8 %]</th> |
|
13 |
<td>[% L.yes_no_tag("order.orderitems[].subtotal", ITEM.subtotal) %]</td> |
|
14 |
[%- IF ITEM.order.is_sales %] |
|
15 |
<th>[%- 'LP' | $T8 %]</th> |
|
16 |
<td>[%- LxERP.format_amount(ITEM.part.listprice, 2, 0) %]</td> |
|
17 |
[%- END %] |
|
18 |
<th>[%- 'On Hand' | $T8 %]</th> |
|
19 |
<td> |
|
20 |
<span[%- IF ITEM.part.onhand < ITEM.part.rop -%] class="plus0"[%- END -%]> |
|
21 |
[%- LxERP.format_amount(ITEM.part.onhand_as_number, 2, 0) -%] [%- ITEM.part.unit -%] |
|
22 |
</span> |
|
23 |
</td> |
|
24 |
</tr> |
|
7 | 25 |
<tr> |
8 | 26 |
[%- SET n = 0 %] |
9 | 27 |
[%- FOREACH var = ITEM.cvars_by_config %] |
Auch abrufbar als: Unified diff
Auftrags-Controller: weitere Felder in zweiter Zeile
- Seriennummer
- Liefertermin
- Option f. Zwischensumme
- Listenpreis
- Lagerstand (onhand)