Search found 55 matches

by joshsard
Wed Jun 29, 2016 12:06 am
Forum: Help
Topic: Accumulated Time total value showing more than expected
Replies: 1
Views: 2254

Accumulated Time total value showing more than expected

Hi, I have a question on the shown value of Accumulated Time in the TimeSheet. I created a pair of Punches (in/out) then the Accumulated Time shows our 'normal' daily total time which is '9:00' but when I delete the punch out and add again, the '9:00' suddenly becomes '18:00'. What could be the reas...
by joshsard
Sun Jun 19, 2016 6:34 pm
Forum: Developers
Topic: punch in/out w/o pair in TimeSheet Detail report
Replies: 0
Views: 13690

punch in/out w/o pair in TimeSheet Detail report

Hi, I've used to export a report from Report -> TimeSheet Reports -> TimeSheet Detail using Template 'All Time by Employee' selected Display columns are: First Name, Last Name, Date, First In Punch, Last Out Punch Group By: First Name, Last Name, Date Sort By: Last Name, First Name But I wonder why ...
by joshsard
Thu May 26, 2016 9:10 pm
Forum: Developers
Topic: how to get orignal value of field in form on open via php
Replies: 0
Views: 14861

how to get orignal value of field in form on open via php

hi, i am currently looking at PunchFactory.class.php to add a validation in Timesheet UI that if some value is changed in the opened form of an existing punch, it will not save unless there is a value in the Note field. my question is how could i get or store the original value shown in the form, on...
by joshsard
Wed May 25, 2016 11:27 pm
Forum: Developers
Topic: get current logged in user
Replies: 2
Views: 9223

Re: get current logged in user

can anyone tell me if there is a php class in TimeTrex that could accomplish the same task as the js code above?
by joshsard
Tue May 24, 2016 11:22 pm
Forum: Developers
Topic: how to make fields read only via a checkbox
Replies: 0
Views: 14344

how to make fields read only via a checkbox

hi,

i have added a read-only checkbox in the Schedule form, how could I use PermissionManager or any javascript code to make all other fields in the form read-only when the said checkbox is checked and vice-versa?

thanks for your help
by joshsard
Tue May 24, 2016 9:14 pm
Forum: Developers
Topic: how to edit Exception Policy validation check
Replies: 1
Views: 8564

how to edit Exception Policy validation check

hi guys, We plan to use the Exception Policy 'SB' also known as 'Not Scheduled Branch or Department' for the Timesheet, but we like to remove the checking of the department. For example: Employee has Schedule for today in Branch A under Department 1 In the TimeSheet Punch form, he/she put value in B...
by joshsard
Tue May 24, 2016 9:07 pm
Forum: Developers
Topic: get current logged in user
Replies: 2
Views: 9223

Re: get current logged in user

i found the answer

LocalCacheData.getLoginUser().id
LocalCacheData.getLoginUser().user_name

etc

in javascript
by joshsard
Sun May 22, 2016 11:21 pm
Forum: Developers
Topic: get current logged in user
Replies: 2
Views: 9223

get current logged in user

Hi,

Can u tell me how (via php or javascript code) to get the user object of the person currently logged in in TimeTrex?
Thanks

J.
by joshsard
Thu Apr 21, 2016 11:19 pm
Forum: General Discussion
Topic: how to add custom fields to Schedule
Replies: 3
Views: 5211

Re: how to add custom fields to Schedule

but why is there columns like other_id1, other_id2, etc in the schedule table?
could i use them to recreate the behavior of the Other Fields function, but this time for Schedule object?
or is this gonna be too much work?
thanks
by joshsard
Sun Apr 10, 2016 11:29 pm
Forum: Developers
Topic: how to show custom fields in other forms
Replies: 1
Views: 19218

how to show custom fields in other forms

