Commit 36e89b67 authored by Frank Bergmann's avatar Frank Bergmann

- Invoices:

  Applied patch from mharms in order to fix the display of ShowLeadingInvoiceItemNr
parent 829def82
......@@ -24,7 +24,8 @@
p.project_nr as project_short_name,
round(i.price_per_unit * i.item_units * :rf) / :rf as amount,
to_char(round(i.price_per_unit * i.item_units * :rf) / :rf, :cur_format) as amount_formatted,
i.currency as item_currency
i.currency as item_currency,
i.sort_order as item_sort_order
from
im_invoice_items i
LEFT JOIN im_projects p on i.project_id=p.project_id
......
......@@ -810,7 +810,7 @@ set decoration_amount [ad_parameter -package_id [im_package_invoices_id] "Invoic
# start formatting the list of sums with the header...
set invoice_item_html "<tr align=center>\n"
if {$show_our_project_nr && $show_leading_invoice_item_nr} {
if {$show_leading_invoice_item_nr} {
append invoice_item_html "
<td class=rowtitle $decoration_item_nr>[lang::message::lookup $locale intranet-invoices.Line_no "#"]</td>
"
......@@ -847,7 +847,7 @@ append invoice_item_html "
"
set ctr 1
set colspan [expr 2 + 3*$show_qty_rate_p + 1*$show_company_project_nr + $show_our_project_nr]
set colspan [expr 2 + 3*$show_qty_rate_p + 1*$show_company_project_nr + $show_our_project_nr + $show_leading_invoice_item_nr]
set oo_table_xml ""
......@@ -874,7 +874,7 @@ if { 0 == $item_list_type } {
if {$show_leading_invoice_item_nr} {
append invoice_item_html "
<td $bgcolor([expr $ctr % 2]) align=right>$sort_order</td>\n"
<td $bgcolor([expr $ctr % 2]) align=right>$item_sort_order</td>\n"
}
append invoice_item_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