admin muss mit login.pl nicht mit am.pl verknuepft werden.
[kivitendo-erp.git] / SL / IR.pm
index 3ebae96..d79e0fd 100644 (file)
--- a/SL/IR.pm
+++ b/SL/IR.pm
@@ -112,7 +112,7 @@ sub post_invoice {
       $form->{"inventory_accno_$i"} = $form->{"expense_accno_$i"};
     }
     
-    if ($form->{"qty_$i"} != 0) {
+    if ($form->{"id_$i"}) {
 
       # get item baseunit
       $query = qq|SELECT p.unit