s_hr_op_edit
This method is for inserting / editing Human resource operations.
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 |
|
| hrOperationId |
HR operation ID, 0 for new operation |
k16_kodas_6a |
| hrOperationType |
HR operation type |
k16_tipas |
| employeeCode |
Employee code |
k16_kodas_4a or a06_kodas_tb |
| hrOperationNr |
Document number |
k16_dok_nr |
| hrOperationDate |
Operation date |
k16_op_date |
| hrOperationDateFrom |
Operation period from |
k16_beg_date |
| hrOperationDateTo |
Operation period to |
k16_end_date |
| hrOperationHolidayCode |
Holiday types code |
k16_kodas_1a_19 |
Optional parameters
| Name |
Description |
Notes |
| employeePositionCode |
k16_kodas_0a |
| employeeDep |
Employee department |
k16_kodas_is |
Web service returns
| Name |
Description |
Notes |
| status |
Web service status |
|
| description |
Status description |
|
| login |
RIVILE username |
|
| hrOperationId |
HR operation ID |
k16_kodas_6a |
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 parameter hrOperationId |
| 06 |
HR operation not found |
| 07 |
HR document is confirmed |
| 08 |
hrOperationType values 1-12 only allowed |
| 09 |
No parameter employeeCode |
| 10 |
employeeCode not found |
| 11 |
New document. Mandatory field - hrOperationNr required. |
| 12 |
Parameter hrOperationDateFrom / hrOperationDateTo validation error. Input must be yyyy-mm-dd format. |
| 14 |
New document. Mandatory field - hrOperationDateFrom / hrOperationDateTo required |
| 15 |
Parameter hrOperationDate validation error. Input must be yyyy-mm-dd format. |
| 97 |
SQL Server error |
| 99 |
DB connect error |