Belgium EI Extension Plug-in

The European Union Electronic Invoicing SuiteApp lets you extend the electronic invoicing functionality for Belgium by creating and implementing a custom plug-in.

For more information, see the following topics:

Extending Belgium Electronic Invoicing Functionality

If you need to extend the existing Belgium Electronic Invoicing functionality in NetSuite, create a custom plug-in implementation and leverage the localization extension service for Belgium.

Overview

The Belgium Electronic Invoicing solution includes an extension service that enables you to reuse standard localization logic and apply custom modifications to E-document content.

Using the Belgium Extension Service

To extend the standard functionality, you must import the Belgium extension service using the exact path below:

/SuiteApps/com.netsuite.euelectronicinvoicing/src/countries/BE/services/BEDocExtensionService.js

This path is fixed and can't be changed.

After importing the service, call the .extend(context) method to retrieve content processed by the SuiteApp. You can modify the content as needed and return it in the content field of the response object.

Example Implementation:

              * @NApiVersion 2.0
 * @NScriptType plugintypeimpl
 */
define([
  "/SuiteApps/com.netsuite.euelectronicinvoicing/src/countries/BE/services/BEDocExtensionService.js"
], function (BEDocExtensionService) {
  function extend(context) {
    // Import Belgium-specific functionality
    let extendedContent = BEDocExtensionService.extend(context);

    // Run your own code / functionality here
    extendedContent = /* ... */ extendedContent;

    return {
      success: true,
      // Ensure that you return the extended content
      content: extendedContent
    };
  }

  return {
    extend: extend
  };
}); 

            

Creating the Plug-in for Belgium

To create your custom plug-in implementation:

  1. Go to Customization > Plug-ins > Plug-in Implementations > New.

  2. In the Script File field, create a new plug-in implementation using your script.

  3. Click Create Plug-in Implementation to save your plug-in.

For more information, see Creating a New Plug-in Implementation.

Required Plug-in Configuration

After creating the plug-in, configure NetSuite to use it. You have the following two options:

  1. Modify the existing Belgium E-Invoice template:

    Update the Outbound extension plug-in implementation field to your custom plug-in.

  2. Create a custom E-document Package and Template:

    • Copy the relevant values from the standard Belgium template.

    • Set the Outbound extension plug-in implementation to your custom plug-in.

Important:

If you modify the standard Belgium E-Invoice template, any European Union Electronic Invoicing SuiteApp update will revert it back to the default plug-in. If you create your own E-document Package and Template, it won't be affected by the SuiteApp updates. However, it will also not automatically receive future updates to the standard template.

Related Topics

General Notices