1 package SL::DB::Business;
5 use SL::DB::MetaSetup::Business;
6 use SL::DB::Manager::Business;
8 __PACKAGE__->meta->initialize;
14 push @errors, $::locale->text('The description is missing.') if !$self->description;
15 push @errors, $::locale->text('The discount must not be negative.') if $self->discount < 0;
16 push @errors, $::locale->text('The discount must be less than 100%.') if $self->discount >= 1;