I recently downloaded the newest version of Time Trex.
Before the upgrade employees were able to verify their timesheets. After the upgrade, the system tells us we need to verify the timesheets but the tabe to do so is no longer there.
timesheet verification
Re: timesheet verification
Please see our Administrator Guide regarding Pay Period Schedules, specifically the section on TimeSheet Verification Window.
http://www.timetrex.com/wiki/index.php/ ... d_Schedule
http://www.timetrex.com/wiki/index.php/ ... d_Schedule
Re: timesheet verification
My issue is similar.
I upgraded today to 3.0.3
When employes click VERIFY the pop-up message appears, but after clicking OK : Nothing happens...
The Verify Button is still there (Even if I reload the page)
I'm inside the time verification window.
Any idea the cause ?
I upgraded today to 3.0.3
When employes click VERIFY the pop-up message appears, but after clicking OK : Nothing happens...
The Verify Button is still there (Even if I reload the page)
I'm inside the time verification window.
Any idea the cause ?
Re: timesheet verification
Do you have a hierarchy setup for TimeSheet Verifications?
Re: timesheet verification
Yes, the hierarchy is correctly set-up : The supervisor receive timesheets of their subordinates when they click Verify.
The Problem is that since I updated To version 3.0.3, when users click on Verify . The button remains there.
here a short video `:
http://www.innovmedia.ca/timetrex/verif.swf
The Problem is that since I updated To version 3.0.3, when users click on Verify . The button remains there.
here a short video `:
http://www.innovmedia.ca/timetrex/verif.swf
Re: timesheet verification
Okay, you will need to enable debugging as per this FAQ entry:
http://forums.timetrex.com/viewtopic.php?f=6&t=89
But only do so immediately before you press the "Verify" button. Once the button is pressed you should see a lot of debug output on the screen, please copy and paste it all here. (there will be some at the top, and some at the bottom, we need it all)
http://forums.timetrex.com/viewtopic.php?f=6&t=89
But only do so immediately before you press the "Verify" button. Once the button is pressed you should see a lot of debug output on the screen, please copy and paste it all here. (there will be some at the top, and some at the bottom, we need it all)
Re: timesheet verification
I did not get any debug outpout on top :
Here's the debug bottom:
Debug Buffer
============================================================================
Memory Usage: 19302624 Buffer Size: 76
----------------------------------------------------------------------------
DEBUG [130]: TTDate::setTimeZone(): Setting TimeZone: Canada/Eastern
DEBUG [558]: Authentication::Check(): Session ID: 1f3c5bc5446a73b95f120e1f70d47749 URL: /interface/timesheet/ViewUserTimeSheet.php?filter_data%5Bgroup_ids%5D=-1&filter_data%5Bdepartment_ids%5D=-1&filter_data%5Buser_id%5D=1&filter_data%5Bdate%5D=11%2F12%2F2009&override_action=Vrifier&action=0
DEBUG [87]: [Function](): User Authenticated: gestion Created Date: 1261081858
DEBUG [2221]: UserFactory::isInformationComplete(): User Information is Complete:
DEBUG [125]: TTDate::setTimeZone(): TimeZone already set to: Canada/Eastern
DEBUG [160]: TTDate::setDateFormat(): Setting Default Date Format: d/m/Y
DEBUG [174]: TTDate::setTimeFormat(): Setting Default Time Format: G:i
DEBUG [188]: TTDate::setTimeUnitFormat(): Setting Default Time Unit Format: 10
DEBUG [125]: [Function](): Locale Cookie: fr_FR
DEBUG [305]: TTi18n::getLanguageFromLocale(): Locale: fr_FR
DEBUG [133]: [Function](): User Preference Language matches cookie!
DEBUG [334]: TTi18n::setLocale(): Generated/Passed In Locale:
DEBUG [270]: TTi18n::generateLocale(): Array of Locales to try in order for "": fr_CA,fr_FR,fr,en_US
DEBUG [220]: TTi18n::tryLocale(): Found valid windows locale: French_Canada.1252 Linux locale: fr_CA
DEBUG [228]: TTi18n::tryLocale(): Found valid locale: fr_CA
DEBUG [340]: TTi18n::setLocale(): Attempting to set Locale(s) to: fr_CA Category: 0 Current Locale:
DEBUG [343]: TTi18n::setLocale(): Setting currency/numeric Locale to: fr_CA
DEBUG [356]: TTi18n::setLocale(): Setting translator to normalized locale: fr_FR
DEBUG [376]: TTi18n::setLocale(): Set Master Locale To: fr_CA
DEBUG [2221]: UserFactory::isInformationComplete(): User Information is Complete:
DEBUG [1241]: UserPreferenceFactory::isPreferencesComplete(): User Preferences IS Complete:
DEBUG [159]: [Function](): Station ID Cookie found! 65583a5a88b4b9a0f5f4775adf69fed9
DEBUG [265]: [Function](): UnRead Messages: 0
DEBUG [292]: [Function](): Exception Flag to Display:
DEBUG [134]: [Function](): Found Default Filter!
DEBUG [369]: FastTree::getAllChildren(): Getting Root ID: 0
DEBUG [194]: [Function](): Viewing all users timesheet
DEBUG [265]: [Function](): Passed ID:
DEBUG [C:\Program Files\TimeTrex\timetrex\classes\modules\users\UserGenericDataFactory.class.php]: 170(): select id from user_generic_data where company_id = ? AND script = ? AND lower(name) = ? AND user_id = 1 AND deleted = 0
DEBUG [172] Array: UserGenericDataFactory::isUniqueName(): Unique Name: Default
1
DEBUG [1032]: Factory::isValid(): Calling Validate()
DEBUG [1015]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 0 Trans Off: 0
DEBUG [1052]: Factory::Save(): Calling preSave()
DEBUG [257]: UserGenericDataFactory::preSave(): Removing Default Flag From: 1
DEBUG [1032]: Factory::isValid(): Calling Validate()
DEBUG [1015]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [1052]: Factory::Save(): Calling preSave()
DEBUG [1032]: Factory::isValid(): Calling Validate()
DEBUG [1097]: Factory::Save(): Updating...
DEBUG [958]: Factory::getUpdateQuery(): Data changed, set updated date:
DEBUG [1025]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 2
DEBUG [1032]: Factory::isValid(): Calling Validate()
DEBUG [1097]: Factory::Save(): Updating...
DEBUG [958]: Factory::getUpdateQuery(): Data changed, set updated date:
DEBUG [1025]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [312]: [Function](): Pay Period ID: 8
DEBUG [324]: [Function](): Action: vrifier
DEBUG [65]: BreadCrumb::setCrumb(): Dropping Bread Crumb: My Timesheet URL: /interface/timesheet/ViewUserTimeSheet.php?filter_data%5Bgroup_ids%5D=-1&filter_data%5Bdepartment_ids%5D=-1&filter_data%5Buser_id%5D=1&filter_data%5Bdate%5D=11%2F12%2F2009&override_action=Vrifier&action=0
DEBUG [436]: [Function](): Default Action: vrifier
DEBUG [1261]: TTDate::getBeginWeekEpoch(): Epoch: 11/12/2009 0:00 Retval: 07/12/2009 0:00 Start Day of Week: 1 Offset: 4
DEBUG [1261]: TTDate::getBeginWeekEpoch(): Epoch: 11/12/2009 12:00 Retval: 07/12/2009 0:00 Start Day of Week: 1 Offset: 4
DEBUG [1272]: TTDate::getEndWeekEpoch(): Epoch: 11/12/2009 0:00 Retval: 13/12/2009 23:59 Start Day of Week: 1
DEBUG [441]: [Function](): Start Date: 07/12/2009 0:00 End Date: 13/12/2009 23:59
DEBUG [1423]: TTDate::getCalendarArray(): Start Day Of Week: 1
DEBUG [1425]: TTDate::getCalendarArray(): Raw Start Date: 07/12/2009 0:00 Raw End Date: 13/12/2009 23:59
DEBUG [1261]: TTDate::getBeginWeekEpoch(): Epoch: 07/12/2009 0:00 Retval: 07/12/2009 0:00 Start Day of Week: 1 Offset: 0
DEBUG [1261]: TTDate::getBeginWeekEpoch(): Epoch: 13/12/2009 12:00 Retval: 07/12/2009 0:00 Start Day of Week: 1 Offset: 6
DEBUG [1272]: TTDate::getEndWeekEpoch(): Epoch: 13/12/2009 23:59 Retval: 13/12/2009 23:59 Start Day of Week: 1
DEBUG [1436]: TTDate::getCalendarArray(): Cal Start Date: 07/12/2009 0:00 Cal End Date: 13/12/2009 23:59
DEBUG [636]: [Function](): No Punch Count: 7 Max: 14
DEBUG [636]: [Function](): No Punch Count: 14 Max: 14
DEBUG [640]: [Function](): Stopping Loop at: 1
DEBUG [52]: TimeSheetFormatArrayByDate(): Group Array While Loop:
DEBUG [66]: TimeSheetFormatArrayByDate(): While Loop: 0 Max No Punch Count: 7 Type ID: 100 ...
DEBUG [97]: TimeSheetFormatArrayByDate(): No Punch Count: 0 Max: 7
DEBUG [66]: TimeSheetFormatArrayByDate(): While Loop: 1 Max No Punch Count: 7 Type ID: ...
DEBUG [97]: TimeSheetFormatArrayByDate(): No Punch Count: 7 Max: 7
DEBUG [99]: TimeSheetFormatArrayByDate(): Stopping Loop at: 1
DEBUG [1443]: UserDateTotalListFactory::getWorkedTimeSumByUserIDAndPayPeriodId(): Total:
DEBUG [1349]: [Function](): Worked Total Time: 0
DEBUG [1523]: UserDateTotalListFactory::getPaidAbsenceTimeSumByUserIDAndPayPeriodId(): Total:
DEBUG [1352]: [Function](): Paid Absence Total Time:
DEBUG [1605]: UserDateTotalListFactory::getDockAbsenceTimeSumByUserIDAndPayPeriodId(): Total:
DEBUG [1355]: [Function](): Dock Absence Total Time:
DEBUG [1415]: [Function](): Pay Period Object Found!
DEBUG [1603]: CompanyFactory::getLogoFileName(): Logo File Name: C:\Program Files\TimeTrex\storage\\company_logo\1\logo.jpg
============================================================================
============================================================================
PROFILER OUTPUT
============================================================================
Calls Time Routine
-----------------------------------------------------------------------------
1 34.3330 ms (3.38 %) Authentication::Check()
1 47.8232 ms (4.71 %) Interface.inc - Check for Exceptions
1 48.8629 ms (4.81 %) Interface.inc - Check for UNREAD messages...
13 14.7238 ms (1.45 %) getEmptyRecordSet()
1 33.1221 ms (3.26 %) getPermissionHierarchyChildrenByCompanyIdAndUserId
1 40.1561 ms (3.95 %) setLocale()
1 633.0349 ms (62.34 %) unprofiled
163.3279 ms (16.09 %) Missed
============================================================================
1015.3840 ms (100.00 %) OVERALL TIME
============================================================================
Thank's you
Here's the debug bottom:
Debug Buffer
============================================================================
Memory Usage: 19302624 Buffer Size: 76
----------------------------------------------------------------------------
DEBUG [130]: TTDate::setTimeZone(): Setting TimeZone: Canada/Eastern
DEBUG [558]: Authentication::Check(): Session ID: 1f3c5bc5446a73b95f120e1f70d47749 URL: /interface/timesheet/ViewUserTimeSheet.php?filter_data%5Bgroup_ids%5D=-1&filter_data%5Bdepartment_ids%5D=-1&filter_data%5Buser_id%5D=1&filter_data%5Bdate%5D=11%2F12%2F2009&override_action=Vrifier&action=0
DEBUG [87]: [Function](): User Authenticated: gestion Created Date: 1261081858
DEBUG [2221]: UserFactory::isInformationComplete(): User Information is Complete:
DEBUG [125]: TTDate::setTimeZone(): TimeZone already set to: Canada/Eastern
DEBUG [160]: TTDate::setDateFormat(): Setting Default Date Format: d/m/Y
DEBUG [174]: TTDate::setTimeFormat(): Setting Default Time Format: G:i
DEBUG [188]: TTDate::setTimeUnitFormat(): Setting Default Time Unit Format: 10
DEBUG [125]: [Function](): Locale Cookie: fr_FR
DEBUG [305]: TTi18n::getLanguageFromLocale(): Locale: fr_FR
DEBUG [133]: [Function](): User Preference Language matches cookie!
DEBUG [334]: TTi18n::setLocale(): Generated/Passed In Locale:
DEBUG [270]: TTi18n::generateLocale(): Array of Locales to try in order for "": fr_CA,fr_FR,fr,en_US
DEBUG [220]: TTi18n::tryLocale(): Found valid windows locale: French_Canada.1252 Linux locale: fr_CA
DEBUG [228]: TTi18n::tryLocale(): Found valid locale: fr_CA
DEBUG [340]: TTi18n::setLocale(): Attempting to set Locale(s) to: fr_CA Category: 0 Current Locale:
DEBUG [343]: TTi18n::setLocale(): Setting currency/numeric Locale to: fr_CA
DEBUG [356]: TTi18n::setLocale(): Setting translator to normalized locale: fr_FR
DEBUG [376]: TTi18n::setLocale(): Set Master Locale To: fr_CA
DEBUG [2221]: UserFactory::isInformationComplete(): User Information is Complete:
DEBUG [1241]: UserPreferenceFactory::isPreferencesComplete(): User Preferences IS Complete:
DEBUG [159]: [Function](): Station ID Cookie found! 65583a5a88b4b9a0f5f4775adf69fed9
DEBUG [265]: [Function](): UnRead Messages: 0
DEBUG [292]: [Function](): Exception Flag to Display:
DEBUG [134]: [Function](): Found Default Filter!
DEBUG [369]: FastTree::getAllChildren(): Getting Root ID: 0
DEBUG [194]: [Function](): Viewing all users timesheet
DEBUG [265]: [Function](): Passed ID:
DEBUG [C:\Program Files\TimeTrex\timetrex\classes\modules\users\UserGenericDataFactory.class.php]: 170(): select id from user_generic_data where company_id = ? AND script = ? AND lower(name) = ? AND user_id = 1 AND deleted = 0
DEBUG [172] Array: UserGenericDataFactory::isUniqueName(): Unique Name: Default
1
DEBUG [1032]: Factory::isValid(): Calling Validate()
DEBUG [1015]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 0 Trans Off: 0
DEBUG [1052]: Factory::Save(): Calling preSave()
DEBUG [257]: UserGenericDataFactory::preSave(): Removing Default Flag From: 1
DEBUG [1032]: Factory::isValid(): Calling Validate()
DEBUG [1015]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [1052]: Factory::Save(): Calling preSave()
DEBUG [1032]: Factory::isValid(): Calling Validate()
DEBUG [1097]: Factory::Save(): Updating...
DEBUG [958]: Factory::getUpdateQuery(): Data changed, set updated date:
DEBUG [1025]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 2
DEBUG [1032]: Factory::isValid(): Calling Validate()
DEBUG [1097]: Factory::Save(): Updating...
DEBUG [958]: Factory::getUpdateQuery(): Data changed, set updated date:
DEBUG [1025]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [312]: [Function](): Pay Period ID: 8
DEBUG [324]: [Function](): Action: vrifier
DEBUG [65]: BreadCrumb::setCrumb(): Dropping Bread Crumb: My Timesheet URL: /interface/timesheet/ViewUserTimeSheet.php?filter_data%5Bgroup_ids%5D=-1&filter_data%5Bdepartment_ids%5D=-1&filter_data%5Buser_id%5D=1&filter_data%5Bdate%5D=11%2F12%2F2009&override_action=Vrifier&action=0
DEBUG [436]: [Function](): Default Action: vrifier
DEBUG [1261]: TTDate::getBeginWeekEpoch(): Epoch: 11/12/2009 0:00 Retval: 07/12/2009 0:00 Start Day of Week: 1 Offset: 4
DEBUG [1261]: TTDate::getBeginWeekEpoch(): Epoch: 11/12/2009 12:00 Retval: 07/12/2009 0:00 Start Day of Week: 1 Offset: 4
DEBUG [1272]: TTDate::getEndWeekEpoch(): Epoch: 11/12/2009 0:00 Retval: 13/12/2009 23:59 Start Day of Week: 1
DEBUG [441]: [Function](): Start Date: 07/12/2009 0:00 End Date: 13/12/2009 23:59
DEBUG [1423]: TTDate::getCalendarArray(): Start Day Of Week: 1
DEBUG [1425]: TTDate::getCalendarArray(): Raw Start Date: 07/12/2009 0:00 Raw End Date: 13/12/2009 23:59
DEBUG [1261]: TTDate::getBeginWeekEpoch(): Epoch: 07/12/2009 0:00 Retval: 07/12/2009 0:00 Start Day of Week: 1 Offset: 0
DEBUG [1261]: TTDate::getBeginWeekEpoch(): Epoch: 13/12/2009 12:00 Retval: 07/12/2009 0:00 Start Day of Week: 1 Offset: 6
DEBUG [1272]: TTDate::getEndWeekEpoch(): Epoch: 13/12/2009 23:59 Retval: 13/12/2009 23:59 Start Day of Week: 1
DEBUG [1436]: TTDate::getCalendarArray(): Cal Start Date: 07/12/2009 0:00 Cal End Date: 13/12/2009 23:59
DEBUG [636]: [Function](): No Punch Count: 7 Max: 14
DEBUG [636]: [Function](): No Punch Count: 14 Max: 14
DEBUG [640]: [Function](): Stopping Loop at: 1
DEBUG [52]: TimeSheetFormatArrayByDate(): Group Array While Loop:
DEBUG [66]: TimeSheetFormatArrayByDate(): While Loop: 0 Max No Punch Count: 7 Type ID: 100 ...
DEBUG [97]: TimeSheetFormatArrayByDate(): No Punch Count: 0 Max: 7
DEBUG [66]: TimeSheetFormatArrayByDate(): While Loop: 1 Max No Punch Count: 7 Type ID: ...
DEBUG [97]: TimeSheetFormatArrayByDate(): No Punch Count: 7 Max: 7
DEBUG [99]: TimeSheetFormatArrayByDate(): Stopping Loop at: 1
DEBUG [1443]: UserDateTotalListFactory::getWorkedTimeSumByUserIDAndPayPeriodId(): Total:
DEBUG [1349]: [Function](): Worked Total Time: 0
DEBUG [1523]: UserDateTotalListFactory::getPaidAbsenceTimeSumByUserIDAndPayPeriodId(): Total:
DEBUG [1352]: [Function](): Paid Absence Total Time:
DEBUG [1605]: UserDateTotalListFactory::getDockAbsenceTimeSumByUserIDAndPayPeriodId(): Total:
DEBUG [1355]: [Function](): Dock Absence Total Time:
DEBUG [1415]: [Function](): Pay Period Object Found!
DEBUG [1603]: CompanyFactory::getLogoFileName(): Logo File Name: C:\Program Files\TimeTrex\storage\\company_logo\1\logo.jpg
============================================================================
============================================================================
PROFILER OUTPUT
============================================================================
Calls Time Routine
-----------------------------------------------------------------------------
1 34.3330 ms (3.38 %) Authentication::Check()
1 47.8232 ms (4.71 %) Interface.inc - Check for Exceptions
1 48.8629 ms (4.81 %) Interface.inc - Check for UNREAD messages...
13 14.7238 ms (1.45 %) getEmptyRecordSet()
1 33.1221 ms (3.26 %) getPermissionHierarchyChildrenByCompanyIdAndUserId
1 40.1561 ms (3.95 %) setLocale()
1 633.0349 ms (62.34 %) unprofiled
163.3279 ms (16.09 %) Missed
============================================================================
1015.3840 ms (100.00 %) OVERALL TIME
============================================================================
Thank's you
Re: timesheet verification
Thanks for the debug output, I can see the issue has to do with a translated string in the wrong place so TimeTrex doesn't recognize the Verify button in some languages. I will pass this on to the developers to fix in the next release.
Re: timesheet verification
In the meantime, is there a way I can deactivate French ?
(To force users using english ?)
(To force users using english ?)
Re: timesheet verification
You would have th modify the source code.
File: classes/modules/core/TTi18n.class.php, find the following:
Remove 'fr', (comma is important to remove too) from each of those lists.
This just prevents users from selecting French in the future, you may need to go through their preferences and manually switch them to English as well.
File: classes/modules/core/TTi18n.class.php, find the following:
Code: Select all
// Return supported languages only.
$supported_langs = array( 'en', 'es', 'fr', 'de', 'it', 'pt', 'da' );
$beta_langs = array( 'es','fr','de','it','pt', 'da' );
This just prevents users from selecting French in the future, you may need to go through their preferences and manually switch them to English as well.