VoidDetail
Function
This command is used to void an item from the check detail.
Syntax
VoidDetail(expression)
Description/Argument
Expression – Uses any valid expression that evaluates to a valid detail number in the range 1 to @NumDtlt.
Note
This function will “fail” silently. For example, if the expression is outside the range 1 to @NumDtlt, the function does not report an error. In addition, if the expression evaluates to a detail item that cannot be voided (i.e., part of a combo meal), the function will not void the item, and does not report an error.
The detail is voided as a “system” void. This method avoids prompting the user for authorization when it is otherwise required. This includes voiding of previous round items.
VoidDetail Example
The following example attempts to void all menu items in the previous and current rounds:
Var I : N9
For I = 1 to @NumDtlt
If(@Dtl_Type[1] = “M”)
voidDetail(i)
endif
endFor