Spain Veri*Factu Outbound Transactions

The European Union Electronic Invoicing SuiteApp allows the processing of outbound invoice and credit memo transactions using the Veri*Factu system for NetSuite users in Spain. By providing communication with the service provider, transactions are certified in the Veri*Factu system. Moreover, a URL to the Veri*Factu site is provided, which can also be accessed by scanning a QR code.

For more information, read the following topics:

Important:

The Spain-specific electronic invoicing features described here are mutually exclusive with the SII features provided by the Spain Localization SuiteApp. This means that if you use the Spain-specific electronic invoicing features, you can't use the SII features at the same time.

Configuring E-Document Templates for Spain

To configure the e-document templates for Spain:

  1. Go to Setup > E-Documents > E-Document Templates.

  2. On the E-Document Templates List page, select the following e-document template:

    • Avalara Veri*Factu outbound Invoice/Credit memo

  3. Click Edit.

  4. In the Subsidiary field, select a Spanish subsidiary.

  5. Click Save.

Assigning the Spain E-Document Package to a Customer

To assign the Spain E-Document Package to a customer:

  1. Go to Lists > Relationships > Customers.

  2. Select the customer that you want to edit.

  3. Click Edit.

  4. On the E-Document subtab, locate the E-Document Package field and select Verifactu E-Document Package from the list.

  5. Click Save.

Configuring the Custom Record Entries Role Permission

To use the custom records related to Spain Veri*Factu electronic invoicing, you must grant the Custom Record Entries permission to user roles that manage transactions.

To configure the Custom Record Entries role permission:

  1. As an administrator, go to Setup > Users/Roles > Manage Roles.

  2. From the list, select the preferred role and click Edit or Customize.

  3. In the Permissions tab, click on the Lists subtab.

  4. Add the Custom Record Entries permission to the list and assign at least the View level to it.

  5. Click Save.

Setting the QR Code to the Spanish Tax Authority in Custom Templates

To set the QR Code to the Spanish Tax Authority in custom templates:

  1. As an Administrator, go to Customization > Forms > Advanced PDF/HTML Templates.

  2. Select the PDF/HTML template that you want to edit.

  3. Click Customize to customize a standard template, or Edit to edit a custom template.

  4. For a standard template, click Template Setup.

  5. In the Title field, enter a template name in case it doesn't already have a custom name.

  6. Click the Source Code toggle.

  7. If a warning pop-up window appears, click Yes.

  8. Copy the following code and paste it into the template editor:

                      <#-- VERIFACTU QR Code BEGINNING -->
    <table class="QR" style="width: 100%">
     <tr>
       <td align="right">   
          <#if record.custbody_euei_es_vf_transaction_url?has_content>
            <#assign anchor = record.custbody_euei_es_vf_transaction_url>        
            <#assign urlStart = anchor?index_of('href="') + 6>       
            <#assign urlEnd = anchor?index_of('"', urlStart)>       
            <#assign url = anchor?substring(urlStart, urlEnd)> 
    
            <p align="center">        
              <barcode codetype="qrcode" showtext="true" height="100" width="100"
        value="${url}"/>         
                  <br/>          
                  VERI*FACTU        
            </p>      
          </#if>    
        </td>  
     </tr>          
    </table>
    <#-- VERIFACTU QR Code END --> 
    
                    
  9. Click Save.

For more information, see Source Code Editing in the Template Editor.

Processing Outbound Transactions for Spain

To process outbound transactions for Spain:

    • For Invoices:

      Go to Transactions > Sales > Create Invoices > List (Administrator).

      Go to Customers > Sales > Create Invoices > List (Accountant).

    • For Credit Memos:

      Go to Transactions > Customers > Issue Credit Memos > List (Administrator).

      Go to Customers > Credits and Returns > Issue Credit Memos > List (Accountant).

  1. Select a transaction and click Edit.

  2. Fill in all the required fields.

  3. On the E-Document subtab, make sure the Avalara Veri*Factu outbound Invoice/Credit Memo template is selected in the E-Document Template field.

  4. Click Save.

    Note:

    After the transaction is saved, the following fields will be automatically populated:

    • On the Veri*Factu subtab:

      • Veri*Factu Transaction URL, which includes a URL linking to the corresponding Spanish Tax Authority website. It is used to track the certified transaction, which can be scanned as a QR code in the printed version.

      • Veri*Factu Type of Issued Invoice

      • Veri*Factu Qualification Type of Taxable/Non-exempt Transaction

      • Veri*Factu Special Regime Key

      • Veri*Factu Recipient Identification Type

    Note:

    After the transaction is saved, the E-Document Status field is set to For Generation.

  5. Click Generate E-Document. The E-Document Status field is set to Ready for Certification.

  6. Click Certify E-Document.

  7. Check the E-Document Status and E-Document Audit Trail fields to see if it's successfully sent for certification.

    Note:

    After the transaction is saved, the following fields will be automatically populated:

    • On the Network References subtab:

      • OBN Document ID

      • Avalara Document ID

      • Avalara Mandate

Accessing the Declaration of the Invoicing Software System (Veri*Factu)

NetSuite provides access to the declaration of the invoicing software system (Veri*Factu) for all customers that use Spain Veri*Factu electronic invoicing features. The document is available both in English and Spanish.

To access the declaration of the invoicing software system (Veri*Factu):

  1. Go to Documents.

  2. In the File Cabinet, go to SuiteApps > com.netsuite.euelectronicinvoicing > statement > ES.

  3. Both the English and Spanish versions of the document are available for viewing or printing:

    • Verifactu_Declaration_NetSuite v2025X_EN_Final.pdf

    • Verifactu_Declaration_NetSuite v2025X_ES_Final.pdf

Sourcing Logic for Veri*Factu-Specific Fields

The Electronic Invoicing Builder Kit feature enables you to implement e-invoicing solutions for the requirements needed for mandates by Service Providers. All the main fields and their sourcing logic are listed in the Sourcing custom data for e-documents section.

The following table shows the sourcing logic for the Veri*Factu-specific fields:

Field

Mapping

Veri*Factu Type of Issued Invoice

/Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/ava:DocumentExtension/ava:InvoiceData/ava:InvoiceType

Veri*Factu Recipient Identification Type

UBL GENERIC):/Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID/@schemeID

Veri*Factu Special Regime Key

/Invoice/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID

Veri*Factu Qualification Type of Taxable/Non-exempt Transaction

/Invoice/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID

Veri*Factu Tax Exemption Reason for Taxable and Exempt Transactions

/Invoice/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:TaxExemptionReasonCode

Related Topics

General Notices