Revision 0935b012
Von Bernd Bleßmann vor etwa 8 Jahren hinzugefügt
templates/webpages/order/tabs/_price_sources_dialog.html | ||
---|---|---|
4 | 4 |
[%- USE LxERP %] |
5 | 5 |
[% SET best_price = price_source.best_price %] |
6 | 6 |
[% SET best_discount = price_source.best_discount %] |
7 |
[% SET price_editable = AUTH.assert('edit_prices', 1) %] |
|
7 | 8 |
<h2>[% 'Prices' | $T8 %]</h2> |
8 | 9 |
|
9 | 10 |
<table> |
... | ... | |
16 | 17 |
</tr> |
17 | 18 |
<tr class='listrow'> |
18 | 19 |
[%- IF price_source.record_item.active_price_source %] |
19 |
<td>[% L.button_tag('update_price_source(\'' _ FORM.item_id _ '\', \'\', \'' _ LxERP.t8('None (PriceSource)') _ '\')', LxERP.t8('Select')) %]</td>
|
|
20 |
<td>[% L.button_tag('kivi.Order.update_price_source(\'' _ FORM.item_id _ '\', \'\', \'' _ LxERP.t8('None (PriceSource)') _ '\', \'\', ' _ price_editable _ ')', LxERP.t8('Select')) %]</td>
|
|
20 | 21 |
[%- ELSE %] |
21 | 22 |
<td><b>[% 'Selected' | $T8 %]</b></td> |
22 | 23 |
[%- END %] |
... | ... | |
28 | 29 |
[%- FOREACH price IN price_source.available_prices %] |
29 | 30 |
<tr class='listrow'> |
30 | 31 |
[%- IF price_source.record_item.active_price_source != price.source %] |
31 |
<td>[% L.button_tag('update_price_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\')', LxERP.t8('Select')) %]</td>
|
|
32 |
<td>[% L.button_tag('kivi.Order.update_price_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\', ' _ price_editable _ ')', LxERP.t8('Select')) %]</td>
|
|
32 | 33 |
[%- ELSIF price_source.record_item.sellprice * 1 != price.price * 1 %] |
33 |
<td>[% L.button_tag('update_price_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\')', LxERP.t8('Update Price')) %]</td>
|
|
34 |
<td>[% L.button_tag('kivi.Order.update_price_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\', ' _ price_editable _ ')', LxERP.t8('Update Price')) %]</td>
|
|
34 | 35 |
[%- ELSE %] |
35 | 36 |
<td><b>[% 'Selected' | $T8 %]</b></td> |
36 | 37 |
[% END %] |
... | ... | |
58 | 59 |
</tr> |
59 | 60 |
<tr class='listrow'> |
60 | 61 |
[%- IF price_source.record_item.active_discount_source %] |
61 |
<td>[% L.button_tag('update_discount_source(\'' _ FORM.item_id _ '\', \'\', \'' _ LxERP.t8('None (PriceSource Discount)') _ '\')', LxERP.t8('Select')) %]</td>
|
|
62 |
<td>[% L.button_tag('kivi.Order.update_discount_source(\'' _ FORM.item_id _ '\', \'\', \'' _ LxERP.t8('None (PriceSource Discount)') _ '\', \'\', ' _ price_editable _ ')', LxERP.t8('Select')) %]</td>
|
|
62 | 63 |
[%- ELSE %] |
63 | 64 |
<td><b>[% 'Selected' | $T8 %]</b></td> |
64 | 65 |
[%- END %] |
... | ... | |
70 | 71 |
[%- FOREACH price IN price_source.available_discounts %] |
71 | 72 |
<tr class='listrow'> |
72 | 73 |
[%- IF price_source.record_item.active_discount_source != price.source %] |
73 |
<td>[% L.button_tag('update_discount_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ price.discount_as_percent _ '\')', LxERP.t8('Select')) %]</td>
|
|
74 |
<td>[% L.button_tag('kivi.Order.update_discount_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ price.discount_as_percent _ '\', ' _ price_editable _ ')', LxERP.t8('Select')) %]</td>
|
|
74 | 75 |
[%- ELSIF price_source.record_item.discount * 1 != price.discount * 1 %] |
75 |
<td>[% L.button_tag('update_discount_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ price.discount_as_percent _ '\')', LxERP.t8('Update Discount')) %]</td>
|
|
76 |
<td>[% L.button_tag('kivi.Order.update_discount_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ price.discount_as_percent _ '\', ' _ price_editable _ ')', LxERP.t8('Update Discount')) %]</td>
|
|
76 | 77 |
[%- ELSE %] |
77 | 78 |
<td><b>[% 'Selected' | $T8 %]</b></td> |
78 | 79 |
[% END %] |
Auch abrufbar als: Unified diff
Auftrags-Controller: javascript-Code in eigene Datei auslagern