I have upgraded to versoin 2 and am using the following code to generate some calculated fields:
select *,
(cost1 + cost2 + cost3 + Cost4 + Cost5 + Cost6 + Cost7 + Cost8 + Cost9 + Cost10 + Cost11 + Cost12 + Cost13 + Cost14 + Cost15 + delivery) * 0.175 as myvat,
(cost1 + cost2 + cost3 + Cost4 + Cost5 + Cost6 + Cost7 + Cost8 + Cost9 + Cost10 + Cost11 + Cost12 + Cost13 + Cost14 + Cost15 + delivery) * 1.175 as mytotal
From `order`
The fields appear on the pages but they do not calculate, the fields are set as currency, does this matter.