General Structure of Spain VAT Reports

All Spain Localization reports are built using the Tax Reporting Framework SuiteApp.

The Tax Reporting Framework SuiteApp generates reports through a sequence of stages that correspond to the following stages for the Spain reports:

In the Tax Reporting Framework SuiteApp, each of the components listed above can be extended. For more information, see Building Tax Reports with Tax Reporting Framework.

The following sections explain how each of the Spain reports implements these stages, and which components are available for extension.

Note:

All the relative paths to these components should be prefixed with SuiteApps/com.netsuite.spainlocalization/src/. For example, if you want to extend the component builders/modelos/Modelo303SummaryBuilder, you should reference it as SuiteApps/com.netsuite.spainlocalization/src/builders/modelos/Modelo303SummaryBuilder.

When extending an existing component, log the parameters that you get as input to the Script Execution Log. By inspecting the log, you will be able to understand the object structure and apply your changes. See an example of logging below.

          /**
 * @NApiVersion 2.1
 * @NScriptType plugintypeimpl
 */
  
define(['N/log'], function (logger) {
    return {
        // Builder stage
        customizeBuilders: () => ([
          {
            script: 'SuiteApps/com.netsuite.spainlocalization/src/builders/modelos/Modelo303SummaryBuilder',
            implementation: (query) => {
                logger.debug('Query', query);
                return query;
            }
          }
        ]),
        // Preprocessor stage
        customizePreProcessors: () => ([]),
        // Postprocessor stage
        customizePostProcessors: () => ([]),
        // Export processor stage
        customizeExportProcessors: () => ([])
    };
}); 

        

General Notices