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 Simphony 2 - Weight Items on check

Status
Not open for further replies.

nvak

Programmer
May 25, 2015
60
GR
Hello guys,

Does anyone know how can I get from isl code the weight of an item that exists in my check?

I have already tried all of the following but i can not find anywhere the weight or the description on the screen which contains the weight.

Code:
EVENT inq : 3
	VAR DetailsRow : N2
	VAR i : N2
	
	DetailsRow = 1
	WINDOW 11, 78, "TEST" 
	DISPLAY DetailsRow, 2, "CHECK ITEMS"
	FOR i = 1 TO @NUMDTLT
		DetailsRow = DetailsRow + 1
		DISPLAY DetailsRow, 2, i, " ", @DTL_IS_VOID[i], " ", @DTL_NAME[i], " ", @DTL_OBJNUM[i], " ", @DTL_TYPE[i]," T:", @DTL_TTL[i], " S: ", @DTL_STATUS[i], " Q:", @DTL_QTY[i]
		DetailsRow = DetailsRow + 1
		DISPLAY DetailsRow, 2, i, " PRC SEQ:", @DTL_PRICESEQ[i]
		DetailsRow = DetailsRow + 1
		DISPLAY DetailsRow, 2, i, " PCLVL:", @DTL_PLVL[i]
		DetailsRow = DetailsRow + 1
		DISPLAY DetailsRow, 2, i, " TPDF:", mid(@DTL_TYPEDEF[i], 1,50)
	ENDFOR
	WAITFORENTER
ENDEVENT

Untitled_ks7mzg.png
 
You could always cycle through each item listed as you could be skipping it. This can help you figure out where it is at.

Code:
for i = 1 to @NUMDTLT
  infomessage @DTL_TYPE[i], " ", @DTL_NAME[i], " - ", @DTL_TYPEDEF[i]
endfor

Once you figure out where it is and how to catch it, you can add it to an Array then display it in the Window List.
Code:
// Get All Menu Items from a Check
for i = 1 to @NUMDTLT
  if @DTL_TYPE[i] = "M"    // Catch only Menu Items
    miCount = miCount + 1
    format temp1 as @DTL_QTY[i]{>2}, " ", @DTL_NAME[i]{<18}, " $ ", @DTL_TTL[i]
    miTotal = miTotal+ @DTL_TTL[i]
    vMI[miCount] = temp1
    
  endif
  
endfor
@DTL_TYPE info:
I = Check Information Detail; M = Menu Item; D = Discount; S = Service Charge; T = Tender/Media; C = CA Detail
 
hosehead78 thanks for your answer!

I know how to loop the items in my check as i posted above.

My problem is that i cant find the property weight of my item.

There is no @DTL_SOMETHING variable which contains the weight and there is no variable that contains the Description that you can see on my screen "Manual Weight Entry 1,450 kg Gross....."

Can you help me?
 
Where in Simphony is the weight of items specified? As those could be Menu Item references.

Interesting, the Name (@DTL_NAME) variable should bring up items in the list.

As I posted before, the code below should cycle through the line items. However, I have no experience with Simphony yet. I am trying to install it but I am having a few problems, but thats besides the point, back to your issue.

Code:
for i = 1 to @NUMDTLT
  infomessage @DTL_TYPE[i], " ", @DTL_NAME[i], " - ", @DTL_TYPEDEF[i]
endfor
 
Thank you hosehead78

Unfortunately the Simphony 2 doesnt work like the Simphony 1 or the 9700 System. The DTL_NAME variable holds onyl the item name. In my case is "weight". And more there is no menu item references...
 
Interesting. I am trying to get a Lab up with Simphony, however, I am having issues during the install. There should be another way to have it read each line, rather than just looking at each DTL type. Let me see what else I can find and I will get back to you soon.
 
I found a custom solution.

I was wrong about Menu ITem References.

The solution that i dony like but is working for now is to pass the weight of the item two times. One as the default and one more as Menu Item Reference.
Now from isl code i know exactly the weight of any item because exists like a reference in the next line.

But this is not a good solution. I am sure that Simphony has a better one but i dont know where can i find it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top