Edit
[POST] .../v1/pos/chequeitemoperation/edit
Edits item positions in a cheque. Update a line in an unpaid cheque by uuid and return row_affected. Requires an accepted cash register, row edit permission for price changes or quantity-change permission otherwise. Recalculates automatic promotions and removes discounts whose conditions no longer match. Business errors return HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| label | String | Optional | Labeling flag. |
| price | Decimal | Optional | New item line price. |
| quantity | Decimal | Optional | New item line quantity. |
| uuid | String | Required | Line item UUID. |
Request Example
{
"label": "string",
"price": 1.0,
"quantity": 1.0,
"uuid": "00000000-0000-0000-0000-000000000000"
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"ids": [
null
],
"row_affected": 1
}
}