PriceSource: Preisselektion auf Popup umgestellt.
[kivitendo-erp.git] / templates / webpages / oe / price_sources_dialog.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE L %]
4 [%- USE LxERP %]
5 [% SET best_price = price_source.best_price %]
6   <table>
7    <tr class='listheading'>
8     <th></th>
9     <th>[% 'Price Source' | $T8 %]</th>
10     <th>[% 'Price' | $T8 %]</th>
11     <th>[% 'Best Price' | $T8 %]</th>
12    </tr>
13    <tr class='listrow'>
14 [%- IF price_source.record_item.active_price_source %]
15     <td>[% L.button_tag('kivi.io.update_price_source(' _ FORM.row _ ', \'\')', LxERP.t8('Select')) %]</td>
16 [%- ELSE %]
17     <td><b>[% 'Selected' | $T8 %]</b></td>
18 [%- END %]
19     <td>[% 'None (PriceSource)' | $T8 %]</td>
20     <td>-</td>
21     <td></td>
22    </tr>
23    [%- FOREACH price IN price_source.available_prices %]
24     <tr class='listrow'>
25 [%- IF price_source.record_item.active_price_source != price.source %]
26      <td>[% L.button_tag('kivi.io.update_price_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\')', LxERP.t8('Select')) %]</td>
27 [%- ELSIF price_source.record_item.sellprice_as_number != price.price_as_number %]
28      <td>[% L.button_tag('kivi.io.update_price_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\')', LxERP.t8('Update Price')) %]</td>
29 [%- ELSE %]
30     <td><b>[% 'Selected' | $T8 %]</b></td>
31 [% END %]
32      <td>[% price.full_description | html %]</td>
33      <td>[% price.price_as_number %]</td>
34 [% IF price.source == best_price.source %]
35      <td align='center'>&#x2022;</td>
36 [% ELSE %]
37      <td></td>
38 [% END %]
39     </tr>
40    [%- END %]
41   </table>