Click or drag to resize

IEditSessionAddFlexibleSumDiscount Method

Adds simple discount of known type to existing order. User must have rights to work with discounts.

Namespace:  Resto.Front.Api.V4.Editors
Assembly:  Resto.Front.Api.V4 (in Resto.Front.Api.V4.dll)
Syntax
C#
void AddFlexibleSumDiscount(
	decimal sum,
	IDiscountType discount,
	IOrderStub order
)

Parameters

sum
Type: SystemDecimal
Discount sum.
discount
Type: Resto.Front.Api.V4.Data.OrdersIDiscountType
Type of the discount
order
Type: Resto.Front.Api.V4.Editors.StubsIOrderStub
Order where discount will be applied.
See Also