Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Timereg addMinutesSpent: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Timereg_Functions]]
{{HelpFiles}}
==== Timereg_addMinutesSpent<br/> ====
==== Timereg_addMinutesSpent<br/> ====


Line 5: Line 8:
'''Syntax'''
'''Syntax'''


Timereg_addMinutesSpent(''ResourceId'',&nbsp; minutesSpent, status[,&nbsp; date[, ''newUserResourceId''[, role]]])
Timereg_addMinutesSpent(''ResourceId'',&nbsp; minutesSpent, status[,&nbsp; date[, ''UserResourceId''[, role]]])


'''Arguments'''
'''Arguments'''
Line 13: Line 16:
*status: is a string type
*status: is a string type


{| border="1" cellpadding="1" cellspacing="1" width="182"
{| width="182" border="1" cellpadding="1" cellspacing="1"
|-
|-
| Met<br/>
| Met<br/>
Line 29: Line 32:


*date: is an array which is the original date time
*date: is an array which is the original date time
*''newUserResourceId: is a number expression. It is the new user resource id to add minutes spent.''
*''UserResourceId: is a number expression. It is the new user resource id to add minutes spent.''
*role:&nbsp; is a number type
*role:&nbsp; is a number type


{| border="1" cellpadding="1" cellspacing="1" width="500"
{| width="500" border="1" cellpadding="1" cellspacing="1"
|-
|-
| Index<br/>
| Index<br/>
Line 62: Line 65:


''print(a); //0.5''
''print(a); //0.5''
__NOTOC__

Latest revision as of 02:27, 15 April 2016


Timereg_addMinutesSpent

Add number of minutes to task or project register

Syntax

Timereg_addMinutesSpent(ResourceId,  minutesSpent, status[,  date[, UserResourceId[, role]]])

Arguments

  • ResourceId: is a number expression. It is the task or project resource id
  • minutesSpent: is a number of hours to add
  • status: is a string type
Met
Sick - ½ day
Vacation - ½ day
Holiday - ½ day
Funeral - ½ day
Met -1/2 day
  • date: is an array which is the original date time
  • UserResourceId: is a number expression. It is the new user resource id to add minutes spent.
  • role:  is a number type
Index
Type
0
Project Manager
1
Help Author
2
Technical Designer
3
Developer
4
Tester

Return value

number of hours registered after applying the given minutes

Example

number a = Timereg_addMinutesSpent(738918, 30, "Met");

print(a); //0.5