Edit
[POST] .../v1/pos/chequeitemoperation/edit
Edits item positions in a cheque. Use this method to edit an existing POS cheque item position by changing quantity, price or related editable row values before the cheque is paid. The request requires uuid, locks the parent cheque through the operation row and returns row_affected after the update. The method checks the current request user, requires row edit permission when price is provided and quantity-change permission when only quantity is changed, then validates accepted cashier context and cheque state; missing fields, denied permission, invalid quantity, invalid cheque state and storage errors are returned as HTTP 200 ErrorResult business errors.
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
}
}