]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/OE.pm
Bei Vorgängen auch Positionen speichern und ausdrucken, deren Anzahl = 0 ist (z.B...
[kivitendo-erp.git] / SL / OE.pm
index 200eeae9d4985ed17096bfdccaf8f1cd1a62b468..7bd3853ca2ec6042f3e490571677adec3c1519f9 100644 (file)
--- a/SL/OE.pm
+++ b/SL/OE.pm
@@ -240,7 +240,7 @@ sub save {
         $form->parse_amount($myconfig, $form->{"${_}_$i"})
     } qw(qty ship);
 
-    if ($form->{"qty_$i"}) {
+    if ($form->{"id_$i"}) {
 
       # get item baseunit
       $query = qq|SELECT p.unit
@@ -1028,7 +1028,7 @@ sub order_details {
 
     $form->{"qty_$i"} = $form->parse_amount($myconfig, $form->{"qty_$i"});
 
-    if ($form->{"qty_$i"} != 0) {
+    if ($form->{"id_$i"} != 0) {
 
       # add number, description and qty to $form->{number}, ....