Revision a0781431
Von Sven Schöling vor etwa 15 Jahren hinzugefügt
bin/mozilla/ic.pl | ||
---|---|---|
1753 | 1753 |
# check if there is a description |
1754 | 1754 |
$form->isblank("description", $locale->text("Part Description missing!")); |
1755 | 1755 |
|
1756 |
if ($form->{obsolete}) { |
|
1757 |
$form->error( |
|
1758 |
$locale->text( |
|
1759 |
"Inventory quantity must be zero before you can set this $form->{item} obsolete!" |
|
1760 |
)) |
|
1761 |
if ($form->{onhand} * 1); |
|
1762 |
} |
|
1756 |
$form->error($locale->text("Inventory quantity must be zero before you can set this $form->{item} obsolete!")) |
|
1757 |
if $form->{obsolete} && $form->{onhand} * 1 && $form->{item} ne 'service'; |
|
1763 | 1758 |
|
1764 | 1759 |
if (!$form->{buchungsgruppen_id}) { |
1765 | 1760 |
$form->error($locale->text("Parts must have an entry type.") . " " . |
Auch abrufbar als: Unified diff
Dienstleistungen haben kein onhand, ergo hindert onhand auch nicht am speichern.
Fix für Bug 1133.