Pay Period: None

Topics brought up by the TimeTrex open source community.
pat
Posts: 27
Joined: Sun Jul 08, 2007 10:56 am

Pay Period: None

Post by pat »

Hi, I have setup a semi-monthly pay period, but seems that the current Pay Period is not available because I can see "Pay Period: None".

My schedule task are running every minutes and has been running for the past 48 hours. I know they are running ok because the Red message saying that they were not running is not there anymore.

So what do I have to do to have my Pay Period created for each pay period?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Have you modified your pay period schedule after you initially created it? Specially the Daily Start Time?

If you go to Admin -> Payroll -> Pay Period Schedules and click "View" beside your pay period schedule, can you post all the pay periods listed there? A screenshot would be ideal, but just copying and pasting the text will do.
pat
Posts: 27
Joined: Sun Jul 08, 2007 10:56 am

Post by pat »

shaunw wrote:Have you modified your pay period schedule after you initially created it? Specially the Daily Start Time?

If you go to Admin -> Payroll -> Pay Period Schedules and click "View" beside your pay period schedule, can you post all the pay periods listed there? A screenshot would be ideal, but just copying and pasting the text will do.
Yes I have changed my Daily start time to be 6:00 AM, because I have employee working from 7:00PM to 2:00 AM...

I will provide a screen shot.
From what I remember, I could see:
2007-07-16 through 2007-07-31 This one is the current I can see it but I can't click on View or Edit because they don't appear at the end of the line.
2007-07-01 through 2007-07-16 I have close this period
2007-06-16 through 2007-07-01 I have close this period
2007-06-01 through 2007-06-16 I have close this period
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Okay, changing the daily start time could be what caused this. You should not use 6AM as the daily start time, only midnight (00:00). This has nothing to do with when employees start, but when your pay period starts.

By setting the pay period to start at 6AM, if an employee comes in before then their entire day could be in the previous pay period.

Unless you are a 24hr operation with specific needs, daily start time should stay at midnight.

You can try setting it back to midnight, then running the maint/AddPayPeriod.php script manually, or waiting until midnight for it to automatically run.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

If the above doesn't work, you will probably need to create a whole new pay period schedule, see this post for that procedure:

http://forums.timetrex.com/viewtopic.php?p=874#874
pat
Posts: 27
Joined: Sun Jul 08, 2007 10:56 am

Post by pat »

Thanks I followed your instruction and it seems to have fixed everything.
Though I had to recreate a new pay period.

Thanks again
pat
Posts: 27
Joined: Sun Jul 08, 2007 10:56 am

Post by pat »

Hi guys,
I again have the "Pay Period: NONE " displayed.

Last time I had re do all my pay period and they where fine for a while but now it seems that they are not working again...
I haven't touch anything related to pay period, the only thing I'm doing is ajusting clock out/in time...


Here what I have for my pay period:

1 Semi-Monthly2 Semi-Monthly N/A 2007-08-01 0:00 2007-08-15 23:59 2007-08-31 12:00
2 Semi-Monthly2 Semi-Monthly OPEN 2007-07-16 0:00 2007-07-31 23:59 2007-08-15 12:00 [ View ] [ Edit ]
3 Semi-Monthly2 Semi-Monthly OPEN 2007-07-01 0:00 2007-07-15 23:59 2007-08-01 12:00 [ View ] [ Edit ]
4 Semi-Monthly2 Semi-Monthly OPEN 2007-06-16 0:00 2007-06-30 23:59 2007-07-13 12:00 [ View ] [ Edit ]
5 Semi-Monthly2 Semi-Monthly OPEN 2007-06-01 0:00 2007-06-15 23:59 2007-06-29 12:00 [ View ] [ Edit ]
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Is the next pay period added if you run:

php maint/AddPayPeriod.php

manually from the TimeTrex directory?

Whats the output of running that script?

What version of TimeTrex are you running?
pat
Posts: 27
Joined: Sun Jul 08, 2007 10:56 am

Post by pat »

shaunw wrote:Is the next pay period added if you run:

php maint/AddPayPeriod.php

manually from the TimeTrex directory?

Whats the output of running that script?

What version of TimeTrex are you running?
Sorry I had re done my Pay Period Schedule.
Nex pay period if it doesn't work I will try to do what your suggesting.

Timetrex Version: 2.0.1

I see there is a new version, is it easy to update to a new version?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

v2.0.3 has been out for a while now, and yes, it is easy to upgrade.
pat
Posts: 27
Joined: Sun Jul 08, 2007 10:56 am

Post by pat »

shaunw wrote:v2.0.3 has been out for a while now, and yes, it is easy to upgrade.
I guess there is a tutorial explaining how to upgrade?
pat
Posts: 27
Joined: Sun Jul 08, 2007 10:56 am

Post by pat »

shaunw wrote:v2.0.3 has been out for a while now, and yes, it is easy to upgrade.
How can I know which version I have?
Because when I look in the About it says:
Version: 2.0.1
But I did install version 2.0.3 is it showing like this for you guys also?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Did you run the installer again as per the upgrade instructions in the README.txt file?
pat
Posts: 27
Joined: Sun Jul 08, 2007 10:56 am

Post by pat »

shaunw wrote:Did you run the installer again as per the upgrade instructions in the README.txt file?
Thanks
I'm all upgraded now.

