Hi everybody, I try to learn to work with Fabrik to make a little application wich allows me to fill the schedules of my employees. I made 3 lists : first contains the list of the employees, second contains the list of works and the third is the form I must fill in with by choice of the employee and choice of the work. And there a 2 field : date-start and date-end, with the hour of startijng and the hour of end. The date is stored as Local time with the format %d-%m-%Y %H-%M because I'm in France.
Then I created an element "duration" and in Options => Calculation I get :
But the respons in the field duration is 0.
I cann't find the method.
Thanks for your help !
Then I created an element "duration" and in Options => Calculation I get :
Code:
$debut = JRequest::getVar('planning__date_debut');
$fin = JRequest::getVar('planning__date_fin');
$duree = $fin - $debut;
return $duree;
But the respons in the field duration is 0.
I cann't find the method.
Thanks for your help !