From 8c89bb02f1e21e7f1d0d0152ef992b137dc47068 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 29 Jan 2007 11:11:09 +0000 Subject: [PATCH] =?utf8?q?Bei=20Vorg=C3=A4ngen=20auch=20Positionen=20speic?= =?utf8?q?hern=20und=20ausdrucken,=20deren=20Anzahl=20=3D=200=20ist=20(z.B?= =?utf8?q?.=20f=C3=BCr=20Alternativpositionen,=20die=20die=20Gesamtsumme?= =?utf8?q?=20nicht=20beeinflussen=20sollen).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IR.pm | 2 +- SL/IS.pm | 4 ++-- SL/OE.pm | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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}, .... -- 2.20.1