Why AI Keeps Putting Invoices in the Wrong Month

Published · 13 min read

A bill for work completed last month arrives after the books have closed, and the AI assigns it to the month printed on the invoice. Another bill has a date in one month, service details covering several months and a receipt stamp in the next. Now the accounts payable report doesn't match the period you expected.

That's what it looks like when AI invoice processing puts a bill in the wrong month. The software may read every character correctly and still choose the wrong period, because finding a date and deciding what it means are separate jobs.

Don't teach the assistant that every invoice belongs to the month printed near the top. Give it your accounting rules, have it show the dates and evidence behind its proposal, and test it against a sample labeled by a person. When it can't resolve a conflict, it should flag the invoice instead of guessing.

Why invoice dates don't settle the accounting period

An invoice date is the date the supplier puts on the document. A service date describes when the work or goods relate to, a receipt date records when your business received the bill, and an accounting date is the date your accounting system uses for the transaction. These dates can match, but they don't have to.

The invoice accounting period is the period your business assigns under its accounting method and posting rules. The right period can depend on the transaction, the service dates, your fiscal calendar, whether a period is open and how your accounting software is set up.

Say a consulting invoice dated in October describes services delivered across September and October. A date-reading system can find the October date without trouble. The harder question is whether your policy puts the expense in the invoice month, the period when the services were received or another period under your rules.

The IRS explains in Publication 538 that an accounting method is a consistent set of rules for deciding when income and expenses are reported. Under the cash method, expenses are generally deducted when paid; under the accrual method, expenses are generally deducted in the year incurred, regardless of payment date.

That's why a model shouldn't treat the printed invoice date as a universal posting instruction. The invoice is evidence; your business rule decides which evidence matters for that bill.

Your financial year matters, too. A calendar tax year runs from January 1 through December 31, while Publication 538 also recognizes fiscal years ending in a month other than December and 52-53-week years (IRS Publication 538). If a classifier assumes a calendar-year month map, it can assign the wrong period even when it extracts every date correctly.

Write down what each date means in your workflow. If your team uses "invoice date" to mean the supplier's document date in one step and the posting date in another, the assistant inherits that confusion. Clear labels tell both the software and the reviewer what decision they're making.

How date extraction turns into a period error

OCR, or optical character recognition, turns text in a scanned document into data a computer can read. Invoice OCR date extraction can fail when a scan is poor, a field is hard to identify or a layout puts dates in unexpected places. Even correct extraction doesn't guarantee the right period.

The model might read "09/10/2026" accurately and still misread whether the format means September 10 or October 9. It might capture a purchase-order date instead of the invoice date, or mistake a date range in the service description for the document date. A person can use labels and nearby text to tell the dates apart; the system needs to preserve that context.

Research gives you a reason to test actual invoices instead of relying on a polished demonstration. An Aalto University thesis compared traditional OCR and LLM-based OCR on 27 invoice documents. The LLM-based approach had higher overall extraction accuracy in that test, but its improvement wasn't consistent across invoice data, and the study reports continuing difficulty with long invoices, ambiguous references and non-standard formats (Aalto University thesis).

The thesis abstract describes the appeal of contextual reading this way:

“the key advantage of LLM-based OCR lies in stronger document understanding, especially in cases where contextual interpretation is required.”

Context helps a model work out what a date label means, but it can't make every date clear. If the assistant can't tell whether a date is a document date, a service boundary or a delivery date, it should flag the invoice for review instead of making a confident guess.

A 2022 KTH degree project analyzed OCR output from 70 real invoices. Extra words in fields and missing words together made up 51% of the observed OCR errors; a correctness classifier's F-score was 0.982 on fabricated data and 0.596 on real invoice data initially, rising to 0.832 after further fine-tuning (KTH degree project). Clean sample documents can make an invoice assistant look more reliable than it is on live supplier paperwork.

Date handling also depends on your accounting software's settings. In Oracle Fusion Financials 26C, accounting-date derivation depends on whether a date was supplied, whether the invoice uses rules, the transaction source's settings and whether the relevant period is closed (Oracle Fusion Financials 26C documentation).

The same Oracle documentation describes a date fallback for invoices without revenue rules: if no accounting date is supplied and date derivation is enabled, the system can use the ship date if present, otherwise the sales-order date, otherwise the import process's default date (Oracle Fusion Financials 26C documentation). So a transaction can land in a different month from the supplier's printed invoice date even when OCR gets everything right.

Keep the workflow in separate steps: identify candidate dates, attach each date to its label and location, determine which business rule applies, then propose a period. If the system stores only one field called "date," you can't tell whether it chose the supplier date, a service date or a software-generated fallback.

Service dates, late invoices and closed periods

A service period is the interval when a supplier's work or goods relate to your business. It can be a single date, a range or a description that needs interpretation. When a supplier sends a bill late, the service period may point to a different month from the invoice or receipt date.

Don't let the assistant quietly change the invoice date to make it fit the preferred period. Keep the document's date as it appears, record service dates separately and apply your accounting policy to the transaction. That preserves the evidence behind a proposed period that differs from the printed date.

