Position
Field guide
The following fields are available in a position object
| Name | Type | Example | Notes |
|---|---|---|---|
| type | int | 1 | |
| number | int | 99 | Catalog number |
| name | string | My Hours Work Service | |
| description | string | Lorem ipsum | |
| cost | float | 120.15 | Single item cost |
| unit | int | 6 | Type of item unit, like km or kg |
| amount | float | 1.5 | Number of items |
| vat | float | 0 | |
| discount | float | 0 | |
| discount_type | int | 0 | If the discount is in % (0) or amount (1) |
Example
{
"type":1,
"number":null,
"name":null,
"description":null,
"cost":0,
"unit":1,
"amount":1,
"vat":8,
"discount":null,
"discount_type":0
}
Type
| Type | Meaning of type |
|---|---|
| 1 | Service |
| 2 | Product |
