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

Fetching tax code via Item tax template #15

Open
mayanknahata007 opened this issue Feb 7, 2022 · 4 comments
Open

Fetching tax code via Item tax template #15

mayanknahata007 opened this issue Feb 7, 2022 · 4 comments

Comments

@mayanknahata007
Copy link
Collaborator

Currently, the tax code of the invoice is fetched from sales/purchase tax.

In cases where there are tax codes are different per item, can this be added on priority based fetching? Eg. As it is required in the case of transportation.

For example, if the system is unable to find any item tax attached to the item, it takes the default tax code from the sales/purchase template (currently implemented)

@wojosc
Copy link
Contributor

wojosc commented Feb 7, 2022

We are working on something similar on a different project. We are looking to move the tax code to item level. This can be done pretty easily by creating Accounting Dimensions. The actual values could be set on pre defined Item Tax Templates. Does this sound right to you?

@wojosc
Copy link
Contributor

wojosc commented Feb 7, 2022

@wojosc
Copy link
Contributor

wojosc commented Mar 2, 2022

We have added custom field "Tax code" to Sales Invoice Item and Item Tax Template. At a further point in time we will add a fetch from.

The TaxCode in the XML works but is fetching the worng value. We will need to make some changes here
https://github.com/phamos-eu/Swiss-Accounting-Integration/blob/main/swiss_accounting_integration/utils.py

Also we need to clarify the exact line where the TaxCode should be set in the *.xml

@wojosc
Copy link
Contributor

wojosc commented Mar 3, 2022

@mayanknahata007
Please check our the latest export! on the staging system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants