Decimal Precision

Some of my suppliers list prices out to 5 decimal places and rounding
these causes errors in line item totals. Also when using landed costs
if they cannot be allocated with enough precision to the applied items
then rounding leads to errors in the Total Tax. This leads to
purchase receipt totals that don’t match payment amounts which have
been rounded later.

I notice that in the database the standard data type for decimal
quantities is DECIMAL(14,2). There is also processing going on in
some of the js functions based on fieldtype?

Obviously this can be somewhat complicated as one probably doesn’t
want 5 digit decimal precision everywhere, but it would be nice to be
able to change the fieldtypes of the form data to adjust precision and
thus control where rounding takes place.

For example the item Rates could be specified at 5 digit precision but
the line item Amounts could be kept at two digit.

Thanks.


You received this message because you are subscribed to the Google Groups “ERPNext Technical Forum” group.
To post to this group, send email to wn...@googlegroups.com.
To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.

Hi,

In our new release (branch: shf_rename - not stable) --- all decimals are 18,6

thanks,
Rushabh


-----------------------------------------------------
ERPNext - Business Operating System

W: https://erpnext.com
T: @rushabh_mehta

On 15-Apr-2012, at 12:36 PM, az1324 wrote:

Some of my suppliers list prices out to 5 decimal places and rounding
these causes errors in line item totals.  Also when using landed costs
if they cannot be allocated with enough precision to the applied items
then rounding leads to errors in the Total Tax.  This leads to
purchase receipt totals that don't match payment amounts which have
been rounded later.

I notice that in the database the standard data type for decimal
quantities is DECIMAL(14,2).  There is also processing going on in
some of the js functions based on fieldtype?

Obviously this can be somewhat complicated as one probably doesn't
want 5 digit decimal precision everywhere, but it would be nice to be
able to change the fieldtypes of the form data to adjust precision and
thus control where rounding takes place.

For example the item Rates could be specified at 5 digit precision but
the line item Amounts could be kept at two digit.

Thanks.

--
You received this message because you are subscribed to the Google Groups "ERPNext Technical Forum" group.
To post to this group, send email to wn...@googlegroups.com.
To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.




You received this message because you are subscribed to the Google Groups “ERPNext Technical Forum” group.

To post to this group, send email to wn...@googlegroups.com.

To unsubscribe from this group, send email to wnframework+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wnframework?hl=en.