We will see if my period schedule runs correctly next month currently here what I'm seeing:
1 NewSemiMonthly Semi-Monthly N/A 2007-08-16 0:00 2007-08-31 23:59 2007-09-15 12:00
2 NewSemiMonthly Semi-Monthly OPEN 2007-08-01 0:00 2007-08-15 23:59 2007-09-01 12:00 [ View ] [ Edit ]
3 NewSemiMonthly Semi-Monthly OPEN 2007-07-16 0:00 2007-07-31 23:59 2007-08-15 12:00 [ View ] [ Edit ]
4 NewSemiMonthly Semi-Monthly OPEN 2007-07-01 0:00 2007-07-15 23:59 2007-08-01 12:00 [ View ] [ Edit ]
5 NewSemiMonthly Semi-Monthly OPEN 2007-06-16 0:00 2007-06-30 23:59 2007-07-15 12:00 [ View ] [ Edit ]
6 NewSemiMonthly Semi-Monthly OPEN 2007-06-01 0:00 2007-06-15 23:59 2007-07-01 12:00 [ View ] [ Edit ]
7 NewSemiMonthly Semi-Monthly OPEN 2007-05-16 0:00 2007-05-31 23:59 2007-06-15 12:00 [ View ] [ Edit ]
8 NewSemiMonthly Semi-Monthly OPEN 2007-05-01 0:00 2007-05-15 23:59 2007-06-01 12:00 [ View ] [ Edit ]

I guess that when we are going to get close to 2007-08-15 my new period should become open.
1 NewSemiMonthly Semi-Monthly N/A 2007-08-16 0:00 2007-08-31 23:59 2007-09-15 12:00
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Correct, I believe it is 48hrs before the end of the current pay period TimeTrex will attempt to create the next one for you.
pat
Posts: 27
Joined: Sun Jul 08, 2007 10:56 am

Post by pat »

After all I have to redo my pay period again..
Something must be wrong with something.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

If you keep re-creating your pay period schedule you will just prolong the issue. You need to figure out whats causing the problem in the first place.

If you've already re-created it, this won't help at all. But next time the pay period is not automatically created for you, try running:

php maint/AddPayPeriod.php

Then post the debug output here.
pat
Posts: 27
Joined: Sun Jul 08, 2007 10:56 am

Post by pat »

shaunw wrote:If you keep re-creating your pay period schedule you will just prolong the issue. You need to figure out whats causing the problem in the first place.

If you've already re-created it, this won't help at all. But next time the pay period is not automatically created for you, try running:

php maint/AddPayPeriod.php

Then post the debug output here.
Ok I didn't recreated them yet.
I will try to run it manually
pat
Posts: 27
Joined: Sun Jul 08, 2007 10:56 am

Post by pat »

OK I have run the C:\xampp\php\php-win.exe C:\xampp\htdocs\TimeTrex\maint\AddPayPeriod.php and it worked.
My pay period is created now..

Maybe something is wrong with my schedule' I'll take a look and make sure is ok..
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Yes, check to make sure it is being run every minute. Also check under Help -> About to see when the last time the scheduled tasks ran, as well in your TimeTrex log directory, there should be a file called:

timetrex_cron_last_executed.log

That has the date when the last time the maintenance jobs ran.
pat
Posts: 27
Joined: Sun Jul 08, 2007 10:56 am

Post by pat »

shaunw wrote:Yes, check to make sure it is being run every minute. Also check under Help -> About to see when the last time the scheduled tasks ran, as well in your TimeTrex log directory, there should be a file called:

timetrex_cron_last_executed.log

That has the date when the last time the maintenance jobs ran.
Everything looks normal,
The log indicates that it has ran the last minute and the shedule indicates the same thing.
The schedule says:
Every 1 minutes from 11:11 PM for 1439 minutes every day, starting 07/11/2007 and ending 01/19/2011
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Try running this SQL command from your TimeTrex database and pasting the output here:
select status_id,name,command,last_run_date from cron;
pat
Posts: 27
Joined: Sun Jul 08, 2007 10:56 am

Post by pat »

shaunw wrote:Try running this SQL command from your TimeTrex database and pasting the output here:
select status_id,name,command,last_run_date from cron;
AddPayPeriod php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-16 00:00:00
AddUserDate php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-16 00:15:00
calcExceptions php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-16 00:30:00
AddRecurringPayStubAmendment php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-16 00:45:00
AddRecurringHoliday php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-16 00:55:00
UserCount php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-16 01:15:00
AddRecurringScheduleShift php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-16 22:50:00
CheckForUpdate php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-16 01:34:00
AddAccrualPolicyTime php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-16 01:30:00
UpdateCurrencyRates php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-16 01:45:00
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

According to that, the AddPayPeriod script was last run at 2007-08-16 00:00:00.

So something isn't adding up...
pat
Posts: 27
Joined: Sun Jul 08, 2007 10:56 am

Post by pat »

Here again from August 18 1:15 AM.

AddPayPeriod php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-18 00:01:00
AddUserDate php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-18 00:16:00
calcExceptions php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-18 00:31:00
AddRecurringPayStubAmendment php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-18 00:46:00
AddRecurringHoliday php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-18 00:56:00
UserCount php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-17 01:16:00
AddRecurringScheduleShift php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-18 00:51:00
CheckForUpdate php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-17 01:34:00
AddAccrualPolicyTime php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-17 01:30:00
UpdateCurrencyRates php-win.exe C:\xampp\htdocs\TimeTrex\classes\modul... 2007-08-17 01:45:00
Locked