-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Conversation
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> |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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').
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it works, thanks.
please squash your commits to one about the country, one about the rounding |
Apply rounding fix as suggested by astirpe
There need to be 3 commits as they fix 3 different things: syntax error in xsd, JE country and rounding error. |
ah right, the -+ line fooled me. Will merge after green runbot |
Some leftover + from git merging was in the file which resulted in
validation errors.