Skip to content

Commit

Permalink
update_exchangerate prüft in Abhängigkeit des Skript
Browse files Browse the repository at this point in the history
Entsprechend script am Anfang der Routine setzen, damit alle
Aufrufe von update_exchangerate vom richtigen "caller" ausgehen
  • Loading branch information
kivijan committed Mar 5, 2024
1 parent 1166b3f commit 78ec52f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SL/AP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ sub _post_transaction {

$form->{defaultcurrency} = $form->get_default_currency($myconfig);
$form->{taxincluded} = 0 unless $form->{taxincluded};
$form->{script} = 'ap.pl' unless $form->{script};

# make sure to have a id
my ($query, $sth, @values);
Expand Down Expand Up @@ -412,7 +413,6 @@ sub _post_transaction {

# update exchange rate record
if (($form->{currency} ne $form->{defaultcurrency}) && !$exchangerate) {
$form->{script} = 'ap.pl';
$form->update_exchangerate($dbh, $form->{currency},
$form->{"datepaid_$i"},
0, $form->{"exchangerate_$i"});
Expand Down

0 comments on commit 78ec52f

Please sign in to comment.