-
-
Notifications
You must be signed in to change notification settings - Fork 111
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] intrastat refunds. #251
[16.0][FIX] intrastat refunds. #251
Conversation
Hi @alexis-via, @luc-demeyer, |
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.
Code review
Modify transaction ID for the following cases: * Dispatches: * out_invoice B2B: 11 * out_invoice B2C: 12 * in_refund: 21 * Arrivals: * out_refund: 21 * in_invoice: 11 Don't propagate intrastat transaction to refund. Add some tests. Remove unused files.
6bbf071
to
5cd4971
Compare
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.
LGTM
This PR has the |
Hi, could you please review this @pedrobaeza @victoralmau ? And its related PR OCA/l10n-spain#3322 |
res = super()._prepare_default_reversal(move) | ||
res.update( | ||
{ | ||
"intrastat_transport_id": False, |
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.
Explain why these changes, and also add docstring putting this reason/explanation for documenting the code.
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.
The change is based on -> https://sede.agenciatributaria.gob.es/Sede/aduanas/intrastat-obligaciones-estadisticas/noticias-interes/nuevos-codigos-naturaleza-transaccion-intrastat.html
On the other hand, I don't understand why code 12 doesn't match with this other documentation... -> https://www.intrastat.com/aeat/normativa/intrastat/tabla-naturaleza-de-la-transaccion-para-intrastat.php
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.
Please document this in code.
Hi @pedrobaeza could you review please the comments from @SoniaViciana ? |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Modify transaction ID for the following cases:
Add some tests.
Remove unused files.
Related PR in l10n-spain: OCA/l10n-spain#3322