+1 On Jan 7, 2008, at 6:21 PM, Jacques Le Roux wrote:
From: "Scott Gray" <[EMAIL PROTECTED]>Hi Jacopo My understanding of calc and final: calc - adjustment level rounding final - the sum of all tax adjustments (tax total) is rounded to this precisionPerhaps AcctgTransEntry.amount needs to store to a higher precision as well?Yes, I agree with Scott's suggestion JacquesRegards Scott On 08/01/2008, Jacopo Cappellato <[EMAIL PROTECTED]> wrote:While testing the GL accounting transactions I've found something thatcould be an issue in the procedure that computes the sales tax adjustment for the invoice. I've noticed that the InvoiceItem.amount for sales tax containssometimes a number with 3 decimals, even if the arithmetic.propertiesfile we have: salestax.calc.decimals = 3 salestax.final.decimals = 2 salestax.rounding = ROUND_HALF_UP You can recreate this by creating and invoicing a sales order for 3 units of GZ-1000. For example, look at this invoice: https://demo.hotwaxmedia.com/accounting/control/invoiceOverview?invoiceId=CI1Having 3 decimals is an issue for the gl auto posting service for sales invoices because the sales tax item generates an AcctgTransEntry, butthe AcctgTransEntry.amount field can only store 2 decimals. I'd appreciate suggestions/hints. Cheers, Jacopo
smime.p7s
Description: S/MIME cryptographic signature