AI uses for records
Which month owns an approved cost? An expense period classification dataset
By SourceX Editorial · Reviewed by Noah Loul ·
10 sections
Short answer
An expense period classification dataset has to grade two decisions separately: whether the spend was validly approved, and which accounting period should carry the cost. Approval is an authorization control; period treatment follows when the cost was incurred, not when someone signed. Store the service period, document date, approval date and posting date for every item, and have a qualified accountant label timing against the company's written close policy.
License terms
Expense period
Key takeaways
- Approval validity and period treatment are separate decisions with separate evidence; a dataset that merges them teaches models that a clean sign-off means a correct entry.
- Every expense item needs four dates: service period, document date, approval date and posting date, with the service period extracted from the document and its source kept.
- U.S. securities law and GAO's audit manual already treat authorization and timely recording as distinct control objectives.
- Label approval, period treatment and posting control in three columns, each decided from its own records, with a book or tax basis and a close policy citation.
- Correct totals do not prove correct timing, but late items accepted under a written close policy are not errors and must not be labeled as such.
Why does an approved expense still need its own period label?
Because approval and period treatment answer different questions, and each can fail while the other passes. Approval says a person with authority agreed the company should incur or pay a cost. Period treatment says which month or quarter should carry that cost. A September support invoice approved on October 6 can be valid in every respect and still land in the wrong month.
The gap matters for AI because approved, posted expenses are plentiful training material, and in the routine cases the sign-off and the ledger date agree. A model trained mostly on those cases learns that a clean approval trail means a correct entry. An agent that drafts journal entries or works an accounts payable queue then carries the approval date forward as if it were the accounting date, and no arithmetic check catches it, because every amount still ties.
This page sets out how to build an expense period classification dataset that keeps the two decisions apart: the four dates each item needs, the control texts that already separate authorization from recording, a casebook of eight illustrative items, a reviewer rubric, the objection that a balanced ledger is proof enough, and a packet design for real, authorized records.
Four dates sit on every expense, and the approval date is only one
An expense carries at least four dates that can sit in different periods: the service or consumption period, the document date on the vendor invoice or employee receipt, the approval date, and the posting date in the ledger. Period treatment turns mainly on the first, yet the last is the only one most ledgers are sure to keep in a structured field.
Microsoft's public Business Central documentation shows the split clearly. Its note on document and posting dates (page dated November 2023) says the Document Date on a purchase document should match the date on the invoice received from the vendor, while the Posting Date shows when a document was registered in the system. The same note says many accounting standards require transactions to be recorded based on the date they occurred, that the two dates might or might not be the same, and that a company can switch on a setting that copies the posting date into the document date. Once that setting is on, the vendor's own date has to be recovered from the invoice itself.
Approval adds a third date without changing the other two. In Business Central's purchase approval walkthrough (page dated March 2026), a request moves the document to Pending Approval and the approver's decision moves it to Released; the walkthrough then shows how to extend the workflow so that the response to a released purchase invoice is to post it. When approval triggers posting, whatever posting date the document holds at that moment reaches the ledger. The documented approval step records who approved and when, not whether that date falls in the period the cost belongs to.
The service period is the date least likely to have a structured field. It sits in invoice line text, in a contract term or in the receipt dates on an expense report. A dataset that wants period labels has to extract it and keep a pointer to where it came from. The four dates, and where each is found, are listed below:
- Service or consumption period: when the goods were received or the service was used. Source: invoice lines, contract term, receipt dates, delivery or timesheet records.
- Document date: the date the vendor or merchant put on the document. Source: the invoice or receipt image or e-invoice, not a header field that may have been overwritten.
- Approval date: when an authorized person released the item. Source: the approval entry with approver role, sequence and any delegation.
- Posting date: the date the ledger used, which decides the period the entry reports in. Source: the posted entry, plus the posting window that applied to the user at that time.
Securities law and audit manuals already split authorization from recording
The control frameworks finance teams answer to treat these as separate objectives, which is the strongest argument for separate labels. For issuers with securities registered under the Securities Exchange Act, or required to file reports under it, Section 13(b)(2)(B) of that Act, codified at 15 U.S.C. 78m, requires internal accounting controls that give reasonable assurance of several things, including that transactions are executed in accordance with management's general or specific authorization, and, as a separate item, that transactions are recorded as necessary to permit preparation of financial statements in conformity with generally accepted accounting principles.
GAO's Federal Information System Controls Audit Manual (GAO-24-107026, 2024) draws the same line for information processing. It defines validity as recorded transactions having actually occurred, relating to the entity and having been executed according to prescribed procedures, and accuracy as data about transactions, events and balances being properly and timely recorded. An approval is evidence toward validity. It says nothing about timely recording.
The period rule itself comes from accrual accounting. FASB's conceptual framework (Concepts Statement 8, chapter 1, as amended in December 2021) states that accrual accounting attempts to record the financial effects of transactions and other events and circumstances in the periods in which those transactions, events and circumstances occur. Concepts statements guide standard setting rather than serving as authoritative GAAP, but that is the principle a reviewer applies when deciding whether September support belongs in September.
Tax brings a second basis. IRS Publication 538 (January 2022 revision) says an accrual-method business meets the all-events test when all events have occurred that fix the fact of liability and the liability can be determined with reasonable accuracy, with economic performance as a further requirement, and that an expense paid in advance is deductible only in the year to which it applies unless it qualifies for the 12-month rule. The book period and the tax year for the same prepaid cost can therefore differ, and whether they do turns on tax rules a qualified reviewer applies. A label that says only wrong period, without naming the basis, cannot be graded.
Casebook: eight approved expenses and the period each one belongs to
The casebook below holds eight illustrative items, written to cover approval that is valid and invalid, periods that are right and wrong, and postings made inside and outside the normal controls. None describes a real company; dates use a calendar-month close for simplicity. Two rows are deliberate counterexamples, a late approval that is booked correctly and a correct period reached by going around the posting window, because a dataset without them teaches a model that lateness itself is the error.
Read each row as one task packet. The approval label and the period label are assigned from different records, and the last column names the shortcut a model trained on the item must not learn:
| Item (illustrative) | Approval label | Period label | Deciding evidence | Shortcut it must not teach |
|---|---|---|---|---|
| IT support for September, invoiced October 2, approved and posted October 6 | Valid | Belongs to September: accrue it or post it there while September is open | Service month on the invoice lines; the close calendar | The approval date is the accounting date |
| Annual software subscription invoiced, approved and expensed in full in July | Valid | Spread over the 12 service months in the books; tax basis labeled separately by a reviewer | Contract term and service dates on the invoice | One invoice means one period |
| Registration for a February conference, paid and approved in November | Valid | Prepaid until the event, then expensed in February | Event date and registration terms | Paying for a cost means incurring it |
| August travel receipts submitted on a November expense report | Valid, with the late-claim justification the policy requires | Belongs to August; current-period posting accepted only if the written close policy allows it below its threshold | Receipt dates and the close policy version in force | A late claim is always wrong, or always fine |
| Contractor invoice for October work approved September 28, before any timesheet | Invalid: released before receipt was confirmed | Belongs to October | Timesheets and the receipt record | Approval proves the work happened |
| October rent posted in October, approved by a manager above their limit | Invalid: authority exceeded | Correct period | Approval limits and delegation records | A period-correct entry is an authorized one |
| September freight invoice approved October 3 and posted to September while it was open | Valid | Correct period (counterexample) | Posting date, open-period setup on that day | Every late approval is a period error |
| September utility bill posted to September after close by a user with a wider posting window | Valid | Correct period, reached outside the normal posting control (counterexample) | User posting window history and the change log | The right period means the right process |
Reviewer rubric: approval, period and posting control, labeled apart
Each packet gets three labels from three different evidence sets, assigned by a qualified accountant, and no label may be inferred from another. That rule is what stops the dataset from teaching the approval shortcut. The rubric below is an editorial template, version 1.0 dated 2026-10-27; a company's own close policy fills in its thresholds:
At a glance
Reviewer rubric: approval, period and posting control, labeled apart
- Label A, approval validity: valid, invalid (authority exceeded, out of sequence, released before receipt, missing) or not required. Decided from approval entries and the approval policy in force on the decision date.
- Label B, period treatment: correct, belongs to an earlier period (missed accrual), belongs to a later period (prepaid expensed early), should be spread (missed deferral), accepted under the written close policy, or cannot be determined. Decided from service evidence and the policy; never from approval or posting dates.
- Label C, posting control: inside the user's posting window, outside it with a recorded authorized override, or outside it without one. Decided from the posting setup that applied on the posting date, not today's setup.
- Basis and policy fields: book or tax basis for label B, and the identifier of the close policy version cited. A label without a basis is returned to the reviewer.
- Evidence pointers: every label cites the record identifiers it relied on, including the text span that gave the service period.
- Review: a second accountant reviews every cannot be determined and accepted under policy label, and disagreements are kept, not overwritten.
- Grading an agent: score labels A, B and C separately. An agent that proposes the approval date as the posting date fails label B even when label A is valid, and correct totals earn no credit toward B.
Totals that tie can still sit in the wrong month
They can, because a tied total tests arithmetic and an approval tests authorization, and neither one tests timing. The strongest alternative explanation for a clean ledger is that it is simply right: the totals tie, the approvals exist and the account reconciles. That explanation fails for the reason just given, and it fails silently.
Take the first casebook item. September and October together show the same total whether the support cost is booked in either month, and a quarter that contains both months is unaffected. The monthly report is not. September's expense is understated, October's is overstated, a budget variance appears in both, and any accrual process that reverses on the first day of the next month now acts on the wrong base. The arithmetic was correct in every month, and the treatment was still wrong.
The objection does hold in two places, and the rubric has to respect both. First, a company's written close policy may set a threshold below which late items are booked in the current period; an item handled that way is accepted under policy, not an error, and labeling it wrong would train a model to over-correct. Second, the same item can belong to different periods on a book basis and a tax basis, because Publication 538 sets separate tax rules for prepaid expenses. Both cases are why label B carries a basis and a policy citation.
A neighboring failure is covered on a separate page: an agent's spreadsheet formula that pulls figures from the wrong period. There the error sits in a calculation. Here every calculation can be correct and the date on the entry is what is wrong.
Posting windows control what a period accepts, not what it should hold
A posting window decides which dates the ledger will accept from a user; it does not decide which period an expense belongs to. In Business Central, the Allow Posting From and Allow Posting To fields on General Ledger Setup set the window for the company, and the posting periods documentation (page dated March 2026) says periods defined for specific users on User Setup overrule the company setting.
The same page describes date formulas that calculate the window from a user's work date, and notes that users can change their work date in their own settings, which makes formula windows less restrictive than fixed dates. Deferrals have their own exception: the deferrals documentation (page dated April 2025) explains that when posting is restricted, Allow Deferral Posting From and To must be set so deferral entries can still post outside the period.
For the dataset, this means label C needs the window that applied to that user on that day. Today's setup cannot show it, so packets need the setup change history or a dated snapshot. It also means a posting into a closed month is not automatically a fault: a controller with an authorized override posting a missed September accrual is doing the job the window was built to allow. The casebook's last row exists to make a model ask who posted, under which window, before calling anything a bypass.
Building authorized task packets from real expense records
Use authorized, de-identified task packets built from a company's real expense, payables and ledger records, with every label reviewed by a qualified accountant. One packet is one expense item with its linked records, frozen as they stood when each decision was made.
At a glance
Building authorized task packets from real expense records
Sample on purpose. Where most expenses are approved and posted in the month they are incurred, a random sample mostly teaches agreement. Oversample items approved in the first days after a period end, prepaid and multi-period contracts, late expense reports and posts into closed periods, and keep matched control items from the same vendors that were booked correctly. Split training and test sets by period and by entity, so a model cannot pass by memorizing one vendor's billing rhythm.
Replace employee and approver names with stable role tokens, remove card and bank details, and express amounts as a ratio to the close policy threshold where materiality matters, so the label survives de-identification. Removing names does not settle whether the company may license the records; that turns on its contracts and notices and is reviewed separately. Each packet should hold the fields below:
- Item record: expense line or invoice line with category, amount ratio and the extracted service period with its source span.
- Document: the vendor invoice, e-invoice or receipt as received, with its own date.
- Approval chain: each step's role, decision, timestamp, limit and any delegation.
- Ledger: the posted entry, posting date, period, deferral schedule if any, and later reversals or reclassifications with their dates.
- Controls: the user's posting window on the posting date, the close calendar and the close policy version.
- Labels: A, B and C with basis, policy citation, evidence pointers, reviewer role tokens and any recorded disagreement.
What an expense timing request to SourceX should contain
A team that needs real expense timing records can describe the task to SourceX through its data request form. SourceX sources datasets from businesses when a buyer asks, rather than selling from an inventory, so the request itself shapes what is looked for; nothing here implies that matching records are on hand or that any request will be filled.
A useful request names the task (period classification for an expense or payables agent), the four dates and the three labels, the reviewer qualification required, how many items of each casebook type are wanted, the history span, the de-identification rules and the intended use. It should also state an acceptance test the buyer will run, for example: every sampled item carries a service-period source span, three labels with a basis and policy citation, and a posting window snapshot for its posting date.
What this casebook does not establish yet
The casebook shows what to collect and how to label it; it does not measure how often each case occurs. All eight items are illustrative, and no SourceX or third-party results on expense period classification are published here, because none have been measured from real packets.
Three questions need real data before this design can claim more. How often do month-end approvals change the correct period in an actual company's records? How closely do two qualified accountants agree on label B, especially for policy-based items? And does training with separate labels stop a model from treating the approval date as the accounting date, compared with training on approved entries alone? Each needs authorized packets, a fixed sampling rule and a recorded reviewer protocol.
The control and tax texts cited here are U.S. sources, and Business Central stands in for ERP behavior generally; IFRS reporters, other jurisdictions and other systems need their own checks. This is general information about dataset design, not accounting or tax advice.
Frequently asked questions
What is an expense period classification dataset?
It is a set of expense items, each linked to its invoice or receipt, approval chain and ledger entry, labeled with the accounting period that should carry the cost. A good one labels approval validity and period treatment separately, so a model cannot learn that a valid approval implies a correct period.
Can an expense be properly approved and still be posted to the wrong period?
Yes. Approval confirms that an authorized person agreed to the cost; it does not check the date the ledger uses. A September service invoice approved in early October and posted on the approval date lands in October even though the cost belongs to September.
Which date decides the accounting period of an expense?
Under accrual accounting, the period in which the underlying transaction or event occurred, which for most expenses is when goods were received or the service was used. The approval date and the posting date record process steps, not when the cost was incurred.
Is booking a late expense in the current month always an error?
No. A company's written close policy may allow late items below a set threshold to go to the current period. A dataset should label those items as accepted under policy and cite the policy version, so a model does not learn to correct entries that were handled as the policy intends.
Why can the same expense belong to different periods for books and for tax?
Book accounting spreads a prepaid cost over the months it covers, while U.S. tax rules decide the deduction year separately; IRS Publication 538, for example, describes a 12-month rule for some prepaid expenses. A period label should therefore name its basis, book or tax.
Sources
- Section 13(b)(2)(B) of the Exchange Act requires covered issuers to keep internal accounting controls that give reasonable assurance that transactions are executed under management's authorization and, separately, recorded as necessary to prepare GAAP financial statements. Source
- GAO's Federal Information System Controls Audit Manual (GAO-24-107026, 2024) defines validity as recorded transactions having occurred and been executed according to prescribed procedures, and accuracy as transactions being properly and timely recorded. Source
- FASB Concepts Statement 8, chapter 1 (as amended December 2021), says accrual accounting attempts to record the financial effects of transactions and other events in the periods in which they occur. Source
- IRS Publication 538 (January 2022) sets out the all-events test and economic performance for accrual-method deductions and says a prepaid expense is deductible only in the year to which it applies unless the 12-month rule applies. Source
- Business Central documentation separates the Document Date (matching the vendor's invoice date) from the Posting Date (when the document was registered) and describes a setting that copies the posting date into the document date. Source
- Business Central's purchase approval walkthrough moves a document from Pending Approval to Released and shows how to extend the workflow so a released purchase invoice is posted automatically. Source
- Business Central posting periods are set with Allow Posting From and To on General Ledger Setup, user-specific periods on User Setup overrule them, and date formulas evaluated against a user-changeable work date are less restrictive than fixed dates. Source
- Business Central deferral templates recognize expenses in later periods than the posting, and Allow Deferral Posting From and To let deferrals post outside a restricted posting period. Source
Tell us what data you need
Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.