Revision 79d61c3c
Von Kivitendo Admin vor etwa 8 Jahren hinzugefügt
SL/DB/Part.pm | ||
---|---|---|
72 | 72 |
my ($self) = @_; |
73 | 73 |
|
74 | 74 |
my @errors; |
75 |
push @errors, $::locale->text('The partnumber is missing.') unless $self->partnumber;
|
|
75 |
push @errors, $::locale->text('The partnumber is missing.') if $self->id and !$self->partnumber;
|
|
76 | 76 |
push @errors, $::locale->text('The unit is missing.') unless $self->unit; |
77 | 77 |
push @errors, $::locale->text('The buchungsgruppe is missing.') unless $self->buchungsgruppen_id or $self->buchungsgruppe; |
78 | 78 |
|
Auch abrufbar als: Unified diff
Part validate