X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAR.pm;h=04af973506d0bed8d9b3d0de05c1eb7743f63cfa;hb=3ff4ec3b71a043e3802ef21838a0cee6d8535e4e;hp=df470761c849030f7b36f78a6ba114c6aae850c5;hpb=ad73be9c179367f2e85c2297297581ca092738f1;p=kivitendo-erp.git diff --git a/SL/AR.pm b/SL/AR.pm index df470761c..04af97350 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -54,7 +54,7 @@ sub post_transaction { my $dbh = $provided_dbh ? $provided_dbh : $form->dbconnect_noauto($myconfig); $form->{defaultcurrency} = $form->get_default_currency($myconfig); - delete $form->{currency} unless $form->{default_currency}; + delete $form->{currency} unless $form->{defaultcurrency}; # set exchangerate $form->{exchangerate} = ($form->{currency} eq $form->{defaultcurrency}) ? 1 : @@ -349,7 +349,7 @@ sub post_payment { $form->{exchangerate} = $form->format_amount($myconfig, $form->{exchangerate}); $form->{defaultcurrency} = $form->get_default_currency($myconfig); - delete $form->{currency} unless $form->{default_currency}; + delete $form->{currency} unless $form->{defaultcurrency}; # Get the AR accno (which is normally done by Form::create_links()). $query =