Open Johnreidsilver opened 3 days ago
Hi @Johnreidsilver
Note that in Portugal they don't use the EN16931 format as is, but the closely related UBL 2.1 "CIUS-PT". You can check the global namespaces of your XML file to determine the format.
If your invoice is indeed in EN16931 format, it would be very useful for debugging the problem if you could share the XML file. Feel free to remove any sensitive information (especially payment means).
Hi, First and foremost thanks for the python code to import EN16931 data.
It's my first time trying it out actually first time trying to parse XML for that matter.
Looking at the XML file it has AccountingSupplierParty and AccountingCustomerParty fields I tried to edit invoice.py to go for those but no luck: invoice.seller_party = get_entity(root, kind='AccountingSupplierParty')
I also commented those parts out to see how far I could load the invoice and got to this error:
The InvoiceLine includes quantity in KWH and amount in EUR
I would fork and fix this if I knew how to, but need to start with some examples on how to do it. Thanks for you help.