X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/fd0a62ab6e04848235d609db53ad90a39dc921c8..ada964d139eb652502bbdec96adf8634e49d8872:/SL/DB/Manager/Order.pm diff --git a/SL/DB/Manager/Order.pm b/SL/DB/Manager/Order.pm index 3c76073e8..e03386d04 100644 --- a/SL/DB/Manager/Order.pm +++ b/SL/DB/Manager/Order.pm @@ -30,12 +30,21 @@ sub _sort_spec { nulls => { transaction_description => 'FIRST', customer_name => 'FIRST', + vendor_name => 'FIRST', default => 'LAST', }, columns => { SIMPLE => 'ALL', customer => 'customer.name', + vendor => '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), }); }