Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2
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
Dominique Lenoir
intranet-timesheet2
Commits
f2fed27d
Commit
f2fed27d
authored
Jan 14, 2020
by
cosine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed l10n
- Created new absence type "weekend" with own color
parent
13f32c6a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
intranet-timesheet2.en_US.ISO-8859-1.xml
catalog/intranet-timesheet2.en_US.ISO-8859-1.xml
+1
-1
intranet-absences-create.sql
sql/postgresql/intranet-absences-create.sql
+5
-3
intranet-absences-procs.tcl
tcl/intranet-absences-procs.tcl
+11
-4
No files found.
catalog/intranet-timesheet2.en_US.ISO-8859-1.xml
View file @
f2fed27d
...
...
@@ -162,7 +162,7 @@
<msg
key=
"June"
>
June
</msg>
<msg
key=
"K"
>
K
</msg>
<msg
key=
"L"
>
L
</msg>
<msg
key=
"Last_3_Month"
>
last 3 month
</msg>
<msg
key=
"Last_3_Month"
>
Last 3 months
</msg>
<msg
key=
"Last_3_months"
>
Last 3 months
</msg>
<msg
key=
"Last_3_Weeks"
>
Last 3 weeks
</msg>
<msg
key=
"Local"
>
Local
</msg>
...
...
sql/postgresql/intranet-absences-create.sql
View file @
f2fed27d
...
...
@@ -280,8 +280,10 @@ SELECT im_category_new (5002, 'Sick', 'Intranet Absence Type');
SELECT
im_category_new
(
5003
,
'Travel'
,
'Intranet Absence Type'
);
SELECT
im_category_new
(
5004
,
'Training'
,
'Intranet Absence Type'
);
SELECT
im_category_new
(
5005
,
'Bank Holiday'
,
'Intranet Absence Type'
);
SELECT
im_category_new
(
5006
,
'Overtime'
,
'Intranet Absence Type'
);
SELECT
im_category_new
(
5007
,
'Reduction in Working Hours'
,
'Intranet Absence Type'
);
SELECT
im_category_new
(
5006
,
'Overtime'
,
'Intranet Absence Type'
);
SELECT
im_category_new
(
5007
,
'Reduction in Working Hours'
,
'Intranet Absence Type'
);
SELECT
im_category_new
(
5008
,
'Weekend'
,
'Intranet Absence Type'
);
-- Set the default WF for each absence type
update
im_categories
set
aux_string1
=
'vacation_approval_wf'
where
category_id
=
5000
;
...
...
@@ -300,7 +302,7 @@ update im_categories set aux_string2 = 'FFCC99' where category_id = 5004;
update
im_categories
set
aux_string2
=
'CCCCCC'
where
category_id
=
5005
;
update
im_categories
set
aux_string2
=
'FF99CC'
where
category_id
=
5006
;
update
im_categories
set
aux_string2
=
'FF9999'
where
category_id
=
5007
;
update
im_categories
set
aux_string2
=
'BBBBBB'
where
category_id
=
5008
;
-----------------------------------------------------------
...
...
tcl/intranet-absences-procs.tcl
View file @
f2fed27d
...
...
@@ -30,7 +30,9 @@ ad_proc -public im_user_absence_type_sick {} { return 5002 }
ad_proc -public im_user_absence_type_travel
{}
{
return 5003
}
ad_proc -public im_user_absence_type_training
{}
{
return 5004
}
ad_proc -public im_user_absence_type_bank_holiday
{}
{
return 5005
}
ad_proc -public im_user_absence_type_overtime
{}
{
return 5006
}
ad_proc -public im_user_absence_type_reduction
{}
{
return 5007
}
ad_proc -public im_user_absence_type_weekend
{}
{
return 5008
}
ad_proc -public im_user_absence_status_active
{}
{
return 16000
}
ad_proc -public im_user_absence_status_deleted
{}
{
return 16002
}
...
...
@@ -676,7 +678,7 @@ ad_proc im_absence_cube {
set date_month
[
lang::message::lookup
""
intranet-timesheet2.$date_month
$date
_month
]
if
{
$date
_weekday eq
"Sat"
||
$date
_weekday eq
"Sun"
}
{
set holiday_hash
(
$date
_date
)
[
im_user_absence_type_
bank_holiday
]
}
if
{
$date
_weekday eq
"Sat"
||
$date
_weekday eq
"Sun"
}
{
set holiday_hash
(
$date
_date
)
[
im_user_absence_type_
weekend
]
}
lappend day_list
[
list
$date
_date
$date
_day_of_month
$date
_month
$date
_year
]
}
...
...
@@ -828,8 +830,13 @@ ad_proc im_absence_cube {
if
{[
info
exists absence_hash
(
$key
)]}
{
set value
$absence
_hash
(
$key
)
}
if
{[
info
exists holiday_hash
(
$date
_date
)]}
{
lappend value
$holiday
_hash
(
$date
_date
)
}
append table_body
[
im_absence_cube_render_cell
$value
]
ns_log Notice
"intranet-absences-procs::im_absence_cube_render_cell:
$value
"
set cell
[
im_absence_cube_render_cell
$value
]
if
{
$user
_id == 624
}
{
ns_log Notice
"intranet-absences-procs: key=
$key
, im_absence_cube_render_cell(
$value
) ->
$cell
"
}
append table_body
$cell
}
append table_body
"</tr>
\n
"
incr row_ctr
...
...
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