IEditSessionAddPrimaryComponent(Guid, IProduct, IOrderStub, IOrderCompoundItemStub, NullableDecimal) Method |
Adds a primary component to the compound item.
Namespace: Resto.Front.Api.EditorsAssembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
SyntaxINewOrderCompoundItemComponentStub AddPrimaryComponent(
Guid id,
IProduct product,
IOrderStub order,
IOrderCompoundItemStub compoundItem,
decimal? predefinedPrice = null
)
Parameters
- id 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().
- product IProduct
- Assortment position. Must exist in Syrve POS assortment.
- order IOrderStub
- Order to which position will be added.
- compoundItem IOrderCompoundItemStub
- Compound item to which new component will be added.
- predefinedPrice NullableDecimal (Optional)
- Predefined fixed price of the component, allows to use external quotation instead of default price list. null means default price.
Return Value
INewOrderCompoundItemComponentStub
See Also