]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/IS.pm
Bei Vorgängen auch Positionen speichern und ausdrucken, deren Anzahl = 0 ist (z.B...
[kivitendo-erp.git] / SL / IS.pm
index 1a36e2c9acf1a6aabcb075e7a16e508000a15380..68989b372068c1b057a9bcbaaa76d3058492e185 100644 (file)
--- 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