Revision a0aab26c
Von Kivitendo Admin vor mehr als 9 Jahren hinzugefügt
SL/DB/PriceRule.pm | ||
---|---|---|
96 | 96 |
my @errors; |
97 | 97 |
push @errors, $::locale->text('The name must not be empty.') if !$self->name; |
98 | 98 |
push @errors, $::locale->text('Price or discount must not be zero.') if !$self->price && !$self->discount && !$self->reduction; |
99 |
push @errors, $::locale->text('Pirce rules must have at least one rule.') if !@{[ $self->items ]};
|
|
99 |
push @errors, $::locale->text('Price rules must have at least one rule.') if !@{[ $self->items ]};
|
|
100 | 100 |
push @errors, $_->validate for $self->items; |
101 | 101 |
|
102 | 102 |
return @errors; |
Auch abrufbar als: Unified diff
Typo gefixed