Negative Multiplication

Problem

In Goldenseal accounting software versions 4.7 and earlier, there was a bug that could occur when multiplying negative money values between -$4 and -$45, producing an incorrect value.

NOTE-- It took more than ten years to catch this one! There are very few situations where there is multiplication of negative numbers in this range, but one user discovered it via an incorrectly calculated sales tax amount in a returned purchase.

Caught By

User bug report.

Workaround

For any sales tax amount that is incorrect, you can double-click to select the tax amount, and then type in the correct amount. This happens most frequently when you receive an invoice from a vendor who rounds "up" and charges an extra penny of sales tax, but it also fixes this problem.

Solution

In Goldenseal construction accounting software version 4.8, all money values now calculate correctly.

Technical Details

Programmer note-- code changed in CMoney::Multiply