X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAR.pm;h=04af973506d0bed8d9b3d0de05c1eb7743f63cfa;hb=8484285f05cdb419d89c4385d8889117bbd2df62;hp=df470761c849030f7b36f78a6ba114c6aae850c5;hpb=805ec79a9335179b0a3831874e606791ff027810;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 =