Replace the e-invoice being cancelled with a new invoice
This task guides you through the process of replacing a canceled e-invoice with a new invoice, including creating a business region, defining custom fields, and updating invoice statuses.
-
Create a business region for Mexico.
Note: Mexico supports invoices, credit memos, and debit memos. However, if you're using a credit memo to reverse an invoice, it should not be submitted to the tax authorities.-
Set E-Invoice Process Clearance with Cancelation.
-
Billing Document Types selecting Invoice, Credit Memo, Debit Memo.
-
Disable Use Default Rule to Match the Business Region for Credit Memo. Configure the filter to not send credit memos that are generated due to invoice reverse. Example Rule:
Account.SoldTo.Country = ‘Mexico’ AND CreditMemo.ReasonCode != ‘Reversal Invoice’.
-
-
Define a custom field named DocumentReferenceID__c on the Invoice object. This is to store a reference to the original document being replaced.
-
The invoice INV1 has been posted and submitted to Tax Authorities via Sovos. Its e-invoice status is Success.