Electronic Invoicing for Italian companies

Since 1st January 2019, the Italian government requires a specific standard for all the companies that sell goods online. All of them are required to issue an electronic invoice for each order and to provide the Italian Agenzia delle Entrate with all invoices in a specific format.

This plugin includes a section that has been specifically developed to give Italian companies an easy tool to generate this required file, together with the PDF file.

If your company is based in Italy and if you sell online, you will be required an .xml file for every order placed in your online shop.

This plugin will help you do that the right way and without much trouble.

Go to the plugin settings at YITH > PDF Invoice > Settings > Generating Documents and enable the option called Abilita la fatturazione elettronica (clienti italiani)

generazione documenti

Then, save the changes. After that, you’ll see a new tab next to the others in the plugin settings called Fatturazione elettronica. Here you can enter your company details, so as they will appear in the .xml file.

Impostazioni generali

The first section is about the file name format, which is made out of 5 characters, two letter and three numbers.

Impostazioni-generali

Soggetto o azienda trasmittente

Next you find a section where you can enter all your details.

Soggetto-o-azienda-trasmittente

  • Codice fiscale azienda
  • Partita IVA azienda
  • Regime Fiscale
  • Esigibilità IVA
  • Nome registrato azienda
  • Indirizzo
  • CAP
  • Città dell’azienda
  • Provincia azienda

Impostazioni Checkout

In the last section, you can configure checkout options:

Impostazioni-checkout

  • Etichetta Codice Destinatario
  • Etichetta PEC Destinatario
  • Messaggio Codice Destinatario/PEC obbligatori: here you can enter a custom message to show whenever the receiver ID or the PEC email address is required.
  • Messaggio Partita IVA obbligatoria: here you can enter a custom message to show whenever the VAT number is required.
  • Messaggio Codice Fiscale obbligatorio: here you can enter a custom message to show whenever the Fiscal Code (SSN) is required.

Checkout page on customer side

Whenever your customers are on the checkout page, they will be asked to fill their details.

The plugin updates the checkout fields dynamically based on what the customer selects in the field Company Name: this way, whether the customer is a private entity or a company, they will be asked to fill only the right information. Following you can see how it’s updated:

  1. Italian company:

    • Company VAT number is required
    • One between Codice destinatario and PEC email address is required
      Italian companies
  2. Company from other countries:

    • Company VAT number is required (the extra fields will not show up)
  3. Italian private subject:

    • Codice fiscale is required (the extra fields will not show up)
  4. Private customer from other countries:

    • SSN number is optional

Download the .xml file

Now, if you have configured all the other settings for the generation of automatic invoices, whenever a new invoice is generated also the .xml file will be generated. You can see it on the right side, in the box Invoice status.

Click on XML button to download the file.

Generate .xml file

Please, note: if you can’t see the .xml button in the order details, make sure the option for the preview (YITH > PDF Invoice > Preview Mode) is disabled, because the .xml file cannot be generated out of a preview.