Topic: Fractional line item unit prices
Hi,
I regularly order large numbers of parts, the unit price of which include fractional pennies.
I know FA can have any level of precision for currency, but any more than two does not make sense as I can't actually receive or pay in frational pennies.
The problem comes with order lines, e.g.
I order 200 widgets at 12.33 pence each
Currently this would result in a purchase order line total of £24.00
But the supplier is expecting to get paid £24.66 for this invoice line, this shortfall ripples though the system.
I have made some small changes that introduces a new control, prefixed unit_price_. This means that we can have a new preference unit_price_fraction (I have fixed this value in my code to because I have not worked out how to modify the preferences module)
Could this modification (done properly) get into the main code? Do others have this problem?
I can send a patch file if anybody wants to try it out.
Cheers,
Jason.