The difference between invoice dates and accounting dates also shows up in software settings. Sage 300 CRE lets you configure AP accounting-date usage as invoice date, date received or entered date (Sage 300 CRE guidance). If your assistant reads the invoice date correctly but your policy uses the receipt date, extraction is right and posting is wrong.

A closed accounting period is a period your system no longer accepts transactions into under its configured rules. Oracle Fusion Financials documentation says a transaction source can adjust a date in a closed or not-open period to the next open period, or reject the transaction; the system can also reject dates without a defined accounting period (Oracle Fusion Financials 26C documentation).

Flag a conflict instead of assuming the system will handle it the same way every time. If one vendor bill moves to the next open period and another gets rejected, the assistant should show that configured behavior and leave the accounting decision visible.

Sage warns about the consequences of changing a date:

“Changing a date can affect reporting and balances.”

A date correction can affect more than the invoice record. Sage's guidance describes correction entries for the incorrect period and asks users to check that the original and reversing entries net to zero (Sage 300 CRE guidance). Keep the original document date, proposed posting period and reason for a manual change available for review.

A forum discussion describes a November invoice dated November 29 that arrived December 3 after November close. The poster contrasts changing the invoice date to the receipt date and posting in December with keeping the vendor date but posting in December, and warns that the second approach can create a difference between the AP aging report and the November general-ledger balance (Acumatica Community discussion, December 20, 2023). Ask your accountant which treatment fits your policy.

Keep the distinction clear: the document date records what the supplier issued, while the posting period records where your business books the transaction. They can differ, but the assistant shouldn't hide that by rewriting the evidence.

Credit memos need their own date rules

A credit memo, sometimes called a credit note, records a reduction or reversal related to a charge. It may refer to a prior invoice, but its date and accounting period still need their own decision. Copying the original invoice's month can be wrong; assigning the credit by its printed date without checking its relationship can be wrong, too.

Oracle documents a specific credit-memo path. Without a supplied accounting date, AutoInvoice uses either the accounting date of the related invoice receivable distribution or the import process's default date, whichever is later. Its validation can also reject a credit memo dated earlier than the related invoice (Oracle Fusion Financials 26C documentation).

That's why invoice processing date errors can happen even when the assistant extracts every date correctly. A credit memo isn't just another invoice with a negative amount: it can depend on a link to an earlier transaction and system settings that ordinary invoice logic doesn't cover.

For each credit document, keep the credit's printed date, the related invoice reference, any service-period detail and the proposed accounting period in separate fields. Send it for review if the original invoice can't be matched, the reference is unclear, the credit date conflicts with the linked invoice or the system would use a fallback.

The assistant should show its reasoning in a way an accountant can check against the document. "Assigned to October" isn't enough. A useful proposal says which source fields it found, which invoice or service dates support the decision, which policy rule it applied and whether the period is open.

A concise exception message can name the problem: "Credit memo references an invoice dated September; the credit document is dated October; confirm the related transaction and posting period." The reviewer gets a concrete question to resolve, without the model pretending to know what the firm's policy means.

Compare the dates before you choose a month

Use the table below to keep the fields separate. Adapt the labels to your accounting software, then have the person responsible for period close confirm which fields control posting.

Field What it represents Why an assistant might need it
Invoice date The date printed by the supplier Identifies the document date, but may not decide the accounting period
Service date or period When the billed work or goods relate to Helps evaluate accrual and service-period treatment
Receipt date When the business received the invoice May control AP accounting-date settings in some systems
Accounting date The date used for accounting and period assignment May be supplied, derived or determined by configured system rules
Credit-document date The date on a credit memo or credit note Needs separate handling, especially when linked to an earlier invoice
Posting period The accounting period where the entry is recorded Can differ from the printed date and may be closed

Oracle's invoice rules show why a one-field design is risky. Under an "In Advance" invoicing rule, the accounting date can come from the supplied date or, if it's absent, the earliest revenue-schedule start date among invoice lines. Under an "In Arrears" rule, the process derives line end dates from scheduling rules, start dates and durations, then uses the latest line end date as the invoice accounting date (Oracle Fusion Financials 26C documentation).

A multi-line invoice can have service dates that don't reduce neatly to one guessed date. If one line covers one period and another covers a different period, the assistant needs to know whether your system and policy allocate lines separately or handle the invoice another way. If that rule isn't clear, send the invoice to an accountant.

For a sample review, capture the fields that let you compare the assistant's proposal with the decision a person approved:

  • The original invoice or credit document, kept unchanged.
  • The extracted invoice date, with its label and location on the page.
  • Any service dates or service-period description, plus the lines they apply to.
  • The receipt date, where your workflow records it.
  • The linked invoice for a credit memo, if one is identifiable.
  • The proposed accounting date and period, with the rule or system setting used.
  • The accountant-approved period and any correction reason.

This record helps you tell two failures apart. A wrong-field extraction means the model read or labeled the source incorrectly; a wrong-period assignment means it used the available fields but chose an unsupported period. If your team checks only whether the final month was right, it can miss a fragile extraction that happens to land in the expected month by luck.

