X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/f893eda30f6dc4c793f3e51f936d676720898432..8c89bb02f1e21e7f1d0d0152ef992b137dc47068:/SL/IS.pm diff --git a/SL/IS.pm b/SL/IS.pm index 1a36e2c9a..68989b372 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -103,7 +103,7 @@ sub invoice_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}, if ($form->{"subtotal_$i"} && !$subtotal_header) { @@ -551,7 +551,7 @@ sub post_invoice { $form->{"qty_$i"} *= -1; } - if ($form->{"qty_$i"} != 0) { + if ($form->{"id_$i"}) { # get item baseunit $query = qq|SELECT p.unit