1 package SL::DB::Manager::Vendor;
5 use SL::DB::Helper::Manager;
6 use SL::DB::Helper::Sorted;
7 use SL::DB::Helper::Paginated;
8 use SL::DB::Helper::Filtered;
9 use base qw(SL::DB::Helper::Manager);
11 sub object_class { 'SL::DB::Vendor' }
13 __PACKAGE__->make_manager_methods;
15 __PACKAGE__->add_filter_specs(
17 my ($key, $value, $prefix) = @_;
18 return or => [ map { $prefix . $_ => $value } qw(vendornumber name) ]
24 default => [ 'name', 1 ],
27 map { ( $_ => "lower(vendor.$_)" ) } qw(account_number bank bank_code bcc bic cc city contact country department_1 department_2 depositor email fax gln greeting homepage iban language
28 name notes phone street taxnumber user_password username ustid v_customer_id vendornumber zipcode)