Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-reporting
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-reporting
Commits
cb3e13aa
Commit
cb3e13aa
authored
Aug 09, 2012
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-- added currency for employee finance data
parent
3be082d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
timesheet-productivity.tcl
www/timesheet-productivity.tcl
+8
-7
No files found.
www/timesheet-productivity.tcl
View file @
cb3e13aa
...
...
@@ -121,22 +121,23 @@ select
h.note,
h.billing_rate,
e.availability,
to_char(e.salary, :num_format) as salary,
to_char(e.social_security, :num_format) as social_security,
to_char(e.insurance, :num_format) as insurance,
to_char(e.other_costs, :num_format) as other_costs,
to_char(e.hourly_cost, :num_format) as hourly_cost,
to_char(e.salary, :num_format)
|| ' ' || e.currency
as salary,
to_char(e.social_security, :num_format)
|| ' ' || e.currency
as social_security,
to_char(e.insurance, :num_format)
|| ' ' || e.currency
as insurance,
to_char(e.other_costs, :num_format)
|| ' ' || e.currency
as other_costs,
to_char(e.hourly_cost, :num_format)
|| ' ' || e.currency
as hourly_cost,
e.currency,
e.hourly_cost,
e.salary_payments_per_year,
(e.salary + e.social_security + e.insurance + e.other_costs) * e.salary_payments_per_year / 12 as total_cost
from
im_costs co,
im_hours h,
im_projects p,
users u
LEFT OUTER JOIN im_employees e ON (u.user_id = e.employee_id)
where
h.project_id = p.project_id
h.cost_id = co.cost_id
and h.project_id = p.project_id
and p.project_status_id not in (
[
im_project_status_deleted
]
)
and h.user_id = u.user_id
and h.day >= to_date(:start_date, 'YYYY-MM')
...
...
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