From a078143172d9765bef9a167f09a5adbbb2b43de5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 3 Sep 2009 10:57:07 +0200 Subject: [PATCH] Dienstleistungen haben kein onhand, ergo hindert onhand auch nicht am speichern. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1133. --- bin/mozilla/ic.pl | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index dd8cc46a5..1cd8ce5fc 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1753,13 +1753,8 @@ sub save { # check if there is a description $form->isblank("description", $locale->text("Part Description missing!")); - if ($form->{obsolete}) { - $form->error( - $locale->text( - "Inventory quantity must be zero before you can set this $form->{item} obsolete!" - )) - if ($form->{onhand} * 1); - } + $form->error($locale->text("Inventory quantity must be zero before you can set this $form->{item} obsolete!")) + if $form->{obsolete} && $form->{onhand} * 1 && $form->{item} ne 'service'; if (!$form->{buchungsgruppen_id}) { $form->error($locale->text("Parts must have an entry type.") . " " . -- 2.20.1