IEditSessionChangeOrderModifierItemPrice Method |
Changes the base price of the existing modifier of an order product item without recreating the modifier. Amount and marking codes of the modifier, waiter and print time of the item stay unchanged. Service cheque is not printed.
Namespace: Resto.Front.Api.EditorsAssembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntaxvoid ChangeOrderModifierItemPrice(
decimal price,
IOrderModifierItemStub modifier,
IOrderStub order
)
Parameters
- price Decimal
- New base price of one portion of the modifier (as IOrderModifierItem.Price), not the cost of the modifier. Must fit the currency settings. Must be from 0 to 9999999999.999999999, or from -9999999999.999999999 to 0 if the modifier product is for purchase.
- modifier IOrderModifierItemStub
- Modifier of an order product item which price will be changed. Must not be deleted, must belong to an order product item (not to a compound item or its component) that is not a part of a combo. The item can be already printed.
- order IOrderStub
- Order that contains the modifier. Order must be in the New status.
RemarksThe method sets the base price per portion (IOrderModifierItem.Price); discounts and surcharges are applied on top of it, the result sum is not fixed. The price becomes predefined, the same as the predefinedPrice argument of AddOrderModifierItem method: modifiers don't have open price. The predefined price can be recalculated by the price list later: in delivery and banquet orders when the price category is changed (in iikoFront or via API) or when the price list or the size of the item is changed in iikoFront, in banquet orders when the banquet date or time is changed in iikoFront, when a part of the item is split off into a new item and if the item is later included in a combo. Free portions of a group modifier go to the most expensive modifiers of the group first, so the price change can move a free portion to another modifier of the group. Open price limits from the restaurant settings are not applied. Marking codes of the modifier are not verified again after the price change. Changes are rejected if the product of any item of the order is excluded from the menu. If the modifier was included in a bill that was cancelled without confirmation, the user must have the permission to cancel bills.
See Also