pretix / python-drafthorse

Pure-python ZUGFeRD implementation
Apache License 2.0
81 stars 21 forks source link

Example for code #38

Open maxdeorf opened 1 month ago

maxdeorf commented 1 month ago

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:

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

Kh3nsu commented 1 month ago

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

raphaelm commented 1 month ago

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 commented 1 month ago

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.