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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Micros 3700 SIM Condiments Parent Items

Status
Not open for further replies.

RitwickGupta

Programmer
Aug 21, 2014
96
CA
Hello,

I want to display all the menu items of an order using SIM. The issue is that I am not able to group the condiments with the main item. Is there a way of doing it using dtl id?

Thanks
 
There is no sim variable which allows you determine the parent of a condiment . A condiment is identified by the @dtl_is_cond variable. So you can only do this by going through the detail and everything that is a menu item and not a condiment is a parent. Everything below the parent that is a menu item and a condiment belongs to that parent. Once you reach another menu item which is not a condiment then your current parent grouping ends.

Do you want some custom SIM scripts developed. Contact me via my website
 
The 9700 system Condiments report as Menu items. So you can search for a Menu item and grab it from there. Once you have the DTL_TYPE = M, you can then add an if function to check the DTL_STATUS of the item, Condiments generally have a Status of 05000 or greater. If there is another Parent item after it, it will pass it and see any Condiment items that are there, if any.

Code below was tested on a 9700 System v3.6. It may work on the 3700.
Code:
  for i = 1 to @NUMDTLT
    if @DTL_TYPE[i] = "M"
      if @DTL_STATUS[i] >= "05000"
        // Do stuff here
        infomessage @DTL_TYPE[i], " - ", @DTL_NAME[i], " - STATUS: ", @DTL_STATUS[i]
      endif
      
    endif
  endfor

:::UPDATE:::
This will not work for any Menu Item's that have Reference Info on them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top