Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 89b26688

Von Sven Schöling vor mehr als 9 Jahren hinzugefügt

  • ID 89b2668811eac6023ad58322e2f9970ddb6a27c9
  • Vorgänger c653b98f
  • Nachfolger 766ed2a6

PriceSource: Rabattbehandlung

Unterschiede anzeigen:

templates/webpages/oe/price_sources_dialog.html
3 3
[%- USE L %]
4 4
[%- USE LxERP %]
5 5
[% SET best_price = price_source.best_price %]
6
[% SET best_discount = price_source.best_discount %]
7
  <h2>[% 'Prices' | $T8 %]</h2>
8

  
6 9
  <table>
7 10
   <tr class='listheading'>
8 11
    <th></th>
9 12
    <th>[% 'Price Source' | $T8 %]</th>
10 13
    <th>[% 'Price' | $T8 %]</th>
11 14
    <th>[% 'Best Price' | $T8 %]</th>
15
    <th>[% 'Details' | $T8 %]</th>
12 16
   </tr>
13 17
   <tr class='listrow'>
14 18
[%- IF price_source.record_item.active_price_source %]
......
19 23
    <td>[% 'None (PriceSource)' | $T8 %]</td>
20 24
    <td>-</td>
21 25
    <td></td>
26
    <td></td>
22 27
   </tr>
23 28
   [%- FOREACH price IN price_source.available_prices %]
24 29
    <tr class='listrow'>
25 30
[%- IF price_source.record_item.active_price_source != price.source %]
26 31
     <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 %]
32
[%- ELSIF price_source.record_item.sellprice != price.price %]
28 33
     <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 34
[%- ELSE %]
30 35
    <td><b>[% 'Selected' | $T8 %]</b></td>
31 36
[% END %]
32
     <td>[% price.full_description | html %]</td>
37
     <td>[% price.source_description | html %]</td>
33 38
     <td>[% price.price_as_number %]</td>
34 39
[% IF price.source == best_price.source %]
35 40
     <td align='center'>&#x2022;</td>
36 41
[% ELSE %]
37 42
     <td></td>
38 43
[% END %]
44
     <td>[% price.description | html %]</td>
45
    </tr>
46
   [%- END %]
47
  </table>
48

  
49
  <h2>[% 'Discounts' | $T8 %]</h2>
50

  
51
  <table>
52
   <tr class='listheading'>
53
    <th></th>
54
    <th>[% 'Price Source' | $T8 %]</th>
55
    <th>[% 'Discount' | $T8 %]</th>
56
    <th>[% 'Best Discount' | $T8 %]</th>
57
    <th>[% 'Details' | $T8 %]</th>
58
   </tr>
59
   <tr class='listrow'>
60
[%- IF price_source.record_item.active_discount_source %]
61
    <td>[% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'\')', LxERP.t8('Select')) %]</td>
62
[%- ELSE %]
63
    <td><b>[% 'Selected' | $T8 %]</b></td>
64
[%- END %]
65
    <td>[% 'None (PriceSource Discount)' | $T8 %]</td>
66
    <td>-</td>
67
    <td></td>
68
    <td></td>
69
   </tr>
70
   [%- FOREACH price IN price_source.available_discounts %]
71
    <tr class='listrow'>
72
[%- IF price_source.record_item.active_discount_source != price.source %]
73
     <td>[% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ price.discount_as_percent _ '\')', LxERP.t8('Select')) %]</td>
74
[%- ELSIF price_source.record_item.discount != price.discount * 100 %]
75
     <td>[% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ price.discount_as_percent  _ '\')', LxERP.t8('Update Discount')) %]</td>
76
[%- ELSE %]
77
    <td><b>[% 'Selected' | $T8 %]</b></td>
78
[% END %]
79
     <td>[% price.source_description | html %]</td>
80
     <td>[% price.discount_as_percent %] %</td>
81
[% IF price.source == best_discount.source %]
82
     <td align='center'>&#x2022;</td>
83
[% ELSE %]
84
     <td></td>
85
[% END %]
86
     <td>[% price.description | html %]</td>
39 87
    </tr>
40 88
   [%- END %]
41 89
  </table>

Auch abrufbar als: Unified diff