Revision 3e4e42fa
Von Jan Büren vor fast 2 Jahren hinzugefügt
templates/design40_webpages/ap/form_header.html | ||
---|---|---|
287 | 287 |
<td> |
288 | 288 |
[% temp = "exchangerate_"_ i %] |
289 | 289 |
[% temp_forex = "forex_"_ i %] |
290 |
[% IF( $temp_forex || !changeable ) %] [% $temp | html %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
291 |
[% ELSE %] <input type="text" name="[% temp %]" size="11" value="[% $temp | html %]"> [% END %] |
|
290 |
[% SET fx_paid = 'fx_paid_' _ i %] |
|
291 |
[% SET record_forex = 'record_forex_' _ i %] |
|
292 |
|
|
293 |
[% IF( $temp_forex || !changeable ) %] |
|
294 |
[% $temp | html %] = [% LxERP.format_amount($fx_paid,2) %] [% currency %] </br> |
|
295 |
[% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %] |
|
296 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
297 |
[% ELSE %] |
|
298 |
<input type="text" name="[% temp %]" size="11" value="[% $temp | html %]"> |
|
299 |
[% END %] |
|
300 |
|
|
292 | 301 |
<input type="hidden" name="[% temp_forex %]" value="[% $temp_forex | html %]"> |
293 | 302 |
</td> |
294 | 303 |
[% END %] |
... | ... | |
314 | 323 |
<td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]</td> |
315 | 324 |
<td></td> |
316 | 325 |
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] |
317 |
<th></th> |
|
326 |
<td align="center">[% LxERP.format_amount(fx_totalpaid, 2) | html %] [% currency %]</td> |
|
327 |
<input type="hidden" name="fx_totalpaid" value="[% fx_totalpaid %]"> |
|
328 |
[% ELSE %] |
|
329 |
<td></td> |
|
318 | 330 |
[% END %] |
319 | 331 |
<td></td> |
320 |
<td></td> |
|
321 | 332 |
</tr> |
322 | 333 |
<tr> |
323 | 334 |
<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
design40: eab82 - Zahlungsbewegungen in Fremdwährungen (..)