Delicious      Technorati      Blinklist      Furl      Reddit

TimeTrex Time and Attendance

TimeTrex Time and Attendance


* FAQ    * Search
* Login   * Register

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Mar 21, 2016 9:26 pm 
Offline

Joined: Sun Feb 14, 2016 6:09 pm
Posts: 51
hi again :)

just a simple question, below is a screenshot of a sample weekly sched:
Attachment:
weekly_sched.JPG
weekly_sched.JPG [ 27.86 KiB | Viewed 2705 times ]


how do i "get" the "total" number of hours scheduled for all of the dates shown in this current week?
i look at the codes particularly ScheduleFactory.php and ScheduleViewController.js,
but it seems like I could only get the start/end/total time per singular day (the one I'm editing or adding via New button)

any help would greatly be appreciated


Top
 Profile  
 
PostPosted: Tue Mar 22, 2016 7:13 am 
Offline

Joined: Tue Sep 19, 2006 2:22 pm
Posts: 7234
That is correct, you will need to add up the total time for each day in the period that you want a total for.


Top
 Profile  
 
PostPosted: Tue Mar 22, 2016 6:18 pm 
Offline

Joined: Sun Feb 14, 2016 6:09 pm
Posts: 51
yeah, but i cant seem to find in the code where it cycles through all the days shown currently, and if its has a schedule (cell with value) or not (blank cell). i'm wishing you could help me in at least where it does this, thank you so much


Top
 Profile  
 
PostPosted: Tue Mar 22, 2016 8:50 pm 
Offline

Joined: Sun Feb 14, 2016 6:09 pm
Posts: 51
i found something in the javascript file ScheduleViewController.js, when I do this
alert("week start: " + this.start_date.format());
alert("week end: " + this.end_date.format());

i get the monday and sunday date (start and end of the shown row),
but i would like these values to be acquired through the php class file,
particularly in ScheduleFactory.class.php inside the Validate function, how do I that?

i will use those dates to call the method "getByUserIdAndStartDateAndEndDate" of ScheduleListFactory to count the # of records, so i could get each scheduled day, then maybe each total hour and calculate the grand total hour


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Time and Attendance




Powered by phpBB® Forum Software © phpBB Group