Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 341d9fbb

Von Jan Büren vor mehr als 2 Jahren hinzugefügt

  • ID 341d9fbbf3037cb8f75bbd564a5567382e0bcece
  • Vorgänger aec14b51
  • Nachfolger 3c3d13d8

Wechselkurs beim Laden des Belegs in form_header oder retrieve_invoice holen

Unterschiede anzeigen:

bin/mozilla/is.pl
if (!$form->{forex}) { # read exchangerate from input field (not hidden)
$form->{exchangerate} = $form->parse_amount(\%myconfig, $form->{exchangerate}) unless $recursive_call;
}
$form->{forex} = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{invdate}, 'buy');
($form->{forex}, $form->{record_forex}) = $form->check_exchangerate(\%myconfig, $form->{currency},
$form->{invdate}, 'buy', $form->{id}, 'ar');
$form->{exchangerate} = $form->{forex} if $form->{forex};
for my $i (1 .. $form->{paidaccounts}) {
next unless $form->{"paid_$i"};
map { $form->{"${_}_$i"} = $form->parse_amount(\%myconfig, $form->{"${_}_$i"}) } qw(paid exchangerate);

Auch abrufbar als: Unified diff