X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FManager%2FOrder.pm;h=e03386d0441beba4a0913db38d79d2bf6cc3acb9;hb=1cc2d84b58c54133d8d948d85994736f82f2fc88;hp=3c76073e8cebffd6d20bbcf52a94221638e03c5b;hpb=fd0a62ab6e04848235d609db53ad90a39dc921c8;p=kivitendo-erp.git 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), }); }