Previous Thread
Next Thread
Print Thread
#35713 02/22/13 03:42 PM
Joined: Jul 2000
Posts: 96
Adagio Scholar
Adagio Scholar
Joined: Jul 2000
Posts: 96
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
Joined: Jun 2004
Posts: 694
Adagio Virtuoso
Adagio Virtuoso
Joined: Jun 2004
Posts: 694
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

Moderated by  Softrak Support 

Link Copied to Clipboard
Who's Online Now
0 members (), 70 guests, and 2 robots.
Key: Admin, Global Mod, Mod
Forum Statistics
Forums5
Topics14,679
Posts71,625
Members1,874
Most Online1,408
Dec 9th, 2025
November
S M T W T F S
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
Powered by UBB.threads™ PHP Forum Software 8.0.0