I was just wondering after adding additional fields via the Custom Fields for each type, for example Branch, that field shows up in the Branch form at the bottom. My question now is how do I show it in other forms, like in the Schedule form? For example I change the branch value from the dropdown (w...
by joshsard
Sun Apr 10, 2016 7:01 pm
Forum: General Discussion
Topic: how to add custom fields to Schedule
Replies: 3
Views: 5211

how to add custom fields to Schedule

Hi,

I know we could add additional data through the use of timetrex's custom fields (Company -> Custom Fields). But I was wondering how come there is no 'Schedule' type in the dropdown as seen here below?
custom_field_form.png
custom_field_form.png (9.68 KiB) Viewed 5211 times
Also, I noticed that the schedule table has columns named other_id*
by joshsard
Wed Mar 30, 2016 9:16 pm
Forum: Developers
Topic: how to know which page called the widget
Replies: 0
Views: 15218

how to know which page called the widget

Good morning. How do I get which form/page I am at currently in, using PhP code? For example, I am in the Schedule View form where I want to reduce the items in the Absence Policy field dropdown (when Status=Absent). We have set Absence Policies which have names like "unauthorized leave", ...
by joshsard
Mon Mar 28, 2016 1:17 am
Forum: Developers
Topic: restrict weekly schedule to only 6 days or total hours
Replies: 1
Views: 8829

Re: restrict weekly schedule to only 6 days or total hours

hi again,

i'll just rephrase my question: can we restrict adding a schedule for an employee for 7 straight days? only for 6 maximum days, this is regardless of time/branch

thanks
by joshsard
Tue Mar 22, 2016 8:50 pm
Forum: Developers
Topic: how to determine total hours
Replies: 3
Views: 11122

Re: how to determine total hours

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 b...
by joshsard
Tue Mar 22, 2016 6:18 pm
Forum: Developers
Topic: how to determine total hours
Replies: 3
Views: 11122

Re: how to determine total hours

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
by joshsard
Mon Mar 21, 2016 9:26 pm
Forum: Developers
Topic: how to determine total hours
Replies: 3
Views: 11122

how to determine total hours

hi again :) just a simple question, below is a screenshot of a sample weekly sched: weekly_sched.JPG 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 ScheduleViewControll...
by joshsard
Fri Mar 18, 2016 1:40 am
Forum: Developers
Topic: restrict weekly schedule to only 6 days or total hours
Replies: 1
Views: 8829

restrict weekly schedule to only 6 days or total hours

hi, do you guys know how to restrict a whole week of schedule in the schedule grid? i mean for example when i am in the weekly view of the schedule grid then i try to add a schedule for a particular employee that consists of each day (seven total) it wont let me do it? or after it calculates the who...
by joshsard
Thu Mar 17, 2016 9:14 pm
Forum: Developers
Topic: Lock schedule after creation
Replies: 2
Views: 14527

Re: Lock schedule after creation

Hi, I think from what I've read and understood, this only prevents changes to punches and (attendance) timesheets. How about the 'schedule' itself? Is there any setting to prevent changes for it?

Thanks again, sorry the late reply
by joshsard
Thu Mar 17, 2016 7:09 pm
Forum: Developers
Topic: Add multiple Branches at the same time in New Schedule Form
Replies: 2
Views: 9144

Re: Add multiple Branches at the same time in New Schedule F

:( Well can we make it dynamic? I mean for every extra Branch selected there will be another set of fields showing for Start/End time to specify the separate schedule. Or is that too much work?
by joshsard
Wed Mar 16, 2016 9:22 pm
Forum: Developers
Topic: Add multiple Branches at the same time in New Schedule Form
Replies: 2
Views: 9144

Add multiple Branches at the same time in New Schedule Form

Hi, I would like to ask help on how to change the field 'Branch' seen from the New Schedule Form orig.png from single selection to multiple selection (like the first field 'Employee'). I actually have managed to figure out how to turn it into multiple selection in the UI but I'm having problems on s...
by joshsard
Thu Mar 03, 2016 2:51 am
Forum: Developers
Topic: how to add validation for a specific class
Replies: 0
Views: 15420

how to add validation for a specific class

Hi,

As i know, we have a Validator.class.php, wherein its functions are called from different classes like ScheduleFactory.class.php.
I want to know if there's an existing way on adding custom validation function in a specific class, and not creating and calling it from Validator.class.php?

Thanks
by joshsard
Wed Mar 02, 2016 3:06 am
Forum: Developers
Topic: Lock schedule after creation
Replies: 2
Views: 14527

Lock schedule after creation

Hi,

I just want to know if there is a current functionality to "lock" (make no further changes possible) a created schedule after some time, like after 3 days?
And if not there, how do you suggest we do it in the php code?

Thanks
by joshsard
Tue Mar 01, 2016 9:11 pm
Forum: Developers
Topic: how to run timetrex in xampp
Replies: 1
Views: 7416

how to run timetrex in xampp

hi, i have downloaded and installed the timetrex community edition and it works on my localhost. i thought about running it via xampp (for debugging/logging) and so i copied installed folder structure of timetrex, and pasted to my xampp webfolder. im now asking which php file will i access in my web...
by joshsard
Sun Feb 28, 2016 6:53 pm
Forum: Developers
Topic: how function getGenericObject of Factory class works
Replies: 1
Views: 6754

Re: how function getGenericObject of Factory class works

Hi, I have found the solution, the code i showed before actually works, it's just the data having no object that's why there's no value for the getOtherID function. I now have it like below:

Code: Select all

($s_obj->getBranchObject() !== false) ? $s_obj->getBranchObject()->getOtherID1() : ''
by joshsard
Sun Feb 28, 2016 6:22 pm
Forum: Developers
Topic: missing class diagram on TimeTrex API website
Replies: 3
Views: 7894

Re: missing class diagram on TimeTrex API website

hi shaunw,

did u have any updates regarding this? thanks, i really need it