Intelligent ERP

New system? The old one stays for five years

In this article

Nori.mx5 min read

Five years from the tax returnArt. 30, Fiscal Code2026202720282029203020312032saletax returnstill retrievableArchive, no system neededCSVPDFXMLA 3-year-old invoicefound in 5 minutes

The day you have been waiting months for arrives: the new system works. Sales enters orders there, the warehouse ships from there and accounting closes there. And someone asks the obvious question: do we turn off the old one?

Before answering, it helps to know that the old system is not just software you no longer use. For the SAT, Mexico’s tax authority, it is part of your accounting records, and those are kept for years.

What counts as accounting records

Article 28 of Mexico’s Federal Tax Code (Código Fiscal de la Federación) defines them broadly. They include, in our translation:

The books, accounting systems and records, working papers, account statements, special accounts, corporate books and records, inventory control and valuation method, disks and tapes or any other processable data storage medium…

In other words, the system and its records, not just the journal entries your accountant printed. Inventory control counts too, and in many companies it lived precisely in the system about to be shut down. The same article requires those records to be kept electronically.

For how long

Article 30 says accounting records and supporting documents must be kept:

for five years, counted from the date on which the related tax returns were filed or should have been filed.

Five years from the return, not from the transaction. A 2026 sale goes into the 2026 annual return, filed in 2027, and the clock starts there. That record has to be retrievable until at least 2032.

And some cases make the period longer. The same article says:

  • when the tax effects of a transaction extend over time, such as equipment deducted over several years, the clock starts at the return for the last year with effects;
  • when there is an appeal or lawsuit, it starts when the final ruling is issued;
  • some documents, such as the articles of incorporation, minutes of capital increases or decreases, and provisional and annual tax returns, are kept for as long as the company exists.

The practical takeaway: five years is the minimum, and your accountant knows which of your records fall under an exception. Ask before deleting anything.

Why leaving it running is not enough

“We’ll just leave it on the server” is the most common answer, and the one that usually fails three years later:

A SAT review does not give you years of notice. It shows up when you already need the data.

Three ways to handle it

1. Migrate the history into the new system. It is the most convenient for lookups, because everything ends up in one place. It is also the most expensive and the most delicate: old data rarely goes in clean, and a botched migration can change figures that were already reported. It makes sense for recent years, the ones people look up often.

2. Keep the old system read-only. It gets frozen: nobody enters data, people only look things up. It is reasonable if the system and the server will last the remaining years and someone in the company knows how to use it. It needs a written end date.

3. Export an archive and shut it down. You export what matters to formats that open without the original system: tables as CSV, reports as PDF, and the XML of your invoices exactly as they were stamped. The XML is the tax document; the PDF is only its printed representation. You add a document explaining what each file is, and you test it: someone who did not do the export finds a three-year-old invoice in five minutes.

The answer is almost always a mix: recent years in the new system, the rest in an archive, and the old one switched off on an agreed date.

What goes in the archive

A list to go over with your accountant before turning anything off:

  • The XML of every CFDI issued and received, including payment complements and credit notes.
  • Journal entries and trial balances, with each year’s chart of accounts.
  • Inventory movements and the valuation method that was used.
  • Customer and supplier catalogs as they were at the time.
  • Payroll, if it lived in the same system.
  • Who made each entry, if the system recorded it. That is what explains a figure years later.

If you also operate in the United States, the IRS has its own retention periods, different from the SAT’s, and the archive has to meet both.

Where we come in

When we build a custom ERP or replace an old system for a company in Juárez or El Paso, the plan for the history is decided from the start, not on go-live day: what gets migrated, what gets archived, how we prove it can be retrieved and when the old one is switched off. If you are about to change systems and do not know where to start, Chira helps you sort it out in writing. And if you would rather talk it through, book a call.

References

  • Código Fiscal de la Federación, Chamber of Deputies — current text, last amended in the DOF on April 9, 2026. Article 28 sets out what makes up accounting records and that they are kept electronically; Article 30 sets how long they must be kept and when the period is longer. In Spanish.

Related service

Intelligent ERP

One system that runs your whole company, with intelligence built in.

See the service

Articles on this service

Cost of the partStandard set two years agoMaterialpurchasing, invoiced?Laborplanned 4 h, ran 6Scrapnotebook, end of shiftMONTH CLOSE15days laterthree people, on a weekend

Intelligent ERP

What does that part actually cost you?

If the cost you quote from was set two years ago, you are guessing. Where the money hides, what you can measure this week, and the agreement to make first.

6 min read

ERPowns:Closes the monthPart catalogPurchase orderCostFinancialsSame countERP900Scanner880Which one wins?FLOORowns:Runs the minuteLocationScanDowntime reasonOperatorExact time

Intelligent ERP

When the corporate ERP does not reach the floor

You have SAP and the warehouse still runs on a spreadsheet. The problem is rarely the ERP. It is the last fifteen meters of the operation.

7 min read