audi30tdi 0 Posted Sunday at 07:59 PM (edited) Hello! Try again, didn't get any good answer the last time.......... Has someone got a code which is working to send EHF invoice in Norway, and would share some code and info?? Edited Sunday at 08:02 PM by audi30tdi Share this post Link to post
Skrim 13 Posted yesterday at 03:19 AM What do you mean by "Send"? 1) Producing the XML file and then send or 2) Just distribute an XML file to the Access point? Share this post Link to post
Lars Fosdal 1853 Posted yesterday at 08:09 AM @audi30tdi We do all our EHF invoices through third party systems, so I have no Delphi code to offer. Are you looking for the specification of the EHF invoice document or code for sending the document to an http endpoint? Share this post Link to post
Rollo62 577 Posted yesterday at 11:50 AM Perhaps this German project is interesting for you, which is based on the same basics EN 16931 and could be used maybe with small changes. https://github.com/LandrixSoftware/XRechnung-for-Delphi Share this post Link to post
audi30tdi 0 Posted 23 hours ago @Skrim, @Lars Fosdal Looking for code to produce xml file and then send Will look at the link @Rollo62 sent me, to see if there is what I need Share this post Link to post
Attila Kovacs 659 Posted 22 hours ago You need PEPPOL BIS UBL (XRechnung UBL from the lib above) with Norwegian customization, see: https://github.com/OxalisCommunity/oxalis/tree/master/oxalis-outbound/src/test/resources/EHFInvoice/2.0 and a validator like: https://anskaffelser.dev/service/validator/ (Interesting that there is a B2C implementation in NO, whereas in the EU it's only for B2B, as you can't pass the gross prices, only the net.) 1 Share this post Link to post
Skrim 13 Posted 15 hours ago You should not/cannot send an Ehf invoice directly to the customer, it must be directed via an approved accesspoint. So the first thing I would do is to choose this. Also, read the documentation for the ehf invoice standard carefully. Take care to get the latest version EHF 3, there is old no longer valid information out there. An Ehf invoice might be technically valid, but you need to validate the contence as well. A tiny litle "glitch" and the invoice will not be forwarded and some accesspoints will charge you for the missing/not valid contence. So there is a lot of work to be done Share this post Link to post
Cristian Peța 116 Posted 12 hours ago 9 hours ago, Attila Kovacs said: (Interesting that there is a B2C implementation in NO, whereas in the EU it's only for B2B, as you can't pass the gross prices, only the net.) In Romania B2C is mandatory. It's working already. Share this post Link to post
Attila Kovacs 659 Posted 12 hours ago 1 minute ago, Cristian Peța said: In Romania B2C is mandatory. It's working already. Okay, which format do you use there? Share this post Link to post
Cristian Peța 116 Posted 12 hours ago 3 minutes ago, Attila Kovacs said: Okay, which format do you use there? This is from an invoice B2C: <Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"> <cbc:UBLVersionID>2.1</cbc:UBLVersionID> <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:efactura.mfinante.ro:CIUS-RO:1.0.1</cbc:CustomizationID> Share this post Link to post
Attila Kovacs 659 Posted 12 hours ago 3 minutes ago, Cristian Peța said: This is from an invoice B2C: I see, looks like I was wrong about 'in the EU', it's actually just in Germany. Here, you can only provide net price plus VAT per line item, which is pretty much only practical for B2B. Share this post Link to post
Cristian Peța 116 Posted 12 hours ago Just now, Rollo62 said: Germany has B2B only too. It was a fast forward for us. There was many disruptions. For some electricity companies it was impossible to use it at beginning because it was incompatible with what our energy regulatory authority asked. 1 Share this post Link to post
Rollo62 577 Posted 11 hours ago Yes, the whole regulation is a maximal stupid and over-complicated implementation, different in every EU country. Thousands of EU officials had a very hard time over many years, to make it as incompatible as possible to the real world, better fitting to their own parallel world. I assume that in practice still many EU companies will print it out on paper and re-scan it to PDF and staple the paper sheet into the folder Share this post Link to post