From: Moritz Bunkus Date: Mon, 29 Jan 2007 11:11:09 +0000 (+0000) Subject: Bei Vorgängen auch Positionen speichern und ausdrucken, deren Anzahl = 0 ist (z.B... X-Git-Tag: release-2.4.2~227 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;ds=sidebyside;h=8c89bb02f1e21e7f1d0d0152ef992b137dc47068;p=kivitendo-erp.git Bei Vorgängen auch Positionen speichern und ausdrucken, deren Anzahl = 0 ist (z.B. für Alternativpositionen, die die Gesamtsumme nicht beeinflussen sollen). --- diff --git a/SL/IR.pm b/SL/IR.pm index 3ebae9653..d79e0fd5d 100644 --- 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 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 diff --git a/SL/OE.pm b/SL/OE.pm index 200eeae9d..7bd3853ca 100644 --- 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}, ....