From: Sven Schöling Date: Thu, 3 Sep 2009 08:57:07 +0000 (+0200) Subject: Dienstleistungen haben kein onhand, ergo hindert onhand auch nicht am speichern. X-Git-Tag: release-2.6.1beta1~307 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a078143172d9765bef9a167f09a5adbbb2b43de5;p=kivitendo-erp.git Dienstleistungen haben kein onhand, ergo hindert onhand auch nicht am speichern. Fix für Bug 1133. --- 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.") . " " .