Bugzilla Eintrag 856 EAN auch fuers Einlagern ... Teil II von III
[kivitendo-erp.git] / SL / AP.pm
index 5143245..e2709f7 100644 (file)
--- a/SL/AP.pm
+++ b/SL/AP.pm
@@ -578,6 +578,7 @@ sub post_payment {
 
   ($form->{defaultcurrency}) = selectrow_query($form, $dbh, qq|SELECT curr FROM defaults|);
   $form->{defaultcurrency}   = (split m/:/, $form->{defaultcurrency})[0];
+  $form->{currency}          = $form->{defaultcurrency} if ($form->{defaultcurrency} && ($form->{currency} =~ m/^\s*$/));
 
   $form->{exchangerate}      = $form->format_amount($myconfig, $form->{exchangerate});