IEditSessionAddOrderModifierItem Method (Int32, IProduct, IProductGroup, IOrderStub, IOrderCompoundItemStub, NullableDecimal) |
Adds order item modifier to the compound item in existing order. User must have rights to edit orders.
Namespace:
Resto.Front.Api.V5.Editors
Assembly:
Resto.Front.Api.V5 (in Resto.Front.Api.V5.dll)
Syntax INewOrderModifierItemStub AddOrderModifierItem(
int amount,
IProduct modifier,
IProductGroup parentGroup,
IOrderStub order,
IOrderCompoundItemStub compoundItem,
decimal? predefinedPrice = null
)
Parameters
- amount
- Type: SystemInt32
Amount of the modifier. Can be from 1 to 999. - modifier
- Type: Resto.Front.Api.V5.Data.AssortmentIProduct
Assortment position for modifier. Must be accessible through IOrderProductItem.AvailableSimpleModifiers collection or one of the IOrderProductItem.AvailableGroupModifiers child collections. - parentGroup
- Type: Resto.Front.Api.V5.Data.AssortmentIProductGroup
Assortment position group for modifier. Must be specified if new modifier will be part of the group modifier. Otherwise null. Group modifier must be chosen from IOrderProductItem.AvailableGroupModifiers - order
- Type: Resto.Front.Api.V5.Editors.StubsIOrderStub
Order to which modifier will be added - compoundItem
- Type: Resto.Front.Api.V5.Editors.StubsIOrderCompoundItemStub
Order item to which modifier will be added. - predefinedPrice (Optional)
- Type: SystemNullableDecimal
Predefined fixed price of the modifier, allows to use external quotation instead of default price list. null means default price.
Return Value
Type:
INewOrderModifierItemStubSee Also