Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-invoices
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-invoices
Commits
36e89b67
Commit
36e89b67
authored
Jun 18, 2014
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Invoices:
Applied patch from mharms in order to fix the display of ShowLeadingInvoiceItemNr
parent
829def82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
view-postgresql.xql
www/view-postgresql.xql
+2
-1
view.tcl
www/view.tcl
+3
-3
No files found.
www/view-postgresql.xql
View file @
36e89b67
...
...
@@ -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
...
...
www/view.tcl
View file @
36e89b67
...
...
@@ -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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment