Attribute | Type | Description |
system_id | string | Is the system identification. For Third Party integrations you must put 'third_party' |
local_id | int|null | (Only one of local_id, local_code, external_id, external_code is used) |
local_code | string|null | (Only one of local_id, local_code, external_id, external_code is used) |
external_id | int|null | (Only one of local_id, local_code, external_id, external_code is used) |
external_code | string|null | (Only one of local_id, local_code, external_id, external_code is used) |
date | datetime | |
voucher_date | datetime | |
name | string|null | |
is_read_only | bool | Indicates if the work order is editable in the external ERP. In Third Party integrations, the value true will be returned /stored whenever the following conditions are met: StausId = 6 => ActivityStatus::OA_STATUS_EXTERNAL_SYSTEM Comes from Third Partieswhen OT is in status “En sistema externo“ and Status is 'Confirmed' => true.
|
concurrency_token | int|null | |
currency | Object | (Only one of local_id, local_code, external_id, external_code is used) |
observations | string|null | |
state | Object | Object used to define the status of the work order. Only one of pending, executed, confirmed can be true. The others mus be false. For ThirdParty integrations there can be three cases.
Pending true. When the work order is approved. Executed true: When the work order is approved and has confirmation dates. Confirmed true: When the work order is executed. This alos implies that all confirmations have execution dates.
|
extra_fields | Object | Object used to define other attributes necessary for integration between systems. The object dimension and company are used by ERPs. The object voucher_type is used to specify the work order type. In Third Party integrations local_id must match with one of the SIMA voucher type.
(Only one of local_id, local_code, external_id, external_code is used) |