Topic Options
#35713 - 02/22/13 09:42 AM Invoices - Rounding
Tony Martin Offline
Adagio Scholar

Registered: 07/17/00
Posts: 96
Loc: Chatham, Ontario, Canada
Client is invoicing for time, this results in line item amounts that are more than 2 decimals. These are rounded and displayed correctly by Invoices.

Problem is, the subtotal code is adding the unrounded amounts and then rounding, the invoice total code is adding the rounded line amounts.

The law of averages says these two results should be close...but certain hourly rates result in a considerable difference between the totals.

As I'm importing the invoice lines, I've thought about pre-rounding the amounts and using the 'weight' field to calculate the subtotal.

Anyone else experience this? am I missing something (other than my mind)? anyone have a simpler workaround?

Ta everso,
_________________________
Tony Martin
Code 6 Programming
519.359.0918

Top
#35722 - 02/22/13 03:19 PM Re: Invoices - Rounding [Re: Tony Martin]
Ralph Allan Offline
Adagio Virtuoso

Registered: 06/02/04
Posts: 694
Loc: Prince George BC
Tony: I have encountered a similar rounding issue in using the Invoices database to create a Crystal report; in my case, it was in calculating the taxes.

As best I can tell, it appears Invoices calculates each line item and displays the calculation result(s) rounded to 2 decimals. However it retains the amounts to four decimals and uses those in calculating the total(s).

I think your idea of "pre-rounding" before the amounts get into Invoices may be a good way to go.
_________________________
Ralph Allan
Business Computer Centre
Prince George BC Canada

Top


Moderator:  Christa_Meissner 
Who's Online
1 registered (1 invisible), 72 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1865 Members
5 Forums
14469 Topics
70667 Posts

Max Online: 432 @ 01/20/25 10:17 PM
April
Su M Tu W Th F Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30