Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-resource-management
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-resource-management
Commits
28178b99
Commit
28178b99
authored
Jan 14, 2020
by
cosine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added comments
parent
321ca5cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
intranet-resource-management-create.sql
sql/postgresql/intranet-resource-management-create.sql
+4
-2
No files found.
sql/postgresql/intranet-resource-management-create.sql
View file @
28178b99
...
...
@@ -248,6 +248,8 @@ end;$body$ LANGUAGE 'plpgsql' VOLATILE;
-- Returns just the number of working days between two dates
-- only considering weekends.
-- This is the very fast non-iterative version of it...
CREATE
or
REPLACE
FUNCTION
im_resource_mgmt_workday_count
(
date
,
date
)
RETURNS
integer
AS
$
BODY
$
SELECT
...
...
@@ -265,7 +267,7 @@ select im_resource_mgmt_workday_count('2018-05-01'::date, '2018-05-31'::date);
-- Deprecated:
-- Returns the work days for a given period
-- whereas: "work days" = Number of days in period -absences -bank_holidays -weekends
-- Expects start_date and end_date as YYYY/MM/DD
...
...
@@ -298,7 +300,7 @@ end;$body$ LANGUAGE 'plpgsql' VOLATILE;
-- Returns a real[] for each day between start and end
-- with 100 for working days and 0 for weekends
-- with 100 for working days and 0 for weekends
including both start- and end-date
create
or
replace
function
im_resource_mgmt_weekend
(
integer
,
date
,
date
)
returns
float
[]
as
$
body
$
DECLARE
...
...
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