Click or drag to resize

IEditSession.ChangeOrderModifierItemAmount Method (Int32, IOrderStub, IOrderCompoundItemComponentStub, IOrderModifierItemStub, Nullable<Int32>)

Changes the amount of the compound component modifier. User must have rights to edit orders.

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

Parameters

amount
Type: System.Int32
New amount of the modifier. Can be from 1 to 999.
order
Type: Resto.Front.Api.Editors.Stubs.IOrderStub
Order that contains element with changing modifier.
compoundComponent
Type: Resto.Front.Api.Editors.Stubs.IOrderCompoundItemComponentStub
Order item with changing modifier.
modifier
Type: Resto.Front.Api.Editors.Stubs.IOrderModifierItemStub
Modifier which amount will be changed.
payableAmount (Optional)
Type: System.Nullable<Int32>
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