I have an item in my inventory which has a fixed price of $1.50. When I add the item twice in the register app, it shows the price as $3.00. Then I open my custom merchant tender app and use the IOrderService to retrieve the order. When I extract the LineItems and print it, I see Water printed twice. Doesn't the sdk group them together?
Here's the response:
"lineItems":{
"elements":[
{
"createdTime":1486029515310,
"taxRates":{
"elements":[
{
"id":"M6SY0C8FE05BC",
"isDefault":false,
"rate":0,
"name":"NO_TAX_APPLIED"
}
]
},
"userData":null,
"alternateName":"",
"exchanged":false,
"id":"251ET95F4DSKC",
"refunded":false,
"price":150,
"binName":null,
"isRevenue":true,
"name":"Water",
"item":{
"id":"N68V57MNBMNT2"
},
"printed":false,
"itemCode":"1000001"
},
{
"createdTime":1486029515814,
"taxRates":{
"elements":[
{
"id":"M6SY0C8FE05BC",
"isDefault":false,
"name":"NO_TAX_APPLIED",
"rate":0
}
]
},
"userData":null,
"alternateName":"",
"id":"5VR3TW03JX8EG",
"exchanged":false,
"price":150,
"refunded":false,
"binName":null,
"isRevenue":true,
"item":{
"id":"N68V57MNBMNT2"
},
"name":"Water",
"printed":false,
"itemCode":"1000001"
}
]
}