Setup for Electronic Invoicing Cancellation for Mexico
Before you start canceling electronic invoices in NetSuite for Mexico, you must set up the generation and certification of your e-documents. This section includes the following topics:
Configuring Plug-ins
Before creating sending methods, you need to configure the necessary plug-ins.
To configure plug-ins:
-
Go to Customization > Plug-ins > Plug-in Implementations.
-
Click New.
-
Select the script file mcf_pl_cert_monitor.js.
-
In the Type field, select Certification Monitoring Plug-in Type.
-
In the Name field, enter Mexico Monitoring Plugin.
-
In the Status field, select Released.
-
Click Save.
Creating Cancellation E-Document Sending Methods for Mexico
To certify the cancellation of electronic invoices with the Mexican tax authorities, create an e-document sending method record for Mexico.
To create a cancellation e-document sending method:
-
Go to Setup > E-Documents > E-Document Sending Methods > New.
-
In the Name field, enter the corresponding PAC as the name for the e-document sending method.
-
Solución Factible Cancellation Sending Method
-
MySuite Cancellation Sending Method
-
-
In the E-Document Package field, select the corresponding package for each PAC.
-
Solución Factible E-document Package
-
MySuite E-document Package
-
-
In the E-Document Sending Method Plug-in Implementation field, select MX PI PAC Certify.
-
In the Subsidiary field, select the corresponding subsidiary.
-
In the Sending Channel field, enter SOAP.
-
In the Transaction Type field, select the following transaction types:
-
CFDI Invoice Cancellation
-
-
Check the Sending Method for Certification box.
-
Click Save.
For more information about sending methods, see Creating E-Document Sending Methods.
Configuring accounts in the PAC Configuration
To follow with the configuration needed for the certification of invoice cancellation for Mexico, the default accounts that apply for cancellation must be setup.
To set up cancellation accounts:
-
Go to Setup > Accounting > Accounting Preferences.
-
In the Items/Transactions tab, select the corresponding accounts for the following fields:
-
In the Default Income Account field, select Sales.
-
In the Default Asset Account field, select Inventory.
-
-
Click Save.
To configure accounts in the PAC Configuration:
-
Go to Setup > Mexico Localization > PAC Configuration
-
Select the corresponding e-document package and click Edit.
-
In the Invoice tab, go to the Cancellation Accounts Setup subtab.
-
Select the Returned Sales and Returned Inventory accounts.
-
Click Save.
Adding the Plug-in Implementation
To set up your tax authority, you must first ensure the plug-in implementation is set up in the Tax Authority Certification Service record.
To add the plug-in implementation:
-
Go to Setup > E-Document Certification > Tax Authority Certification Service > Search.
-
Click List in the upper right corner.
-
Click Edit next to the tax authority you want to update.
-
In the Certification Monitoring Plug-in Implementation field, select Mexico Monitoring Plugin.
-
Click Save.
Complete this task for both MySuite Tax Authority and Solución Factible Tax Authority.
Configuring Cancellation XML Templates
To configure the cancellation XML templates, please follow the steps described in the Solución Factible and MySuite outbound invoice cancellation template update for Mexico Certification Tax Authorities article in SuiteAnswers.
Creating an API Secret for E-document Certification
To improve the security of the credentials you store in NetSuite, you should encrypt the Username and Access Pass custom fields.
To enable the encryption, create an API secret and enter its ID on the e-document certification settings record associated with the SAT certification service. Ensure that the API secret password has 16, 24, or 32 bytes. If the API secret ID is missing or invalid, certification requests may fail due to encryption or authentication errors.
For more information, see Creating Secrets and Defining E-Document Certification Settings.
Adding Mexico Certification Custom Fields
The Mexico Tax Authority (SAT) provides you with authentication credentials when you register your company to certify e-documents with the city. The tax authority uses this information to authenticate your request for certification.
To include the credentials on the certification requests you send to Mexico, create certification custom fields on the city's e-document certification settings record.
You should do this for all subsidiaries that send e-documents for certification to Mexico, both in test and production environments.
Use the exact custom field keys Username and Access Pass for the certification custom fields.
Do not use legacy values such as PAC_USER or PAC_PASS. These values are no longer supported for Mexico certification and may result in authentication failures.
If you have legacy values for your custom field keys, it is recommended you delete those credentials and recreate the custom fields with the correct custom field keys.
To add Mexico certification custom fields:
-
Go to Setup > E-Document Certification > Tax Authority Certification Service > Search.
-
Click List in the upper right corner.
-
Find the corresponding tax authority certification service record and click View.
-
Click the Certification Settings subtab.
-
Find the e-document certification settings you want, and then click Edit.
-
Add your username and password information.
-
For Solución Factible Tax Authority:
-
Click the Custom Fields subtab.
-
Click New Certification Custom Fields.
A certification custom fields record opens.
-
In the Custom Field Key field, enter Username.
-
In the Custom Field Value field, enter the company's username.
-
Check the Encrypt Custom Field Value box.
-
Click Save.
-
Click the Custom Fields subtab.
-
Click New Certification Custom Fields.
A certification custom fields record opens.
-
In the Custom Field Key field, enter Access Pass.
-
In the Custom Field Value field, enter the company's access pass.
-
Check the Encrypt Custom Field Value box.
-
Click Save.
-
-
For MySuite Tax Authority:
-
Click the Custom Fields subtab.
-
Click New Certification Custom Fields.
A certification custom fields record opens.
-
In the Custom Field Key field, enter Username.
-
In the Custom Field Value field, enter a dummy name.
-
Check the Encrypt Custom Field Value box.
-
Click Save.
-
Click the Custom Fields subtab.
-
Click New Certification Custom Fields.
A certification custom fields record opens.
-
In the Custom Field Key field, enter Access Pass.
-
In the Custom Field Value field, enter the company's user name.
-
Check the Encrypt Custom Field Value box.
-
Click Save.
-
-
Values for custom fields can be obtained from your PAC Configuration settings.