I have a ckeck with three items and one discount on one of them.
My problem is that i cant find the information i need through isl code to know on which item the discount have been performed.
If you try to print all the information in the check you can see that every discount is a new line in the check in the end and you dont know the item on which the discount have been performed.
My problem is that i cant find the information i need through isl code to know on which item the discount have been performed.
If you try to print all the information in the check you can see that every discount is a new line in the check in the end and you dont know the item on which the discount have been performed.
Code:
EVENT inq : 3
VAR MessageFlag : N10
VAR MessageInfo : A50
VAR DetailsRow : N10
VAR Clear : A1
VAR i : N2
FOR i = 1 TO 20
ERRORMESSAGE i, " ", @DSC[i], " ", @DSCI[i]
ENDFOR
DetailsRow = 1
WINDOW 11, 78, "PREPAID - v15.184.1"
DISPLAY DetailsRow, 2, "CHECK ITEMS"
FOR i = 1 TO @numdtlt
IF @DTL_TYPE[i] = "M" OR @DTL_TYPE[i] = "D"
DetailsRow = DetailsRow + 1
DISPLAY DetailsRow, 2, i, " ", @DTL_IS_VOID[i], " ", @DTL_NAME[i], " ", @DTL_OBJNUM[i], " ", @DTL_OBJECT[i], " ", @DTL_TYPE[i], " S: ", @DTL_STATUS[i]," T:", @DTL_TTL[i], " Q:", @DTL_QTY[i]
ENDIF
ENDFOR
DetailsRow = DetailsRow + 1
DISPLAYMSINPUT DetailsRow, 2, Clear, "ENTER TO CONTINUE"
WINDOWINPUT
ENDEVENT
