Jump to content

Hours column being rounded up


cybersalt

Recommended Posts

When I add a billable item that is hours worked, the amount of hours is being rounded up in the hours column.

 

For instance, if I enter ".25" in the hours/quantity field, once saving the entry the "hours" column shows ".3", while the amount column still shows the right calculation for ".25" times whatever the hourly rate I have entered for the "quantity".

 

I cannot find where to change the setting that is rounding up that column.

 

Thanks.

 

Tim

Link to comment
Share on other sites

Hi Tim,

 

I cannot find where to change the setting that is rounding up that column.

I suspect the only place you can fix this is by directly editing the 'tblbillableitems' database table - the 'hours' field is set to 1 decimal place and that's why you're seeing 0.25 being stored in the database as 0.3; as you suggest, the total amount calculation must be based on the number entered, not the one stored in the table.

 

0yb7UVb.png

 

if you were to edit the table (e.g using phpmyadmin) and set the value to 2 decimal places; then edit the billable item in the admin area and change 0.3 to 0.25, it would then be stored in the table as 0.25 :idea:

 

as with all database changes like this, backup the database first before making any changes.

Edited by brian!
fixing quote
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated