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
c451cd47
Commit
c451cd47
authored
Jul 24, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-- allow grouped invoice items
parent
6096752b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
view.tcl
www/view.tcl
+8
-7
No files found.
www/view.tcl
View file @
c451cd47
...
...
@@ -872,32 +872,32 @@ if { 0 == $item_list_type } {
incr ctr
}
}
else
if
{
100 ==
$item
_list_type
}
{
# item_list_type: Translation Project Hirarchy
set invoice_items_sql
"
select
ii.project_id as parent_id,
ii.item_source_project_id as parent_id,
p.project_id as project_id,
item_name as parent_name,
item_name as project_name,
item_units,
item_type_id,
item_uom_id,
price_per_unit,
trunc((price_per_unit * item_units) :: numeric, 2) as line_total
trunc((price_per_unit * item_units) :: numeric, 2) as line_total,
(select category from im_categories where category_id = item_uom_id) as item_uom
from
im_invoice_items ii
left outer join im_projects p on (p.project_id in (select c.project_id from im_costs c where cost_id=
59729
) )
left outer join im_projects p on (p.project_id in (select c.project_id from im_costs c where cost_id=
:invoice_id
) )
where
invoice_id=:invoice_id
order by
ii.project_id;
ii.
item_source_
project_id;
"
set old_parent_id -1
set amount_total 0
set amount_sub_total 0
set item_uom
"s-words"
db_foreach related_projects
$invoice
_items_sql
{
# ad_return_complaint 1
"ctr:
$ctr
, old_parent_id:
$old
_parent_id, parent_id:
$parent
_id, level:
$level
, amount_sub_total:
$amount
_sub_total, task_id:
$task
_id"
# SUBTOTALS
...
...
@@ -940,6 +940,7 @@ if { 0 == $item_list_type } {
}
if_no_rows
{
append invoice_item_html
"<tr><td>
[
lang::message::lookup
$locale
intranet-timesheet2-invoices.No_Information
]
</td></tr>"
}
}
else
{
set indent_level
[
db_string get_view_id
"
...
...
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