Revision daf9f2d2
Von Jan Büren vor etwa 1 Jahr hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
505 | 505 |
# currencies |
506 | 506 |
$form->{defaultcurrency} = $form->get_default_currency(\%myconfig); |
507 | 507 |
if ($form->{currency} ne $form->{defaultcurrency} && !$form->{exchangerate}) { |
508 |
my $transdate = $form->{transdate} ? DateTime->from_kivitendo($form->{transdate}) : DateTime->today_local; |
|
508 | 509 |
($form->{exchangerate}, $form->{record_forex}) = $form->{id} |
509 | 510 |
? $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{transdate}, "sell", $form->{id}, 'ap') |
510 |
: $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{transdate}, "sell");
|
|
511 |
: $form->check_exchangerate(\%myconfig, $form->{currency}, $transdate, "sell");
|
|
511 | 512 |
} |
512 | 513 |
|
513 | 514 |
# format amounts |
Auch abrufbar als: Unified diff
Kreditorenbuchung:Fremdwährung, falls es kein transdate gibt, tagesdatum nehmen