Commit 0040abaf authored by Frank Bergmann's avatar Frank Bergmann

cosine #5667: Changed order and sort order

parent 2b15f1f7
......@@ -65,10 +65,10 @@ ad_proc im_timesheet_price_component { user_id company_id return_url} {
<table border=0>
<tr><td colspan=$colspan class=rowtitle align=center>[_ intranet-timesheet2-invoices.Price_List]</td></tr>
<tr class=rowtitle>
<td class=rowtitle>[lang::message::lookup "" intranet-timesheet2-invoices.Project "Project"]</td>
<td class=rowtitle>[_ intranet-timesheet2-invoices.UoM]</td>
<td class=rowtitle>[_ intranet-timesheet2-invoices.Task_Type]</td>
<td class=rowtitle>[_ intranet-timesheet2-invoices.Material]</td>
<td class=rowtitle>[lang::message::lookup "" intranet-timesheet2-invoices.Project "Project"]</td>
<td class=rowtitle>[lang::message::lookup "" intranet-timesheet2-invoices.From "From"]</td>
<td class=rowtitle>[lang::message::lookup "" intranet-timesheet2-invoices.Through "Through"]</td>
<td class=rowtitle>[_ intranet-timesheet2-invoices.Rate]</td>
......@@ -93,10 +93,11 @@ ad_proc im_timesheet_price_component { user_id company_id return_url} {
where
tp.company_id = :company_id
order by
tp.currency,
p.project_name,
tp.uom_id,
tp.task_type_id desc,
tp.material_id,
tp.task_type_id desc
tp.currency
"
set price_rows_html ""
......@@ -112,13 +113,13 @@ ad_proc im_timesheet_price_component { user_id company_id return_url} {
append price_rows_html "
<tr $bgcolor([expr {$ctr % 2}]) nobreak>
<td><a href='$url'>$uom</a></td>
<td>$project_name</td>
<td>$uom</td>
<td>$task_type</td>
<td>$material</td>
<td>$project_name</td>
<td>$valid_from</td>
<td>$valid_through</td>
<td>[format $price_format $price] $currency</td>
<td><a href='$url'>[format $price_format $price] $currency</a></td>
<td><input type=checkbox name=price_id.$price_id id=price_id.$price_id></td>
</tr>"
incr ctr
......
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