Workflow => Factur-X / ZUGFeRD

  • 54 Views
  • Last Post 11 hours ago
TobiasD posted this 3 weeks ago

Hello everyone,

Have any of you already implemented a workflow to receive an e-invoice (Factur-X / ZUGFeRD) at the end?

The way I imagine the workflow would look like this:

Input (PDF) => Smart Form (recognize and extract/provide variables) => Data Output (store static XML template, with reference to the variables) => OUTPUT (e.g. ZUGFeRD - with specification of the generated XML file) => Script (delete the temporary XML file)

Since I'm not very familiar with XML, I'm wondering how I can write the article items, which are always different in every invoice, into this static XML template.
In the XML template, the item ITEM/article items should be dynamic and expand itself if necessary.


Does anyone have an idea or has this already been implemented?

Many thanks in advance.

Translated with DeepL.com (free version)

Order By: Standard | Newest | Votes
luca.scarpati posted this 3 weeks ago

Hi Tobias,

 

in the manual side you can see more info too about https://help.scanshare.com/home/output-formats/outputprofile-pdf/

About how the options works in our process: In general the user just need to provide the Invoice XML since ZUGFeRD is a PDF/A document with embedded the electronic invoice XML file (in the German / France format). So that path points to a valid government XML electronic invoice which needs to be embedded into the PDF before it gets certified as ZUGFeRD. Normally you may find those XML exported by ERP systems or delivered by electronic mailing.

To check the PDF you can use Adobe Acrobat with the Preflight tool and use the ZUGFeRD validation profile (recent Acrobat versions) or use one of the German tool provided for that such as this one: https://www.zugferd-community.net/en/open_community/validation.

About the modification dynamic of the XML since Scanshare is flexible as always cool, if you wish to create that XML you may create any workflow extracting the data in the best way (Smart Form, Smart OCR, Zone OCR, Barcode or any other way) for the target document(s) and outputting to a XML file, which is then used in the PDF output profile, however it is up to you to make sure the XML respects the e-invoice specification to produce a valid ZUGFeRD PDF.

So for modify the XML you can use a simple script that read the standard XML as template, modify it with your %VARIABLE% and after that save the modified XML inside the Invoice XML path setted into output profile setting. However it is one of the way but another one can be a sample data export that create a valid XML and modify the data specified with your %VARIABLE% too. 

I hope is clear but for specific case like your, we suggest always contact your Dealer/NOC first and in case of they contact the Scanshare support too for some quick tips innocent

 

Best regards,

Luca

TobiasD posted this 2 weeks ago

Hello Luca,                                                                                                                                                                                                thanks for the information.                                                                                                                                                                          In my cases, the customer only gets a PDF as an invoice from his ERP and no XML. Even if he could get an XML, it wouldn't be FacturX or ZUGFeRD comform. Otherwise the customer wouldn't need us, in this case... So I now have the challenge of creating a corresponding e-invoice from a PDF. Therefore, I read the values with Smart Form, from which I then extract the variables in an XML template. Only for the article positions, I don't have a solution yet, because it is always different and I can't get it into my XML template. My consideration would now be to interpose a script before the data output, which outputs all positions into a variable, which in turn is linked to the XML. Say something like you described, with "Data Export and the XML Revoice path. Hence the question of whether anyone has already implemented this.

In addition, I have to integrate the recipient of the invoice into the workflow, possibly with a connected database? In other words, if %XYZ% = customer number = > %customer invoice email address%. If I don't do this, the customer will only have one calculation in the end, which he has to attach manually to his email. With a large number of invoices per month, the effort would be quite high. Is there any other proposed solution to this?  

 

luca.scarpati posted this 5 days ago

Hi Tobias,

 

yes that's possible and standard workflow, you can get with a DB lookup server side via script or trigger, so you need a query on DB with varbiale inside and after return a value into another extra variable that you can use into Email connector.

 

Best regards,

Luca

TobiasD posted this yesterday

Ok thanks,

I had already opened a ticket a few days ago with the question "when will the new ZUGFeRD and Factur-X versions be implemented"?

Ok, I had already opened a ticket a few days ago with the question "when will the new ZUGFeRD and Factur-X versions be implemented"? Unfortunately, I have not yet received an answer. Maybe you can answer this question for me here?

 

 

luca.scarpati posted this 11 hours ago

Hi Tobias,

I suggest you keep an eye on your ticket, there will definitely be a reply for the support.

Just for info the current versions are ZUGFeRD 2.0 and Facture-X 1.0.

Have a nice day!

 

Best regards,

Luca

Close