I have a table containing sales ticket, their associate purchased items.
Each purchased item is tied to one sale ticket
There can be many purchased item in one sale ticket
How can I print the receipt for the sale ticket, since each of the sale ticket has no fixed amount of purchased item.
The sale ticket needs to list all the item purchased.
I have tried using portal to display the purchased item that is related to the sale ticket. This works, but I have to prefixed a number of row for the portal. Some sale ticket with 1 or 2 item ends up wtih a large empty portion in my receipt.
How should I do this receipt printing?