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

Example for code #38

Open
maxdeorf opened this issue Oct 1, 2024 · 3 comments
Open

Example for code #38

maxdeorf opened this issue Oct 1, 2024 · 3 comments

Comments

@maxdeorf
Copy link

maxdeorf commented Oct 1, 2024

Hi,

Thanks a lot for creating python-drafthorse and making it available for a larger audience. It works fine for me.

However, it would be great if you could support with one of these points:

  • Could someone share the code that is required to add a VAT-ID for the seller and also the code for the buyer? I tried it but the Cuba viewer is not displaying the VAT-ID in the respective field.
  • Would it maybe possible to provide a more extensive example of the code? One that maybe shows how to add values for all the fields that are also shown in the CUBA viewer? This would help a lot people who are not yet so familiar with the library.

Thanks for the great support and I hope python-drafthors gets the attention it deserves.

@Kh3nsu
Copy link

Kh3nsu commented Oct 2, 2024

I would love that too! Still struggling with some informations that I can't get into the invoice...

@raphaelm
Copy link
Member

raphaelm commented Oct 4, 2024

We add seller VAT ID like this:

            doc.trade.agreement.seller.tax_registrations.add(
                TaxRegistration(
                    id=("VA", "DE1234567890")
                )
            )

and buyer VAT ID like this:

            doc.trade.agreement.buyer.tax_registrations.add(
                TaxRegistration(
                    id=("VA", "DE1234567890")
                )
            )

@raphaelm
Copy link
Member

raphaelm commented Oct 4, 2024

Would it maybe possible to provide a more extensive example of the code? One that maybe shows how to add values for all the fields that are also shown in the CUBA viewer? This would help a lot people who are not yet so familiar with the library.

Possibly, but I don't think I have the time to do so.

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

3 participants