X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/168836cf2b4967a5fb2332867b329785cccc932a..c0713b66e59e458d4966b8954ec1c835e2bc0c5b:/SL/DB/Manager/Order.pm diff --git a/SL/DB/Manager/Order.pm b/SL/DB/Manager/Order.pm index 69aa26679..d844683ec 100644 --- a/SL/DB/Manager/Order.pm +++ b/SL/DB/Manager/Order.pm @@ -35,9 +35,16 @@ sub _sort_spec { }, columns => { SIMPLE => 'ALL', - customer => 'customer.name', - vendor => 'vendor.name', + customer => 'lower(customer.name)', + vendor => 'lower(vendor.name)', globalprojectnumber => 'lower(globalproject.projectnumber)', + + # Bug in Rose::DB::Object: the next should be + # "globalproject.project_type.description". This workaround will + # only work if no other table with "project_type" is visible in + # the current query + globalproject_type => 'lower(project_type.description)', + map { ( $_ => "lower(oe.$_)" ) } qw(ordnumber quonumber cusordnumber shippingpoint shipvia notes intnotes transaction_description), }); }