X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/3816bb5160e9ccc0652082434f2d3f07b9ea7cb1..5b8e9fcb2f9c94d69519c927b8aa59184d93cea3:/SL/DB/Manager/Shipto.pm diff --git a/SL/DB/Manager/Shipto.pm b/SL/DB/Manager/Shipto.pm new file mode 100644 index 000000000..50947a37a --- /dev/null +++ b/SL/DB/Manager/Shipto.pm @@ -0,0 +1,24 @@ +package SL::DB::Manager::Shipto; + +use strict; + +use SL::DB::Helper::Manager; +use base qw(SL::DB::Helper::Manager); + +use SL::DB::Helper::Sorted; + +sub object_class { 'SL::DB::Shipto' } + +__PACKAGE__->make_manager_methods; + +sub _sort_spec { + return ( + default => [ 'full_address', 1 ], + columns => { + SIMPLE => 'ALL', + full_address => '( lower(shipto.shiptoname) || lower(shipto.shiptostreet) || lower(shipto.shiptocity) )', + map { ( $_ => "lower(shipto.shipto$_)" ) } qw(city contact country department_1 department_2 email fax name phone street zipcode) + }); +} + +1;