iikoFront Api V6 Code Reference
iikoFront Api V6 Code Reference
Resto.Front.Api.Editors
IEditSession Interface
IEditSession Methods
AddOrderModifierItem Method
AddOrderModifierItem Method (Int32, IProduct, IProductGroup, IOrderStub, IOrderCompoundItemComponentStub, Nullable(Decimal))
AddOrderModifierItem Method (Int32, IProduct, IProductGroup, IOrderStub, IOrderCompoundItemStub, Nullable(Decimal))
AddOrderModifierItem Method (Int32, IProduct, IProductGroup, IOrderStub, IOrderProductItemStub, Nullable(Decimal))
AddOrderModifierItem Method (Guid, Int32, IProduct, IProductGroup, IOrderStub, IOrderCompoundItemComponentStub, Nullable(Decimal))
AddOrderModifierItem Method (Guid, Int32, IProduct, IProductGroup, IOrderStub, IOrderCompoundItemStub, Nullable(Decimal))
AddOrderModifierItem Method (Guid, Int32, IProduct, IProductGroup, IOrderStub, IOrderProductItemStub, Nullable(Decimal))

# IEditSession AddOrderModifierItem Method (Guid, Int32, IProduct, IProductGroup, IOrderStub, IOrderCompoundItemComponentStub, Nullable Decimal )

Adds order item modifier to the compound item component in existing order. User must have rights to edit orders.

Namespace: Resto.Front.Api.Editors
Assembly: Resto.Front.Api.V6 (in Resto.Front.Api.V6.dll) Version: 1ca4876affdd3bc5359a98b321fc115a647d2251
Syntax
C#
Copy

    INewOrderModifierItemStub AddOrderModifierItem(
    	Guid id,
    	int amount,
    	IProduct modifier,
    	IProductGroup parentGroup,
    	IOrderStub order,
    	IOrderCompoundItemComponentStub component,
    	decimal? predefinedPrice = null
    )

#### Parameters

id
  Type: System
  Guid
  Unique identifier of the new order item modifier. MUST be unique not only for the order item or order, but for the whole system. Therefore it must be taken from some synchronization operation or generated with Guid.NewGuid()
amount
  Type: System
  Int32
  Amount of the modifier. Can be from 1 to 999.
modifier
  Type: Resto.Front.Api.Data.Assortment
  IProduct
  Assortment position for modifier. Must be accessible through IOrderProductItem.AvailableSimpleModifiers collection or one of the IOrderProductItem.AvailableGroupModifiers child collections.
parentGroup
  Type: Resto.Front.Api.Data.Assortment
  IProductGroup
  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.Editors.Stubs
  IOrderStub
  Order to which modifier will be added
component
  Type: Resto.Front.Api.Editors.Stubs
  IOrderCompoundItemComponentStub
  Order item to which modifier will be added.
predefinedPrice (Optional)
  Type: System
  Nullable
  Decimal
  Predefined fixed price of the modifier, allows to use external quotation instead of default price list. null means default price.

#### Return Value

Type: INewOrderModifierItemStub
See Also

#### Reference

IEditSession Interface
AddOrderModifierItem Overload
Resto.Front.Api.Editors Namespace