Hello,
I am trying to calculate a field "total" for the Edit As I have the default value set to
$value =(($data["TIMOUT"])-($data["TIMEIN"]))/100
this shows me the correct value for "total" but when I save it, it says that it saved the data but the "total" field does not get populated.
So I did a couple of tests, for the "TIMOUT" out I could do
strftime("%H%M")
this would give me the time with out the " : " (this is the way I needed to be formatted)with that code, it writes to the "total" field, then I also tried
$value = $data["TIMEIN"]
this gives me tha value of "TIMEIN" and it writes back to "total"
but when I combine both in either way the $data["TIMOUT"] or strftime("%H%M") as a subtraction to the $value = $data["TIMEIN"]
it does not write to the "total" field
I am a bit stumped on this one.
Any help or guidance is incredibly appreciated.
Thanks!!