Revision ae45c5b7
Von Sven Schöling vor fast 14 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
244 | 244 |
$form->{forex} = $form->check_exchangerate( \%myconfig, $form->{currency}, $form->{transdate}, 'sell'); |
245 | 245 |
$form->{exchangerate} = $form->{forex} if $form->{forex}; |
246 | 246 |
|
247 |
|
|
248 | 247 |
# format amounts |
249 |
$form->{exchangerate} = |
|
250 |
$form->format_amount(\%myconfig, $form->{exchangerate}); |
|
251 |
if ($form->{exchangerate} == 0) { |
|
252 |
$form->{exchangerate} = ""; |
|
253 |
} |
|
254 |
$form->{creditlimit} = |
|
255 |
$form->format_amount(\%myconfig, $form->{creditlimit}, 0, "0"); |
|
256 |
$form->{creditremaining} = |
|
257 |
$form->format_amount(\%myconfig, $form->{creditremaining}, 0, "0"); |
|
248 |
$form->{exchangerate} = $form->{exchangerate} ? $form->format_amount(\%myconfig, $form->{exchangerate}) : ''; |
|
249 |
$form->{creditlimit} = $form->format_amount(\%myconfig, $form->{creditlimit}, 0, "0"); |
|
250 |
$form->{creditremaining} = $form->format_amount(\%myconfig, $form->{creditremaining}, 0, "0"); |
|
258 | 251 |
|
259 | 252 |
my $exchangerate = qq| |
260 | 253 |
<input type=hidden name=forex value=$form->{forex}> |
Auch abrufbar als: Unified diff
Einkaufsrechnungen: Nicht auf den bereits formatierten Wechselkurs prüfen.
Fix für Bug 1517.