Open bodokaiser opened 10 years ago
We should add a addItem(item) method to order.get('items') which checks if an item with equal attributes already exists and if yes then only increases its quantity. This will remove duplicates from an order.
addItem(item)
order.get('items')
We should add a
addItem(item)
method toorder.get('items')
which checks if an item with equal attributes already exists and if yes then only increases its quantity. This will remove duplicates from an order.