Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 64645951

Von Jan Büren vor etwa 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
<td>
[% temp = "exchangerate_"_ i %]
[% temp_forex = "forex_"_ i %]
[% IF( $temp_forex || !changeable ) %] [% $temp | html %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]">
[% ELSE %] <input type="text" name="[% temp %]" size="11" value="[% $temp | html %]"> [% END %]
[% SET fx_paid = 'fx_paid_' _ i %]
[% SET record_forex = 'record_forex_' _ i %]
[% IF( $temp_forex || !changeable ) %]
[% $temp | html %] = [% LxERP.format_amount($fx_paid,2) %] [% currency %] </br>
[% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
<input type="hidden" name="[% temp %]" value="[% $temp | html %]">
[% ELSE %]
<input type="text" name="[% temp %]" size="11" value="[% $temp | html %]">
[% END %]
<input type="hidden" name="[% temp_forex %]" value="[% $temp_forex | html %]">
</td>
[% END %]
......
<td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
<td></td>
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %]
<th></th>
<td align="center">[% LxERP.format_amount(fx_totalpaid, 2) | html %] [% currency %]</td>
<input type="hidden" name="fx_totalpaid" value="[% fx_totalpaid %]">
[% ELSE %]
<td></td>
[% END %]
<td></td>
<td></td>
</tr>
<tr>
<td></td>
templates/design40_webpages/ir/_payments.html
<td>
[% SET forex = 'forex_' _ i %]
[% SET exchangerate = 'exchangerate_' _ i %]
[% SET fx_paid = 'fx_paid_' _ i %]
[% SET record_forex = 'record_forex_' _ i %]
[% IF $forex %]
<input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 5) %]">
[% LxERP.format_amount($forex, 5) %]
<input type="hidden" name="record_forex_[% i %]" value="[% $record_forex %]">
<input type="hidden" name="forex_[% i %]" value="[% $forex %]">
<input type="hidden" name="fx_paid_[% i %]" value="[% $fx_paid %]">
[% LxERP.format_amount($forex, 5) %] = [% $fx_paid %] [% currency %] </br>
[% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
[% ELSE %]
[% IF $changeable %]
<input type="text" name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 5, 1) %]">
......
<td></td>
<td></td>
<td>[% 'Total' | $T8 %]</td>
<td>[% LxERP.format_amount(totalpaid, 2) | html %]</td>
<td>[% LxERP.format_amount(totalpaid, 2) | html %] [% defaultcurrency %]</td>
<td></td>
[% IF show_exchangerate %]
<td>[% LxERP.format_amount(fx_totalpaid, 2) | html %] [% currency %]</td>
<input type="hidden" name="fx_totalpaid" value="[% fx_totalpaid %]">
[% END %]
<td colspan="2"></td>
</tr>
[% UNLESS show_exchangerate %]
<tr>
<td></td>
<td></td>
......
<td>[% LxERP.format_amount(paid_missing, 2) | html %]</td>
<td colspan="2"></td>
</tr>
[% END %]
</tfoot>
</table>
templates/design40_webpages/is/_payments.html
<td>
[% SET forex = 'forex_' _ i %]
[% SET exchangerate = 'exchangerate_' _ i %]
[% SET fx_paid = 'fx_paid_' _ i %]
[% SET record_forex = 'record_forex_' _ i %]
[% IF $forex %]
<input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 5) %]">
[% LxERP.format_amount($forex, 5) %]
[% LxERP.format_amount($forex, 5) %] = [% $fx_paid %] [% currency %] </br>
[% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
[% ELSE %]
[% IF $changeable %]
<input type="text" name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 5, 1) %]">
......
<tr>
<td colspan="2"></td>
<td class="right">[% 'Total' | $T8 %]</td>
<td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
<td colspan="2"></td>
<td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %] [% defaultcurrency %]</td>
<td></td>
[% IF show_exchangerate %]
<td align="center">[% LxERP.format_amount(fx_totalpaid, 2) | html %] [% currency %]</td>
[% ELSE %]
[% END %]
<td></td>
</tr>
[% UNLESS show_exchangerate %]
<tr>
<td colspan="2"></td>
<td class="right">[% 'Missing amount' | $T8 %]</td>
<td class="numeric">[% LxERP.format_amount(paid_missing, 2) | html %]</td>
<td colspan="2">
<input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
<input type="hidden" name="selectAR_paid" value="[% selectAR_paid %]">
<input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
<input type="hidden" name="oldtotalpaid" value="[% totalpaid %]">
</td>
</tr>
[% END %]
</tfoot>
</table>
<input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
<input type="hidden" name="selectAR_paid" value="[% selectAR_paid %]">
<input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
<input type="hidden" name="oldtotalpaid" value="[% totalpaid %]">
<script type='text/javascript'>
$('#is_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val("[% LxERP.format_amount(paid_missing, 2) %]") });

Auch abrufbar als: Unified diff