Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9911cb13

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

  • ID 9911cb1300ad453391cd11832fc36b7a7fb9fd06
  • Vorgänger d10ce474
  • Nachfolger 36a93d2e

WebTemplates für Wechselkurs in Zahlungen anzeigen (alle Buchungsmasken)

Unterschiede anzeigen:

templates/webpages/ap/form_header.html
<input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
[%- END %]
[% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
[% L.hidden_tag("record_forex", record_forex) %]
[% END %]
</tr>
......
</td>
[% temp = "paid_"_ i %]
<td align="center">
<td align="right">
[% IF( changeable ) %]
<input name="[% temp %]" size="11" data-validate="number" class="numeric" value="[% $temp | html %]" id="[%- 'payment_' _ temp -%]">
[% ELSE %]
[% $temp | html %]
<input type="hidden" name="[% temp %]" value="[% $temp | html %]">
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> [% defaultcurrency %]
[% END %]
</td>
......
<td></td>
<td></td>
<td align="center">[% 'Total' | $T8 %]</td>
<td align="center">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
<td align="right">[% LxERP.format_amount(totalpaid, 2) | html %] [% defaultcurrency %]</td>
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %]
<td></td>
<td align="center">[% LxERP.format_amount(fx_totalpaid, 2) | html %] [% currency %]</td>
<input type="hidden" name="fx_totalpaid" value="[% fx_totalpaid %]">
<input type="hidden" name="is_linked_bank_transaction" value="[% is_linked_bank_transaction %]">
[% END %]
</tr>
......
<td></td>
<td></td>
<td align="center">[% 'Missing amount' | $T8 %]</td>
<td align="center">[% LxERP.format_amount(paid_missing, 2) | html %]</td>
<td align="right">[% LxERP.format_amount(paid_missing, 2) | html %] [% defaultcurrency %]</td>
</tr>
</table>
[% END %]
templates/webpages/ar/form_header.html
[%- IF row.changeable %]
<input name="paid_[% loop.count %]" size=11 data-validate="number" class="numeric" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
[%- ELSE %]
[% row.paid | html %]<input type=hidden name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
[% row.paid | html %]<input type=hidden name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]"> [% defaultcurrency %]
[%- END %]
</td>
<td>
......
[%- IF show_exch %]
<td align=center>
[%- IF row.forex || !row.changeable%]
<input type=hidden name="exchangerate_[% loop.count %]" value="[%- LxERP.format_amount(row.exchangerate, 5, 1) -%]">[%- LxERP.format_amount(row.exchangerate, 5, 1) -%]
<input type=hidden name="exchangerate_[% loop.count %]" value="[%- LxERP.format_amount(row.exchangerate, 5, 1) -%]">
[%- LxERP.format_amount(row.exchangerate, 5, 0) -%] = [% LxERP.format_amount(row.fx_paid, 2) %] [% currency %]</br>
[% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
[%- ELSE %]
<input name="exchangerate_[% loop.count %]" size=10 value="[%- LxERP.format_amount(row.exchangerate, 5, 1) -%]">
[%- END %]
......
<td></td>
<td></td>
<td align="center">[% 'Total' | $T8 %]</td>
<td align="center">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
<td align="center">[% LxERP.format_amount(totalpaid, 2) | html %] [% defaultcurrency %] </td>
[% IF show_exch %]
<td></td>
<td align="center">[% LxERP.format_amount(fx_totalpaid, 2) | html %] [% currency %]</td>
<input type="hidden" name="fx_totalpaid" value="[% fx_totalpaid %]">
<input type="hidden" name="is_linked_bank_transaction" value="[% is_linked_bank_transaction %]">
[% END %]
</tr>
<tr>
<td></td>
templates/webpages/ir/_payments.html
<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>
[% LxERP.format_amount($forex, 5) %] = [% LxERP.format_amount($fx_paid, 5) %] [% currency %] </br>
[% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
[% ELSE %]
[% IF $changeable %]
templates/webpages/is/_payments.html
[% 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) %] = [% $fx_paid %] [% currency %] </br>
[% LxERP.format_amount($forex, 5) %] = [% LxERP.format_amount($fx_paid, 5) %] [% currency %] </br>
[% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
[% ELSE %]
[% IF $changeable %]

Auch abrufbar als: Unified diff