On Nov 21, 2006, at 8:09 PM, Si Chen wrote:
Hi all-
I noticed that while Product.price is currency-precise, certain
fields which are related to it are only currency-amount, causing
loss of precision when original prices have 3 or 4 decimal places
of precision. Specifically, I think the following should all be
changed to currency-precise:
SupplierProduct.lastPrice
OrderItem.unitPrice, unitListPrice, unitAverageCost,
unitRecurringPrice
InvoiceItem.amount
Is there any reason why these shouldn't be currency-precise?
Most of these look fine, but I'm not sure about OrderItem.unitPrice,
and I'm pretty uncomfortable with InvoiceItem.amount.
OrderItem.unitPrice may be arguable because some calculation may be
done based on that, but the InvoiceItem.amount should be something
that never results in any surprises...
-David