Perhaps consider adjusting your dB model to have a data-type called “line item”. This object would house the product, the qnty and the price. It could be the data source you need.