Itemized Invoice

Hello openemr community,

Please i need to itemize the invoice in the Fees->Payment section. By itemizing, i mean a table to display headings (Date, Description, Quantity, Price, Total).

I understand that the system totals the price for the current encounter. Having a table to display the headers stated above is not the problem. The problem i am facing now is to query the data from the billing table and drug_sales table.

Much help needed here.
Thanks in advance