Pay Stub Wage Decimals

Topics brought up by the TimeTrex open source community.
Locked
rons
Posts: 52
Joined: Fri Jul 06, 2007 11:24 am

Pay Stub Wage Decimals

Post by rons »

How do I set the pay stub data to display all wage info with 2 decimal places?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

This depends on the locale settings you are using.

Which country and language are the employees using?

Which operating system are you using?
rons
Posts: 52
Joined: Fri Jul 06, 2007 11:24 am

Post by rons »

We are US and English. It is running on Ubuntu linux server.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Locales on Ubuntu can be a little tricky, make sure you have all the locales installed. The package name that you can use to install might be:

locales-all
rons
Posts: 52
Joined: Fri Jul 06, 2007 11:24 am

Post by rons »

There is no locales-all package on Ubuntu. I added the language-pack-en and updated the locales-en-US and locales-en-US.UTF-8 but I still am not seeing 2 decimal places in the Timetrex pay stub forms.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Unfortunately Ubuntu seems to have a severely broken locale system.

Try following the instructions in this post to get debug output for us to go on:
http://forums.timetrex.com/viewtopic.php?p=1682#1682
rons
Posts: 52
Joined: Fri Jul 06, 2007 11:24 am

Post by rons »

Would it be possible to have future program updates handle this within the program and not rely on the quirky locales functions in various operating systems?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Unfortunately because there are so many different locales (easily a few hundred) TimeTrex has to rely on the operating system to determine the different information that it needs, rather then including and maintaining that information ourselves.

We are working on adding better support for the different operating systems, it does take time and a lot of testing to get right though.
Locked