manelandrea
Programmer
Hi! May I know how can I get the level of menu items from MICROS using ISL? I need to pass to our 3rd party system something like this:
Structure:
"items": [
// parent item
{
"level": 0,
"line_number": 1,
"parent_line_number": 0,
"name": "Pizza",
"description": "Pizza Crust",
"sku": "1231",
"categories": [
"102"
],
"quantity": 1.0,
"unit_price": 5.25,
"discountable": true
},
// child items
{
"level": 1,
"line_number": 2,
"parent_line_number": 1,
"name": "Cheese",
"description": "Mozzarella ",
"sku": "31241",
"categories": [
"106"
],
"quantity": 1.0,
"unit_price": 0.75,
"discountable": true
}
]
How can I get the level and parent line number using ISL? I tried the @dtl_mlvl[] and @dtl_slvl but I kept on getting the number 1 for all the items that I entered.
Structure:
"items": [
// parent item
{
"level": 0,
"line_number": 1,
"parent_line_number": 0,
"name": "Pizza",
"description": "Pizza Crust",
"sku": "1231",
"categories": [
"102"
],
"quantity": 1.0,
"unit_price": 5.25,
"discountable": true
},
// child items
{
"level": 1,
"line_number": 2,
"parent_line_number": 1,
"name": "Cheese",
"description": "Mozzarella ",
"sku": "31241",
"categories": [
"106"
],
"quantity": 1.0,
"unit_price": 0.75,
"discountable": true
}
]
How can I get the level and parent line number using ISL? I tried the @dtl_mlvl[] and @dtl_slvl but I kept on getting the number 1 for all the items that I entered.