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

XmlAuditfileFinancieel syntax fix #146

Merged
merged 3 commits into from
Feb 1, 2018
Merged

XmlAuditfileFinancieel syntax fix #146

merged 3 commits into from
Feb 1, 2018

Conversation

CGenie
Copy link

@CGenie CGenie commented Jan 31, 2018

Some leftover + from git merging was in the file which resulted in
validation errors.

Some leftover + from git merging was in the file which resulted in
validation errors.
@@ -148,7 +148,7 @@
<docRef><t t-esc="l.ref" t-esc-options='{"widget": "auditfile.string999"}' /></docRef>
<effDate><t t-esc="l.date" /></effDate>
<desc><t t-esc="l.name" /></desc>
<amnt><t t-esc="l.credit or l.debit" /></amnt>
<amnt><t t-esc="round(l.credit or l.debit, 2)" /></amnt>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you don't need to round here. The risk is that the rounding will generate an amount different than l.balance. See #130 (comment)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well we had this error:

:507419:0:ERROR:SCHEMASV:SCHEMAV_CVC_FRACTIONDIGITS_VALID: Element '{http://www.auditfiles.nl/XAF/3.2}amnt': [facet 'fractionDigits'] The value '0.00999999999999' has more fractional digits than are allowed ('2').

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't abs(l.balance) fixing that issue as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it works, thanks.

@hbrunn hbrunn added the approved label Feb 1, 2018
@hbrunn hbrunn added this to the 9.0 milestone Feb 1, 2018
@hbrunn
Copy link
Member

hbrunn commented Feb 1, 2018

please squash your commits to one about the country, one about the rounding

Apply rounding fix as suggested by astirpe
@CGenie
Copy link
Author

CGenie commented Feb 1, 2018

There need to be 3 commits as they fix 3 different things: syntax error in xsd, JE country and rounding error.

@hbrunn
Copy link
Member

hbrunn commented Feb 1, 2018

ah right, the -+ line fooled me. Will merge after green runbot

@hbrunn hbrunn merged commit ca06a9d into OCA:9.0 Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants