Click or drag to resize

IEditSessionChangeOrderItemProductAmount Method

Changes the amount of the assortment position in existing order. User must have rights to edit orders.

Namespace:  Resto.Front.Api.V4.Editors
Assembly:  Resto.Front.Api.V4 (in Resto.Front.Api.V4.dll)
Syntax
C#
INewOrderItemProductStub ChangeOrderItemProductAmount(
	decimal amount,
	IExistingOrderItemProductStub orderItemProduct
)

Parameters

amount
Type: SystemDecimal
For positions with weight: new weight in defined measure unit. For positions without weight: new amount of the position. Can be from 0.001 to 999.999
orderItemProduct
Type: Resto.Front.Api.V4.Editors.StubsIExistingOrderItemProductStub
Order item that represents the assortment position and which amount will be changed.

Return Value

Type: INewOrderItemProductStub
See Also