
[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD]
Acc002 | £75.00 | 5 | Breakfast Light | 24/10/2015 | 2 | £3.50 | £375.00 | £7.00 |
Acc002 | £75.00 | 5 | Breakfast Standard | 23/10/2015 | 2 | £5.00 | £375.00 | £10.00 |
£17.00 |
<caption> Invoice </caption><thead>
[TH="bgcolor: #c0c0c0"] Accommodation ID [/TH]
[TH="bgcolor: #c0c0c0"] Price per night [/TH]
[TH="bgcolor: #c0c0c0"] Number of nights [/TH]
[TH="bgcolor: #c0c0c0"] Description [/TH]
[TH="bgcolor: #c0c0c0"] Date of meal [/TH]
[TH="bgcolor: #c0c0c0"] Number of meals [/TH]
[TH="bgcolor: #c0c0c0"] Price per person [/TH]
[TH="bgcolor: #c0c0c0"] Total cost of accommodation [/TH]
[TH="bgcolor: #c0c0c0"] Total cost of meals [/TH]
</thead><tbody>
</tbody><tfoot></tfoot>
[/TR]
</tbody>[/TABLE]
This is one part of my invoice, It shows the [Total cost of accommodation] and the [Total cost of meals]. Basically I need a way to add the TOTAL of the [Total cost of meals] (In this case it is £17.00 but depending on how many meals are ordered by the customer this could be more or less) to the [Total cost of accommodation] (Which in this case is £375.00). I don't like the fact that I have to have the duplicate value of the accommodation due to the fact it is in the same query as the meals booked. Any suggestions on alternate ways that I can setup the query differently will be welcomed.
Thanks.
