-
-
Notifications
You must be signed in to change notification settings - Fork 705
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
[13.0][OU-IMP] l10n_be: migration script (account.account.tag) #3675
Conversation
239e524
to
e3355eb
Compare
@sbidoul this PR might interest you when migrating Belgian accounting. :) |
@marielejeune Can you give a look at this migration script? Thanks. :) |
Hi @remytms, I've seen your PR a few days ago, but I'm really not an accounting specialist and I don't think I've the competencies to functionally give any comment :/ |
Thanks @marielejeune , if you know a Belgian accounting person do not hesitate to ping him/her. |
@luc-demeyer You may be interested by this pull request. :) |
Hi @remytms There is several account.tax found for the account.tax.template ID 141 '21% EU S.' that are used on account.move.line. Clean up account.tax by renaming your specific account.tax and migrate it via a dedicated script. The matching account.tax ID 133, 551 Indeed, both taxes with ID 133 and 551 have the same name, look the same, but one of them is linked to Company 1 (Belgian company) and the second one is linked to Company 2 (also Belgian company). Is it a problem to have 2 taxes coming from the same tax template? If yes, what should have been done when initializing invoicing for these 2 companies? Duplicate the tax templates? |
Indeed as @marielejeune said I think this does not work if you have multiple companies in Belgium, as the taxes will be duplicated - but not the tax templates, as they are created through XML. You should loop on the companies, change the signature of |
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've tried to run your script on a DB with 2 Belgian companies, hence I've adapted it to loop on companies as @fd-oncodna suggested. Here are my comments, please have a look and tell me if it seems good to you:
13496b1
to
d33ecea
Compare
@marielejeune @fd-oncodna Thanks a lot for your remark and suggestion about multi-company. Changes added. |
d33ecea
to
2ef2435
Compare
I close this PR in favor of this one: #4432 |
Migrate account.account.tag to fit the new account.tax and its repartition lines.