Can anyone give me an isl example how to use the ItemDiscount command because i cant do it to work?
Item Discount
Function
This command is used to apply a list of discount amounts to the corresponding list of detail index values. The GetMaxDiscount function will be used to help the ISL developer determine how much can actually be discounted for each menu item.
When this command is passed, the discount object number, array size, detail index array, discount amount array, and optionally, a discount reference string, will apply the discount amounts to the applicable menu items using the discount object number.
For more information see GetMaxDiscount Function.
Syntax:
ItemDiscount
Item Discount Example:
ItemDiscount obj_num, array_size, detail_array[], detail_array[], amount_array[]
ItemDiscount obj_num, array_size, detail _array[], amount_array[], ref_num
Item Discount
Function
This command is used to apply a list of discount amounts to the corresponding list of detail index values. The GetMaxDiscount function will be used to help the ISL developer determine how much can actually be discounted for each menu item.
When this command is passed, the discount object number, array size, detail index array, discount amount array, and optionally, a discount reference string, will apply the discount amounts to the applicable menu items using the discount object number.
For more information see GetMaxDiscount Function.
Syntax:
ItemDiscount
Item Discount Example:
ItemDiscount obj_num, array_size, detail_array[], detail_array[], amount_array[]
ItemDiscount obj_num, array_size, detail _array[], amount_array[], ref_num