Difference between revisions of "User updateUserHourlyCost"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
+
[[Category:User_Functions]]

+
{{HelpFiles}}
  
 
====User_updateUserHourlyCost====
 
====User_updateUserHourlyCost====
Line 9: Line 9:
  
 
User_updateUserHourlyCosts(userResourceId,index,userHourlyCosts)
 
User_updateUserHourlyCosts(userResourceId,index,userHourlyCosts)
 +
 +
'''Return value'''
 +
 +
empty
  
 
'''Arguments'''
 
'''Arguments'''
Line 45: Line 49:
 
| style="border: 1px solid #010101" width="356" |
 
| style="border: 1px solid #010101" width="356" |
 
User's hourly cost value
 
User's hourly cost value
 +
|}
  
'''Return value'''
 
 
empty
 
  
 
'''Example'''
 
'''Example'''

Latest revision as of 09:33, 22 December 2011



User_updateUserHourlyCost

Update user's hourly cost

Syntax

User_updateUserHourlyCosts(userResourceId,index,userHourlyCosts)

Return value

empty

Arguments

  • userResourceId: is a number expression. It is the user's resource id
  • index: is number. It is the index of hourly cost which is updated
  • userHourlyCosts: is array in which:

Index

Data type

Value

USER_HOURLY_COST_START_DATE

array

User's hourly cost start date object array (with time zone is user's time zone)

USER_HOURLY_COST_END_DATE

array

User's hourly cost end date object array (with time zone is user's time zone)

USER_HOURLY_COST_VALUE

number

User's hourly cost value


Example

number userResourceId = 34780089;

number index = 1;

array userHourlyCosts = {{2009,7,27,0,0,0,0,31,40} , {2009,8,27,0,0,0,0,35,40},2.3};

User_updateUserHourlyCosts(userResourceId,index,userHourlyCosts);

print(User_getUserHourlyCosts(userResourceId));

Availability

Version 5.7