-
-
Notifications
You must be signed in to change notification settings - Fork 534
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
[16.0][FIX] l10n_es_aeat_mod303: Avoid negatives in fee to compensate #4048
[16.0][FIX] l10n_es_aeat_mod303: Avoid negatives in fee to compensate #4048
Conversation
Hay que corregir los tests del 303 y del 390 |
Sí, tengo que ver qué están haciendo esos tests y por qué fallan. Creo que es porque simplemente comprueba los valores que tocaban antes según la expresión aritmética, pero tal vez hay un caso legítimo que me estoy dejando. |
5d3c7a7
to
8af639e
Compare
If the previous 303 report has remaining fee to compensate, and the result of the report is positive and bigger than the fee to compensate, when computing the current one, the constraint "The fee to compensate must be indicated as a positive number." will raise always. To avoid it, two changes have been done: 1. Only substract report result if it's of type C. 2. Nullify any possible result when it's less than 0. Amendment of 4bd1c02 TT55245
8af639e
to
d150e2d
Compare
/ocabot merge patch |
On my way to merge this fine PR! |
@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-4048-by-pedrobaeza-bump-patch. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
/ocabot merge patch |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 8f1e36c. Thanks a lot for contributing to OCA. ❤️ |
If the previous 303 report has remaining fee to compensate, and the result of the report is positive and bigger than the fee to compensate, when computing the current one, the constraint
"The fee to compensate must be indicated as a positive number."
will raise always.
To avoid it, two changes have been done:
Amendment of 4bd1c02
@Tecnativa TT55245