]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/ir.pl
Merge branch 'master' of vc.linet-services.de:public/lx-office-erp
[mfinanz.git] / bin / mozilla / ir.pl
index 2ace9a7b434c58c380b4e810f8846f4376b0887b..25831b2eafd03097f6b8bea670ff9f32b81515c1 100644 (file)
@@ -463,10 +463,11 @@ sub update {
 
   $main::auth->assert('vendor_invoice_edit');
 
-#  map { $form->{$_} = $form->parse_amount(\%myconfig, $form->{$_}) } qw(exchangerate creditlimit creditremaining);
-
   &check_name('vendor');
 
+  if (!$form->{forex}) {        # read exchangerate from input field (not hidden)
+    $form->{exchangerate} = $form->parse_amount(\%myconfig, $form->{exchangerate});
+  }
   $form->{forex}        = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{invdate}, 'sell');
   $form->{exchangerate} = $form->{forex} if $form->{forex};