Home · Use cases · Invoices ready to stamp

How many invoices in the ERP export go to the PAC today, and how many stop over a field that could have been seen in the morning?

The ERP export gets converted by hand into the file the PAC stamps, and the rejection arrives in the afternoon, when nobody is left to fix it in the ERP. Here the math comes out with your own figures: how many invoices in the export are ready for the PAC today and what share they are, how many stop and how much they add up to, and how many credit payments this month still have no payment complement.

Watch it on video ↓

How it works today

Work out how many invoices are ready for the PAC and how many stop

Swap the example figures for yours: the math redoes itself as you type. Nothing you type leaves your browser.

The ones the ERP exported today; it is the base of the percentages.
Empty recipient, empty RFC or an RFC that does not meet the format in your Rules sheet. It is the first cause checked.
Some line with the product code or the unit empty; it counts here only if the recipient was complete.
Total other than subtotal + tax; it counts here only if recipient and codes were complete.
One average, declared by you, to size the export amount and the amount held.
The payments received this month on invoices with credit as the payment method.
The payments this month that already have their complement with a folio; they cannot exceed the payments.

Results

Ready for the PAC today
7182.6 %
Held before the PAC 15
Export amount USD 412,800.00
Amount held USD 72,000.00
Held over the export 17.4 %
Export status 71 of 86 ready for the PAC today: 82.6 %
Payment complements pending 12
Credit payments this month 12 credit payments this month without a payment complement

Preloaded example with made-up data.

The math

Assumptions, and where the rule comes from

Download the template

A spreadsheet with six tabs and sample data at the scale of a plant invoicing 24 customers: the ERP export for the 21 business days of August with its lines, the rules sheet, the invoice-by-invoice review with its cause and its status, the 40 credit payments of the month and the summary by day. Fill it with your own, or hand it to your AI as a starting point.

Download template (.xlsx)

Direct download, no email and no form. Made-up data: sample customers, RFCs and folios.

How it looks once your AI builds it

Watch it on video

27Timbrar CFDI desde tu app: del export del ERP al folio fiscal

Watch on YouTube ↗

Nothing from YouTube loads when this page opens: the image is ours and lives on this site. The player only comes in when you click. The video is in Spanish.

Sample mockup: the review of the August 31 export, with the board of the day’s invoices, ready, held, amount held and complements pending, the table of the 15 held with their cause and the list of the 12 credit payments without a complement, with made-up data.
Example with made-up data

What changes

What gets asked for is not another invoicing system: it is the review before the PAC. It fits in three sheets — the ERP export as it comes out, its lines and the completeness rules you write — plus a review sheet with the first cause that applies and a status per invoice.

The day’s ERP export carries 86 invoices; 15 stop before reaching the PAC over three fields — recipient, code or unit, amount — that show up in the review sheet in the morning and not in the afternoon’s rejection. The 71 ready go out, the 15 get fixed in the ERP and come back, and the 12 credit payments without a complement sit on a list, not in somebody’s memory.

From here to having it running

  1. Do you recognize the problem? It is yours, not a textbook example.
  2. You know how to solve it. What you do not have are the tools to do it.
  3. Just talk to your AI.
  4. Tell it which files to consume — the ERP export with its lines, the rules sheet and the payments log — and what your rule is for holding an invoice; your AI builds it.
  5. What you get are the export reviewed invoice by invoice with its cause and its status, the list of held invoices to fix in the ERP, the list of credit payments without a complement and the day’s board.
  6. And the review comes out in the morning, with the export, shared with billing and with whoever fixes things in the ERP.
  7. It is not another AI or another chat: it is what is left after the chat.

Install it and ask your AI for it

VillApps installs on your computer and your AI builds the export review, the status per invoice and the list of credit payments without a complement right there, with your files and with no cloud.

Download VillApps

Windows and macOS · 30 days free, no card.

Questions

Why does an invoice with two problems count only once?

Because it counts under the first cause that applies, in this order: recipient, code or unit, amount. The 15 in the example are 5 + 7 + 3 with no overlap; if one has an incomplete recipient and also a line with no code, it counts under recipient, gets fixed in full in the ERP and returns to the export. That way held never exceeds the invoices: if the three causes add up to more than the export — 90 with no recipient: 100 against 86 — the page warns you to check the count, caps held at 86 and leaves ready at 0.

Where do the export amount and the amount held come from?

From one average per invoice that you declare: 86 × 4,800 = USD 412,800 in the export and 15 × 4,800 = USD 72,000 held, 17.4 %. It is an estimate to size how much goes unstamped today, not the line-by-line sum. The template does add up invoice by invoice — on August 31 the 86 give USD 412,800.00 and the 15 held USD 72,000.00, because the data set was built so the average would match — with your data the average is an approximation and the real sum is in the Export sheet.

What is a credit payment without a payment complement, and why is it counted separately?

An invoice with credit as the payment method is paid after it is stamped; when the payment comes in, a payment complement is issued for that payment and gets its folio. The page counts how many payments this month already have a complement and how many do not: 40 − 28 = 12. It sits apart from the day’s invoices because the payments belong to invoices from earlier days, already stamped. If the complements issued exceed the payments, the page warns and leaves 0. The page does not set when each complement is issued: that rule is yours, not this page’s.