Revision 60a3e513
Von Bernd Bleßmann vor mehr als 4 Jahren hinzugefügt
templates/webpages/order/tabs/_price_sources_dialog.html | ||
---|---|---|
11 | 11 |
[% IF (FORM.type == "purchase_order" || FORM.type == "request_quotation") %] |
12 | 12 |
[% SET price_editable = AUTH.assert('purchase_edit_prices', 1) %] |
13 | 13 |
[% END %] |
14 |
[% SET exfactor = price_source.record.exchangerate ? 1 / price_source.record.exchangerate : 1 %] |
|
15 |
[% SET exnoshow = price_source.record.currency_id==INSTANCE_CONF.get_currency_id %] |
|
16 |
[% SET places = exnoshow ? -2 : 5 %] |
|
14 | 17 |
<h2>[% 'Prices' | $T8 %]</h2> |
15 | 18 |
|
16 | 19 |
<table> |
... | ... | |
18 | 21 |
<th></th> |
19 | 22 |
<th>[% 'Price Source' | $T8 %]</th> |
20 | 23 |
<th>[% 'Price' | $T8 %]</th> |
24 |
<th [%- IF exnoshow -%]style='display:none'[%- END %]> |
|
25 |
[% 'Price' | $T8 -%]/[%- price_source.record.currency.name %] |
|
26 |
</th> |
|
21 | 27 |
<th>[% 'Best Price' | $T8 %]</th> |
22 | 28 |
<th>[% 'Details' | $T8 %]</th> |
23 | 29 |
</tr> |
... | ... | |
29 | 35 |
[%- END %] |
30 | 36 |
<td>[% 'None (PriceSource)' | $T8 %]</td> |
31 | 37 |
<td>-</td> |
38 |
<td [%- IF exnoshow -%]style='display:none'[%- END %]>-</td> |
|
32 | 39 |
<td></td> |
33 | 40 |
<td></td> |
34 | 41 |
</tr> |
35 | 42 |
[%- FOREACH price IN price_source.available_prices %] |
36 | 43 |
<tr class='listrow'> |
37 | 44 |
[%- IF price_source.record_item.active_price_source != price.source %] |
38 |
<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>
|
|
45 |
<td>[% L.button_tag('kivi.Order.update_price_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ LxERP.format_amount(price.price * exfactor, places) _ '\', ' _ price_editable _ ')', LxERP.t8('Select')) %]</td>
|
|
39 | 46 |
[%- ELSIF price_source.record_item.sellprice * 1 != price.price * 1 %] |
40 |
<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>
|
|
47 |
<td>[% L.button_tag('kivi.Order.update_price_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ LxERP.format_amount(price.price * exfactor, places) _ '\', ' _ price_editable _ ')', LxERP.t8('Update Price')) %]</td>
|
|
41 | 48 |
[%- ELSE %] |
42 | 49 |
<td><b>[% 'Selected' | $T8 %]</b></td> |
43 | 50 |
[% END %] |
44 | 51 |
<td>[% price.source_description | html %]</td> |
45 | 52 |
<td>[% price.price_as_number %]</td> |
53 |
<td [%- IF exnoshow -%]style='display:none'[%- END %]> |
|
54 |
[% LxERP.format_amount(price.price * exfactor, places) %] |
|
55 |
</td> |
|
46 | 56 |
[% IF price.source == best_price.source %] |
47 | 57 |
<td align='center'>•</td> |
48 | 58 |
[% ELSE %] |
Auch abrufbar als: Unified diff
Auftrags-Controller: Wechselkurs in Preisquellen-Dialog berücksichtigen
Bezieht sich auch auf #139
Refs #139