s_salary_timecard_edit

Last update 2021-08-04

This method is for creating / editing timecard of RIVILE salary calculation module. All parameters are expected via HTTP POST.

Mandatory parameters

Name Description Notes
session_id Session id
login RIVILE username
pass RIVILE password hashed in MD5
list Json list with timecard data. Similar structure as from method s_salary_timecard_edit

Additional parameters

Name Description Notes
lang Web service response language. EN LT or RU

list

Name Description Notes
employeeDep Employee department a16_kodas_is
year Timecard year a16_date
month Timecard month a16_date
timecardName Timecard name a16_pav
timecards List with time-card data

timecards

Name Description Notes
calendarCode Calendar code a17_kodas_la
employeeCode Employee code a17_kodas_tb
days List with days data

days

Name Description Notes
dayName Day name a17_d01-a17_d31 header
dayCode Day code a17_d01-a17_d31 value
dayHours List with day hour data

dayHours

Name Description Notes
hourName Hour name a18_v01-a18_v31 header
hourCode Hour code ?
hourObject Hour code ?
hourValue Hour value a18_v01-a18_v31 value

Web service returns

Name Description Notes
status Web service status
description Status description
login RIVILE username
list List with data

Web service status list

Name Description
00 Ok
01 No parameter session_id
02 No parameter login
03 No parameter pass
04 Login failed
05 No or wrong parameter year
06 No or wrong parameter month
07 No or wrong parameter employeeDep
08 DB connect error
09 Wrong parameter lang , values LT,EN,RU only.
10 No parameter list
11 Parameter list is not json list
12 employee not found
14 Error in parameter dayName. Possible values ​​d01 d02 ... d31
15 Parameter dayCode error. Value not found
16 Error in parameter hourName. Possible values ​​d01 d02 ... d31
17 Parameter hourCode error. Value not found
18 Parameter hourValue error. Possible values 1-24
19 Timecard is confirmed and cannot be edited
20 No or wrong parameter : calendarCode
21 No parameter : timecards
22 No parameter : employeeCode
98 SQL error