OE->save() parst verschiedene Zahlen. Das ist beim Umwandeln in anderen Formulartypen...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 11 Jan 2007 14:56:50 +0000 (14:56 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 11 Jan 2007 14:56:50 +0000 (14:56 +0000)
bin/mozilla/oe.pl

index e281da7..2537eaf 100644 (file)
@@ -2165,8 +2165,7 @@ sub invoice {
   # if not it's most likely a collective order, which can't be saved back
   # so they just have to be closed
   if (($form->{ordnumber} ne '') || ($form->{quonumber} ne '')) {
-    relink_accounts();
-    OE->save(\%myconfig, \%$form);
+    OE->close_order(\%myconfig, \%$form);
   } else {
     OE->close_orders(\%myconfig, \%$form);
   }
@@ -2231,6 +2230,13 @@ sub invoice {
 
   $form->{creditremaining} -= ($form->{oldinvtotal} - $form->{ordtotal});
 
+  for $i (1 .. $form->{rowcount}) {
+    map({ $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig,
+                                                     $form->{"${_}_${i}"})
+            if ($form->{"${_}_${i}"}) }
+        qw(ship qty sellprice listprice basefactor));
+  }
+
   &prepare_invoice;
 
   # format amounts