For closed periods, future-dated invoices and period boundaries, check what your accounting software actually does. Sage 300 CRE accepts future-dated AP invoices with a warning that they post to a future general-ledger period, and AP can reject Job Cost and General Ledger entries depending on how far ahead the date is (Sage 300 CRE guidance). An extracted date can look valid on the page and still fail downstream validation.

Decide which invoices the assistant should flag

You don't have to choose between "automate everything" and "make a person inspect every character." Let the assistant handle cases where the dates, supporting document and policy agree; send uncertainty to a person before posting the proposed period.

Start in shadow mode. The assistant processes sample invoices and recommends periods, but a person continues using the normal accounting workflow. Compare each recommendation with the accountant-approved result before allowing automatic posting.

Build a representative, human-labeled batch with different vendors and date layouts, late-arriving invoices, service-period descriptions, credit memos and closed-period cases. Don't choose only clean, single-page examples. The Aalto thesis reports that invoice format and complexity affect extraction, while Oracle and Sage document configuration-dependent date behavior (Aalto University thesis; Oracle Fusion Financials 26C; Sage 300 CRE).

Review the sample in these steps:

  1. Set the policy before testing. Write down which dates can affect invoice posting, how service periods are treated, what happens after a period closes and who approves exceptions. If the team can't agree on the rule, the model can't apply it consistently.
  2. Label the source document. Record the invoice or credit date, service dates, receipt date where available, related-invoice reference and the human-approved period. Keep the original page available so a reviewer can check what the model read.
  3. Run the assistant without posting. Store its extracted fields and proposed period alongside the human labels. Have it show which dates and rules support the decision, not just return a month.
  4. Count the two error types separately. Record wrong-field extraction separately from wrong-period assignment. Check whether a correct field led to the wrong period because the policy was missing, misunderstood or not applied.
  5. Review every exception pattern. Look for repeated trouble with a vendor layout, unclear date labels, late bills, service periods, credit links and closed periods. Fix the specific input or rule before expanding automatic assignment.
  6. Limit automatic assignment to clear cases. Keep conflicting dates, multi-period services, uncertain credit relationships and closed-period conflicts in a human queue. Recheck the sample whenever the accounting policy or relevant system configuration changes.

This validation method has no published error-rate target. It shows whether the assistant handles the kinds of invoices your firm receives, instead of treating a neat demo as proof.

Ask more than "Did it choose the right month?" Ask, "Could I verify the dates and the rule from the evidence it saved?" A correct answer with no traceable support is hard to defend when someone queries the invoice or reconciles the period.

The choice between automatic posting and review came up in a separate document workflow we built for a municipal council. The council wanted replies ready on its letterhead, with the legal basis for every answer. We chose to have a person approve and sign each reply, and inserted each law from the official legislation portal by code, rather than sending replies automatically or letting the model cite laws from memory or a stored copy. Legislation changes every week, and officials didn't want disputes that start with "the AI wrote it." Every outgoing reply carried a person's signature and a citation from the official source (a document system we built for a municipal council).

Invoice posting isn't the same as signing a legal letter, but the control principle carries over: decide who approves a consequential decision, and make the underlying source visible. In the council system, a receipt acknowledgment without legal weight could go out automatically. For invoices, your accountant can define which routine cases are safe to automate and which need a person.

Keep a person in the loop when the assistant can't identify the right date, link a credit memo to its invoice, interpret a service period spanning periods or resolve a closed-period conflict. You don't need someone to reread every clean bill; you need a review before missing or conflicting evidence turns into a confident month assignment.

Want this done for your business?

An AI agent from $500, a document assistant from $800, fixed price and deadline. Or describe your task and get a plan with a price for each step

Questions people ask

Should an invoice be booked by invoice date or service date?

Use the accounting policy that applies to the transaction, not a blanket rule based on one printed date. For accrual accounting, the period may depend on when the expense was incurred, while the invoice date, receipt date and accounting date may serve different purposes.

How should a late invoice for last month's work be posted?

Check the service dates, the accounting method and your period-close policy before assigning a period. If the relevant period is closed or the dates conflict, route the bill to an accountant rather than silently changing a date.

How do credit memos affect the accounting period?

A credit memo may follow rules that differ from the original invoice, including rules based on the related invoice or a default date. Check the configured accounting system behavior and the reason for the credit before assigning its period.

How can I test whether AI invoice processing assigns periods correctly?

Run the assistant in shadow mode on a human-labeled sample that includes different vendors, date layouts, late bills, service-period descriptions, credit memos and closed-period cases. Compare extracted fields and proposed periods separately with the accountant-approved records.

When should an AI assistant flag an invoice instead of assigning a month?

Flag invoices with conflicting dates, unclear service periods, multiple service periods, uncertain credit relationships or a closed-period conflict. Automatic assignment is appropriate only when the evidence is clear and the result follows your written policy.

Sources

  1. Publication 538 (01/2022), Accounting Periods and Methods
  2. Accounting Date Derivation During AutoInvoice Import
  3. Fix incorrect accounting dates on Accounts Payable invoices
  4. Assessing the role of LLM-based OCR in enhancing invoice data capture accuracy in accounts payable
  5. Exploring Machine Learning Solutions in the Context of OCR Post-Processing of Invoices