Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rest
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-rest
Commits
fa5ece05
Commit
fa5ece05
authored
May 14, 2010
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed "REST My Hours" report
parent
cd7ffe6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
intranet-rest-create.sql
sql/postgresql/intranet-rest-create.sql
+35
-1
No files found.
sql/postgresql/intranet-rest-create.sql
View file @
fa5ece05
...
@@ -370,7 +370,9 @@ drop function inline_0 ();
...
@@ -370,7 +370,9 @@ drop function inline_0 ();
-- Create freelance report
-- Create a report showing all projects into
-- which the %user_id% can log hours.
--
SELECT
im_report_new
(
SELECT
im_report_new
(
'REST My Timesheet Projects'
,
-- report_name
'REST My Timesheet Projects'
,
-- report_name
'rest_my_timesheet_projects'
,
-- report_code
'rest_my_timesheet_projects'
,
-- report_code
...
@@ -408,3 +410,35 @@ child projects.
...
@@ -408,3 +410,35 @@ child projects.
'
'
where
report_code
=
'rest_my_timesheet_projects'
;
where
report_code
=
'rest_my_timesheet_projects'
;
-- Create a report showing all hours logged by
-- the current user today.
--
SELECT
im_report_new
(
'REST My Hours'
,
-- report_name
'rest_my_hours'
,
-- report_code
'intranet-rest'
,
-- package_key
110
,
-- report_sort_order
(
select
menu_id
from
im_menus
where
label
=
'reporting-rest'
),
-- parent_menu_id
'
select h.*
from im_hours h
where h.user_id = %user_id% and
h.day = now()::date
'
);
update
im_reports
set
report_description
=
'
Returns all hours logged today by the current user.
'
where
report_code
=
'rest_my_hours'
;
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