Revision dbbf8923
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
SL/DB/PaymentTerm.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 | 1 |
package SL::DB::PaymentTerm; |
5 | 2 |
|
6 | 3 |
use strict; |
7 | 4 |
|
8 | 5 |
use SL::DB::MetaSetup::PaymentTerm; |
6 |
use SL::DB::Manager::PaymentTerm; |
|
7 |
use SL::DB::Helper::ActsAsList; |
|
8 |
use SL::DB::Helper::TranslatedAttributes; |
|
9 |
|
|
10 |
sub validate { |
|
11 |
my ($self) = @_; |
|
12 |
|
|
13 |
my @errors; |
|
14 |
push @errors, $::locale->text('The description is missing.') if !$self->description; |
|
15 |
push @errors, $::locale->text('The long description is missing.') if !$self->description_long; |
|
9 | 16 |
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
|
|
11 |
__PACKAGE__->meta->make_manager_class;
|
|
17 |
return @errors;
|
|
18 |
}
|
|
12 | 19 |
|
13 | 20 |
1; |
Auch abrufbar als: Unified diff
Verwaltung von Zahlungsbedingungen auf Controller/Model umgestellt
Conflicts: