Sum of Rows in Queries and Templates
-
Hi Kim,
As requested in another thread, I am starting this new thread.
I am trying to create an invoice with a total balance due from data in MySQL.
I built a query that creates an invoice, line by line, but, as I asked in the aforementioned thread, how do I get a GRAND TOTAL of the “Totals” at the bottom?
Here’s the code:
select billing.*, client.client, client.id, (time_spent*wage+charge-payment)from billing,client WHERE billing.client=client.id && client.id=44 ORDER BY client.client ASC
Works perfectly, except, there is no way I know of using just a MySQL select to get the GRAND TOTAL I seek and place it at the end of the result column.
Can the results of the query be popped up in a window with the GRAND TOTAL at the bottom? Can they be printed to a .PDF and displayed through the hyperlink feature? Just sayin’?
What is the best way to display the results of the query to the customer?
Thanks again for your expertise. I am a developer and very excited about your plugin.
- The topic ‘Sum of Rows in Queries and Templates’ is closed to new replies.