Takings (taking)
Output (get)
Query (get)
| Parameter | Description |
token | interface token (required) |
get | 1 |
what | taking |
number | optional filter |
chain | optional filter |
stock | optional filter |
confirmed | optional filter |
ts | changed-since (for syncing) |
| XML field | SQL field | Type | Length | UI label | Description |
number | number | int | 9 | | |
date | aeg | dateTime | | | length: datetime |
startdate | aeg_algus | dateTime | | | length: datetime |
chain | kett | int | 9 | | |
stock | ladu | string | 64 | Ladu | |
description | seletus | string | 510 | Seletus | |
project | projekt | string | 64 | Projekt | |
shelf | riiul | string | 64 | Riiul | |
object | objekt | string | 510 | Objekt | |
account | konto | string | 64 | Konto | |
confirmed | kinnitatud | int | | | ”1” - confirmed document |
ts | ts | dateTime | | | document last changed |
Rows
| XML field | SQL field | Type | Length | UI label | Description |
itemcode | artikkel | string | 64 | Artikkel | |
sn | sn | string | 50 | SN/Mudel | |
quantity | kogus | decimal | 19 | Kogus | decimal: 4 |
rn | rn | int | 9 | Rea number | |
Attachments: not supported. Approvals: not supported.
| XML field | SQL field | Type | Length | Mandatory | UI label | Description |
number | number | int | | yes | Number | document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary |
date | aeg | dateTime | | | Aeg | |
startdate | aeg_algus | dateTime | | | Alguse aeg | |
chain | kett | int | | | Kett | |
stock | ladu | string | 64 | | Ladu | |
project | projekt | string | 64 | | Projekt | |
shelf | riiul | string | 64 | | Riiul | |
object | objekt | string | 510 | | Objekt | |
account | konto | string | 64 | | Konto | |
description | seletus | string | 510 | | Seletus | |
Do not send:
Rows
| XML field | SQL field | Type | Length | Mandatory | UI label | Description |
itemcode | artikkel | string | 64 | | Artikkel | |
sn | sn | string | 50 | | SN/Mudel | |
variant | variant | string | 64 | | | |
quantity | kogus | decimal | | | Kogus | |
delete | kustuta | int | | | | Rea kustutamiseks sisendile lisada delete=1 (rea ja artikli täpsus)! |
rn | rn | int | | | RN | |
Transport parameters
Configured on the token (interface), not sent in xmldata. PARAMETER 2 = document type.
| TYPE | CODE | PARAMETER 1 | PARAMETER 2 | DESCRIPTION |
| XML | xd_confirm | 0 | TAKING | Auto-confirm document; also via XML field confirm |
| XML | xd_stock | PL | TAKING | Default warehouse if not sent |
Response
docid = number of the created/updated document. Error codes: Responses and error codes.
<results>
<Result Type="0" Desc="Created" docid="100001" doctype="TAKING" submit="Takings"/>
</results>