Click or drag to resize

IEditSessionChangeOrderModifierItemAmount(Int32, IOrderStub, IOrderProductItemStub, IOrderModifierItemStub, NullableInt32) Method

Changes the amount of the product item modifier. User must have rights to edit orders.

Namespace: Resto.Front.Api.Editors
Assembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntax
C#
void ChangeOrderModifierItemAmount(
	int amount,
	IOrderStub order,
	IOrderProductItemStub orderItem,
	IOrderModifierItemStub modifier,
	int? payableAmount = null
)

Parameters

amount  Int32
New amount of the modifier. Can be from 1 to 999.
order  IOrderStub
Order that contains element with changing modifier.
orderItem  IOrderProductItemStub
Order item with changing modifier.
modifier  IOrderModifierItemStub
Modifier which amount will be changed.
payableAmount  NullableInt32  (Optional)
Custom payable amount. Leave it null to use default logic or set custom value to override default logic. Payable part of the amount must be between zero (which means that whole modifier is free of charge) and amount (which means that whole modifier is payable).
See Also