Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 64645951

Von Jan Büren vor fast 2 Jahren hinzugefügt

  • ID 646459510fb60f01f513b233c83a97cb6e317d3a
  • Vorgänger 8301beec
  • Nachfolger 523c1e25

design40: eab82 - Zahlungsbewegungen in Fremdwährungen (..)

Unterschiede anzeigen:

templates/design40_webpages/ap/form_header.html
291 291
          <td>
292 292
            [% temp = "exchangerate_"_ i %]
293 293
            [% temp_forex = "forex_"_ i %]
294
            [% IF( $temp_forex || !changeable ) %] [% $temp | html %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]">
295
            [% ELSE %]  <input type="text" name="[% temp %]" size="11" value="[% $temp | html %]"> [% END %]
294
            [% SET fx_paid      = 'fx_paid_'      _ i %]
295
            [% SET record_forex = 'record_forex_' _ i %]
296

  
297
            [% IF( $temp_forex || !changeable ) %]
298
              [% $temp | html %] = [% LxERP.format_amount($fx_paid,2) %] [% currency %] </br>
299
              [% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
300
              <input type="hidden" name="[% temp %]" value="[% $temp | html %]">
301
            [% ELSE %]
302
              <input type="text" name="[% temp %]" size="11" value="[% $temp | html %]">
303
            [% END %]
304

  
296 305
            <input type="hidden" name="[% temp_forex %]" value="[% $temp_forex | html %]">
297 306
          </td>
298 307
        [% END %]
......
318 327
      <td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
319 328
      <td></td>
320 329
      [% IF ( !defaultcurrency || (currency != defaultcurrency) ) %]
321
        <th></th>
330
        <td align="center">[% LxERP.format_amount(fx_totalpaid, 2) | html %] [% currency %]</td>
331
        <input type="hidden" name="fx_totalpaid" value="[% fx_totalpaid %]">
332
      [% ELSE %]
333
        <td></td>
322 334
      [% END %]
323 335
      <td></td>
324
      <td></td>
325 336
    </tr>
326 337
    <tr>
327 338
      <td></td>
templates/design40_webpages/ir/_payments.html
83 83
      <td>
84 84
        [% SET forex        = 'forex_'        _ i %]
85 85
        [% SET exchangerate = 'exchangerate_' _ i %]
86
        [% SET fx_paid      = 'fx_paid_'      _ i %]
87
        [% SET record_forex = 'record_forex_' _ i %]
86 88
        [% IF $forex %]
87 89
          <input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 5) %]">
88
          [% LxERP.format_amount($forex, 5) %]
90
          <input type="hidden" name="record_forex_[% i %]" value="[% $record_forex %]">
91
          <input type="hidden" name="forex_[% i %]"        value="[% $forex %]">
92
          <input type="hidden" name="fx_paid_[% i %]"      value="[% $fx_paid %]">
93
          [% LxERP.format_amount($forex, 5) %] = [% $fx_paid %] [% currency %] </br>
94
          [% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
89 95
        [% ELSE %]
90 96
          [% IF $changeable %]
91 97
            <input type="text" name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 5, 1) %]">
......
115 121
    <td></td>
116 122
    <td></td>
117 123
    <td>[% 'Total' | $T8 %]</td>
118
    <td>[% LxERP.format_amount(totalpaid, 2) | html %]</td>
124
    <td>[% LxERP.format_amount(totalpaid, 2) | html %] [% defaultcurrency %]</td>
125
    <td></td>
126
    [% IF show_exchangerate %]
127
      <td>[% LxERP.format_amount(fx_totalpaid, 2) | html %] [% currency %]</td>
128
      <input type="hidden" name="fx_totalpaid" value="[% fx_totalpaid %]">
129
    [% END %]
119 130
    <td colspan="2"></td>
120 131
  </tr>
132
[% UNLESS show_exchangerate %]
121 133
  <tr>
122 134
    <td></td>
123 135
    <td></td>
......
125 137
    <td>[% LxERP.format_amount(paid_missing, 2) | html %]</td>
126 138
    <td colspan="2"></td>
127 139
  </tr>
140
[% END %]
128 141
  </tfoot>
129 142
</table>
130 143

  
templates/design40_webpages/is/_payments.html
84 84
          <td>
85 85
           [% SET forex        = 'forex_'        _ i %]
86 86
           [% SET exchangerate = 'exchangerate_' _ i %]
87
           [% SET fx_paid      = 'fx_paid_'      _ i %]
88
           [% SET record_forex = 'record_forex_' _ i %]
87 89
           [% IF $forex %]
88 90
             <input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 5) %]">
89
             [% LxERP.format_amount($forex, 5) %]
91
             [% LxERP.format_amount($forex, 5) %] = [% $fx_paid %] [% currency %] </br>
92
             [% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
90 93
           [% ELSE %]
91 94
             [% IF $changeable %]
92 95
               <input type="text" name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 5, 1) %]">
......
112 115
    <tr>
113 116
      <td colspan="2"></td>
114 117
      <td class="right">[% 'Total' | $T8 %]</td>
115
      <td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
116
      <td colspan="2"></td>
118
      <td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %] [% defaultcurrency %]</td>
119
      <td></td>
120
      [% IF show_exchangerate %]
121
        <td align="center">[% LxERP.format_amount(fx_totalpaid, 2) | html %] [% currency %]</td>
122
      [% ELSE %]
123
      [% END %]
124
        <td></td>
117 125
    </tr>
126
[% UNLESS show_exchangerate %]
118 127
    <tr>
119 128
      <td colspan="2"></td>
120 129
      <td class="right">[% 'Missing amount' | $T8 %]</td>
121 130
      <td class="numeric">[% LxERP.format_amount(paid_missing, 2) | html %]</td>
122 131
      <td colspan="2">
123
        <input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
124
        <input type="hidden" name="selectAR_paid" value="[% selectAR_paid %]">
125
        <input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
126
        <input type="hidden" name="oldtotalpaid" value="[% totalpaid %]">
127 132
      </td>
128 133
   </tr>
134
[% END %]
129 135
  </tfoot>
130 136
</table>
137
<input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
138
<input type="hidden" name="selectAR_paid" value="[% selectAR_paid %]">
139
<input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
140
<input type="hidden" name="oldtotalpaid" value="[% totalpaid %]">
131 141

  
132 142
<script type='text/javascript'>
133 143
  $('#is_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val("[% LxERP.format_amount(paid_missing, 2) %]") });

Auch abrufbar als: Unified diff