Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-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-timesheet2-invoices
Commits
51a7a4b0
Commit
51a7a4b0
authored
Jan 24, 2013
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- New Invoice from Timesheet Tasks:
fixed localization
parent
827e6af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
new.tcl
www/invoices/new.tcl
+10
-12
No files found.
www/invoices/new.tcl
View file @
51a7a4b0
...
...
@@ -135,17 +135,13 @@ set column_headers [list]
set
column_vars
[
list
]
set
column_sql
"
select
column_name,
select column_name,
column_render_tcl,
visible_for
from
im_view_columns
where
view_id=:view_id
from im_view_columns
where view_id=:view_id
and group_id is null
order by
sort_order"
order by sort_order"
db_foreach column_list_sql
$column
_sql
{
if
{
""
==
$visible
_for ||
[
eval
$visible
_for
]}
{
...
...
@@ -155,7 +151,6 @@ db_foreach column_list_sql $column_sql {
}
# ---------------------------------------------------------------
# 5. Generate SQL Query
# ---------------------------------------------------------------
...
...
@@ -307,13 +302,16 @@ if { ![empty_string_p $query_string] } {
}
append
table_header_html
"<tr>
\n
"
set
ctr 0
foreach
col
$column
_headers
{
set col_txt
[
lang::util::suggest_key
$col
]
if
{
[
string
compare
$order
_by
$col
]
== 0
}
{
append table_header_html
" <td class=rowtitle>
[
_ intranet-timesheet2-invoices.$col_txt
]
</td>
\n
"
set col_l10n
[
lang::message::lookup
""
intranet-timesheet2-invoices.$col_txt
$col
]
if
{
0 ==
$ctr
||
[
string
compare
$order
_by
$col
]
== 0
}
{
append table_header_html
" <td class=rowtitle>
$col
_l10n</td>
\n
"
}
else
{
append table_header_html
" <td class=rowtitle><a href=
\"
${url}
order_by=
[
ns_urlencode
$col
]
\"
>
[
_ intranet-timesheet2-invoices.$col_txt
]
</a></td>
\n
"
append table_header_html
" <td class=rowtitle><a href=
\"
${url}
order_by=
[
ns_urlencode
$col
]
\"
>
$col
_l10n
</a></td>
\n
"
}
incr ctr
}
append
table_header_html
"</tr>
\n
"
...
...
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