Commit 1c3aa179 authored by Frank Bergmann's avatar Frank Bergmann

Fixed sorting by valid_from of timesheet prices

parent 08dd8b13
......@@ -93,9 +93,10 @@ ad_proc im_timesheet_price_component { user_id company_id return_url} {
tp.company_id = :company_id
order by
tp.currency,
tp.uom_id,
tp.material_id,
tp.task_type_id desc
coalesce(tp.uom_id, 0),
coalesce(tp.material_id, 0),
coalesce(tp.task_type_id, 0) desc,
coalesce(tp.valid_from, '2000-01-01'::date)
"
set price_rows_html ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment