IEditSessionAddOrUpdateModifierForPrintedItem Method |
Adds order item modifier for product which is already printed. User must have rights to edit orders.
Namespace: Resto.Front.Api.EditorsAssembly: Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
SyntaxINewOrderModifierItemStub AddOrUpdateModifierForPrintedItem(
int amount,
IOrderStub order,
IOrderProductItemStub orderItemProduct,
IProduct modifier,
IProductGroup parentGroup,
int? payableAmount = null,
decimal? predefinedPrice = null
)
Parameters
- amount Int32
- Amount of the modifier. Can be from 1 to 999. But it must not go beyond the limits set for modifiers.
- order IOrderStub
- Order to which modifier will be added.
- orderItemProduct IOrderProductItemStub
- Order item to which modifier will be added.
- modifier IProduct
- Assortment position for modifier. Must be accessible through IOrderProductItem.AvailableSimpleModifiers collection or one of the IOrderProductItem.AvailableGroupModifiers child collections.
- parentGroup 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
- 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).
- predefinedPrice NullableDecimal (Optional)
- Predefined fixed price of the modifier, allows to use external quotation instead of default price list. null means default price.
Return Value
INewOrderModifierItemStub
See Also