Revision f275cac9
Von Bernd Bleßmann vor etwa 8 Jahren hinzugefügt
templates/webpages/order/tabs/_row.html | ||
---|---|---|
7 | 7 |
|
8 | 8 |
<tr class="listrow0"> |
9 | 9 |
<td style='display:none'> |
10 |
[% L.hidden_tag("orderitem_ids[+]", ID) %] |
|
10 | 11 |
[% L.hidden_tag("order.orderitems[+].id", ITEM.id, id='item_' _ ID) %] |
11 | 12 |
[% L.hidden_tag("order.orderitems[].parts_id", ITEM.parts_id) %] |
12 | 13 |
</td> |
... | ... | |
47 | 48 |
class="recalc") %] |
48 | 49 |
</td> |
49 | 50 |
<td> |
50 |
[%- L.input_tag("order.orderitems[].sellprice_as_number", |
|
51 |
ITEM.sellprice_as_number, |
|
52 |
size = 10, |
|
53 |
style='text-align:right', |
|
54 |
class="recalc") %] |
|
51 |
[%- L.button_tag("price_chooser_item_row(this)", |
|
52 |
ITEM.active_price_source.source_description _ ' | ' _ ITEM.active_discount_source.source_description, |
|
53 |
name = "price_chooser_button") %] |
|
55 | 54 |
</td> |
56 | 55 |
<td> |
57 |
[%- L.input_tag("order.orderitems[].discount_as_percent", |
|
58 |
ITEM.discount_as_percent, |
|
59 |
size = 5, |
|
60 |
style='text-align:right', |
|
61 |
class="recalc") %] |
|
56 |
[%- L.hidden_tag("order.orderitems[].active_price_source", ITEM.active_price_source.source) %] |
|
57 |
[%- SET EDIT_PRICE = (AUTH.assert('edit_prices', 1) && ITEM.active_price_source.source == '') %] |
|
58 |
<div name="editable_price" [%- IF !EDIT_PRICE %]style="display:none"[%- END %]> |
|
59 |
[%- L.input_tag("order.orderitems[].sellprice_as_number", |
|
60 |
ITEM.sellprice_as_number, |
|
61 |
size = 10, |
|
62 |
style='text-align:right', |
|
63 |
disabled=(EDIT_PRICE? '' : 1), |
|
64 |
class="recalc reformat_number") %] |
|
65 |
</div> |
|
66 |
<div name="not_editable_price" [%- IF EDIT_PRICE %]style="display:none"[%- END %]> |
|
67 |
[%- L.div_tag(ITEM.sellprice_as_number, name="sellprice_text", style='text-align:right') %] |
|
68 |
[%- L.hidden_tag("order.orderitems[].sellprice_as_number", |
|
69 |
ITEM.sellprice_as_number, |
|
70 |
disabled=(EDIT_PRICE? 1 : '')) %] |
|
71 |
</div> |
|
72 |
</td> |
|
73 |
<td> |
|
74 |
[%- L.hidden_tag("order.orderitems[].active_discount_source", ITEM.active_discount_source.source) %] |
|
75 |
[%- SET EDIT_DISCOUNT = (AUTH.assert('edit_prices', 1) && ITEM.active_discount_source.source == '') %] |
|
76 |
<div name="editable_discount" [%- IF !EDIT_DISCOUNT %]style="display:none"[%- END %]> |
|
77 |
[%- L.input_tag("order.orderitems[].discount_as_percent", |
|
78 |
ITEM.discount_as_percent, |
|
79 |
size = 5, |
|
80 |
style='text-align:right', |
|
81 |
disabled=(EDIT_DISCOUNT? '' : 1), |
|
82 |
class="recalc reformat_number") %] |
|
83 |
</div> |
|
84 |
<div name="not_editable_discount" [%- IF EDIT_DISCOUNT %]style="display:none"[%- END %]> |
|
85 |
[%- L.div_tag(ITEM.discount_as_percent, name="discount_text", style='text-align:right') %] |
|
86 |
[%- L.hidden_tag("order.orderitems[].discount_as_percent", |
|
87 |
ITEM.discount_as_percent, |
|
88 |
disabled=(EDIT_DISCOUNT? 1 : '')) %] |
|
89 |
</div> |
|
62 | 90 |
</td> |
63 | 91 |
<td align="right"> |
64 | 92 |
[%- L.div_tag(LxERP.format_amount(ITEM.linetotal, 2, 0), name="linetotal") %] |
Auch abrufbar als: Unified diff
Auftrags-Controller: PriceSources