Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Micros 3700 match discount with item through ISL code 1

Status
Not open for further replies.

nvak

Programmer
May 25, 2015
60
GR
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.

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

Untitled_etyswr.png
 
You can check two items, the first being the Discount itself. In the options of the Discount, see if "This is an Item Discount". Next one would be to Check the class the Items belong to. The class itself can have the option selected "Item Discounts May be applied to these Menu Items".

The first option in the Discount itself, allows for the last item that was added to the check to be discounted only. If this option is Off (not checked) then the full check amount is discounted.

The other option via the Menu Item's class, allows that item to get a single item discount.

With this info, you can then see what was the last item on the check (via journal or actual check image). Also, note that if the discount was given before an item being posted to the check, it would not include that Item's amount and only be for the ones previous added or the last item added before it.

Hope this helps and gets you moving in the right direction.
 
I didnt manage to found a solution so i just query the database and retrive the discounts from there after the check was closed.

If anyone needs help with that ask me here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top