Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aep.py float_is_zero rounding #30

Closed
Martronic-SA opened this issue Oct 12, 2017 · 1 comment · Fixed by #32
Closed

aep.py float_is_zero rounding #30

Martronic-SA opened this issue Oct 12, 2017 · 1 comment · Fixed by #32

Comments

@Martronic-SA
Copy link
Contributor

Are you sure the following:

float_is_zero(debit-credit,
precision_rounding=self.dp)

is right?
Correct me if I'm wrong but it seems that self.dp which is currency decimal_places is the number of decimals to take, this is an integer like 2 decimals (1.01) and you are passing this in the precision_rounding parameter of float_is_zero.
Shouldn't you use the precision_digits parameters instead?

float_is_zero(debit-credit,
precision_digits=self.dp)
@sbidoul
Copy link
Member

sbidoul commented Oct 12, 2017

Indeed. Well spotted.

@sbidoul sbidoul added this to the 3.0 milestone Oct 12, 2017
sbidoul added a commit to acsone/mis-builder that referenced this issue Oct 12, 2017
sbidoul added a commit to acsone/mis-builder that referenced this issue Oct 12, 2017
@sbidoul sbidoul removed this from the Version 3.0 milestone Oct 13, 2017
sbidoul added a commit to acsone/mis-builder that referenced this issue Oct 13, 2017
sbidoul added a commit to acsone/mis-builder that referenced this issue Oct 13, 2017
JordiBForgeFlow pushed a commit to ForgeFlow/mis-builder that referenced this issue Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants