Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author tnomi

    (@tnomi)

    Try to insert the following code to the “<head>” of your theme.

    <script>
    jQuery( document ).ready( function($) {
        $('table.attmgr_weekly_all td.working').each( function(){
            var work = $( this ).text().split(' ~ ');
            var start = work[0].split(':');
            var end = work[1].split(':');
            var stime = Number(start[0])*60 + Number(start[1]);
            var etime = Number(end[0])*60 + Number(end[1]);
            var total = ( etime - stime )/60;
            $( this ).append('<br>'+total.toFixed(1)+' hours');
        })
    })
    </script>

    Thread Starter joeygr

    (@joeygr)

    oke many thanks! Last question. Is it also possible to ad by each day 2 time stamps to fill in in stead of 1? Exapmple one person works one day from 8:00 to 12:00 and from 14:300 to 17:00?

    hope it can

    greetings
    Joey

    Plugin Author tnomi

    (@tnomi)

    Sorry. No can do.

    Thread Starter joeygr

    (@joeygr)

    oke no problem. the script for the hours on which page i have to put in in?

    Plugin Author tnomi

    (@tnomi)

    Insert this script into the “<head>” of your theme.
    Or , you may insert it into the page there is a short code “[attmgr_weekly_all]”.
    For example,

    <script>
        ...
    </script>
    [attmgr_weekly_all]

    Thread Starter joeygr

    (@joeygr)

    Oke thanks i have it working now. Last question can you maybey make it also that in the week tabel it puts the total hours of a custommer from that week in a total? like this:

    https://beyouwerken.nl/example.jpg

    Plugin Author tnomi

    (@tnomi)

    Sorry. No can do.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Question see total wokring hours a day’ is closed to new replies.