This topic is locked
[SOLVED]

 Adding to values and then multiplying by another

11/9/2012 9:56:35 PM
PHPRunner General questions
B
bencroftweb author

Hi There!
I am trying to add to field totals together and then multiply by another.
It looks like this this:
(Jobs.Travel Time+

Jobs.Timeonsite*Jobs.MinuteRate) AS TotalEarned
This however gives a random figure.
If I remove for example the Travel Time it works perfect.
Please help!!
Thanks
Ben

B
bencroftweb author 11/10/2012

I figured it out!
(Jobs.Timeonsite+Jobs.Travel Time)*(Jobs.MinuteRate) AS TotalEarned
Sorted!!