I am print the purchase order and I want to make a sumary of each product
if there are 2 lines(or more) of same product, I want to add them together
How can I do this?
I have an idea which is reading all order lines and return an array which store the details but I dont know how to do this.