@@ -3064,9 +3035,12 @@ sub update {
sub save {
$lxdebug->enter_sub();
- # check if there is a part number
+ # check if there is a part number - commented out, cause there is an automatic allocation of numbers
# $form->isblank("partnumber", $locale->text(ucfirst $form->{item}." Part Number missing!"));
+ # check if there is a description
+ $form->isblank("description", $locale->text("Part Description missing!"));
+
if ($form->{obsolete}) {
$form->error(
$locale->text(
@@ -3215,6 +3189,7 @@ sub save_as_new {
$lxdebug->enter_sub();
$form->{id} = 0;
+ $form->{partnumber} = "";
&save;
$lxdebug->leave_sub();