I am not sure I understand the question.
Are you asking how to get the most recently added line item of an order or how to get all the line items which do not have lineItem discounts already applied to them?
Hi
We have make an app using clover sdk in which we are applying discount. I am adding Item from register app but every time we are getting list of all the line items added in order through clover by looping below function whether it is discounted or not.
orderConnector.getOrder(orderID).getLineItems()
So I want only that line item which is recently added,because we have a background service in that app that is updating the order and putting discount when some criteria gets fulfilled on register app. So if any method is there by which we get only that particular line item which is not discounted or recently added or anything by which we apply discount on that newly added line item ignoring others line item.
2 People are following this question.