What Is a Transaction Processing System? Types, Steps and Real Examples
A transaction processing system (TPS) records each sale, payment, goods receipt or salary run completely and correctly the moment it is accepted. It is the record-keeping layer every report depends on, and an ERP is one.
- Steps in every transaction
- 5
- Basic processing types
- Batch, real-time
- ACID promises
- 4
- Ledgers one ERPNext entry can write
- 3
The basics
What is a transaction processing system?
In one line
A transaction processing system records each business event, completely and correctly, at the moment it is accepted. A sale, a payment, a goods receipt and a salary run are all transactions. Every report you read later depends on them. A transactions processing system is the record-keeping layer of a business, not the reporting layer.
Most guides stop at a glossary definition. This one follows a real transaction through an ERP, shows batch and real-time processing side by side in one system, and explains what a good TPS does when something goes wrong. That last part is the real test.
A business transaction is anything that changes what you own, owe or hold: money, stock or an obligation. A quotation is not a transaction in this sense. An invoice is. IBM describes the online form, OLTP, as the "real-time execution of large numbers of database transactions by large numbers of people", and says its defining feature is atomicity: a transaction either succeeds as a whole or fails (IBM). Oracle adds that these records are traditionally called economic or financial transactions, recorded and secured so a company can use them for accounting or reporting at any time (Oracle).
A business transaction
The event itself: a customer buys 10 units.
A database transaction
The technical unit of work that writes it: save the invoice, reduce stock, post the debit and credit, then commit or roll back.
A good TPS makes one business transaction equal one database transaction, so a half-written sale can never exist. Two misreadings are common:
- Not a dashboard: a TPS writes data, reporting tools read it
- Not one product: POS, payroll, banking and ERP all contain a TPS
- Not a spreadsheet: no entry rules, no locks, no change record
A company that runs sales in Excel and accounts in another tool has two partial transaction systems and two versions of the truth.
How it works
How does a TPS work? The five steps of a transaction
Every transaction passes through the same five steps. If any step fails, the whole transaction is undone, not partly saved.
- 1CaptureData comes from a person typing, a barcode scan, a POS screen, a file import or an API call from another system. In ERPNext this is a draft document, and a draft "normally has no ledger effect" (ERPNext documentation). You can edit or delete it freely.
- 2ValidateThe system checks the entry against rules before it touches a ledger. On submit, ERPNext validates the posting date, company, currency, accounts, cost centers, dimensions, totals and the debit-credit balance. Stock cannot go below zero unless you allow it in Stock Settings, and over-delivery is capped by an allowance percentage.
- 3ProcessThe system works out the effects: tax, totals, valuation rate, and which accounts to debit and credit. A stock-updating Sales Invoice records income and receivable in the General Ledger, reduces inventory in the Stock Ledger and the General Ledger, and creates the customer's outstanding amount in the Payment Ledger.
- 4Store (commit)All the effects are written together and made permanent. Frappe commits a request's writes together at the end, and an uncaught error rolls them back (Frappe documentation).
- 5OutputThe system produces the invoice or receipt, the updated balances, and the data every report reads: General Ledger, Stock Balance, Accounts Receivable.
Most errors start at step 1, so put your checks there and make entry easy: Excel upload into a child table, barcode fields, defaults. Where AI fits, it fits at capture. It can read a delivery slip or vendor invoice into a draft that a person checks and submits, instead of retyping it. Then decide which output management will look at first, and make sure the inputs that feed it get entered. If nobody reads the output, entries drift.
Types
What are the types of transaction processing systems?
Short answer
Two basic types. Batch processing collects transactions and processes them together at a set time. Real-time (online) processing handles each one the moment it happens. Most real businesses use both, often inside the same system.
| Question | Batch | Real-time |
|---|---|---|
| Does someone wait for the result? | No (payroll, statements) | Yes (checkout, booking, stock check) |
| Volume | Very high and uniform | Any, but each must be fast |
| Must others see it at once? | No | Yes (stock, seat, balance) |
| How are mistakes corrected? | Before the batch is submitted | Cancel and reverse afterwards |
| ERPNext example | Payroll Entry, POS closing, bank statement import | Sales Invoice with Update Stock, Payment Entry |
Batch processing: payroll as the classic case
In Frappe HR, Payroll Entry "enables bulk processing of payroll for employees", for the whole company or by branch, department or designation. You click Get Employees, create the salary slips, check them, then submit. The submit books the accrual in one go, and Make Bank Entry creates the payment voucher.
The batch is the unit the accounts expect. The documentation is blunt about it: submitting salary slips one by one "will not create the Journal Entry to record salary accrual". Batch processing also has a delay by design. It trades immediacy for efficiency and control.

Real-time processing and OLTP
Real-time processing handles each transaction immediately: an ATM withdrawal, a card payment, an online booking, an order entry. OLTP is the multi-user version. Many people work at once, each transaction is small and quick, and concurrency control stops two people changing the same data at the same moment (IBM; Oracle). In an ERP, a Sales Invoice with Update Stock switched on posts income, receivable and the stock reduction at the moment you submit it.
The hybrid
Real-time capture, batch posting: the hybrid most guides miss
ERPNext's point of sale shows both types working together. A POS Invoice is created for each sale, which is the recommended route for high volume. The customer gets a receipt at once. The stock and accounting entries come later, when the session closes, from "a single Sales Invoice which merges all the intermediate invoices" (ERPNext documentation).
The reason is scale: fewer ledger entries and a faster general ledger. When a session closes with more than 10 invoices, the consolidation runs as a background job.

Stock still stays right during the day. Quantities in open sessions show as "Reserved for POS Transactions" in the Stock Projected Qty report, and the POS refuses an item that is not available across all open sessions.
The customer gets an immediate receipt (real-time), and the ledger gets one clean entry per session (batch). That is the whole batch-versus-real-time question answered inside one screen.
Distributed and offline processing
A distributed TPS spreads one transaction across several systems, such as a shop, a payment gateway and a warehouse, and needs coordination between them (Coursedrill). In practice, when a store loses its connection, transactions queue and sync later. Integrations between an ERP and outside systems often fail on field rules, so the queue needs retries and visible errors, not silent drops.
ACID
What are the ACID properties of a TPS?
In plain words
ACID is four promises a TPS makes about every transaction. It happens completely or not at all (atomicity). It never breaks the rules (consistency). Other people working at the same time do not disturb it (isolation). Once saved, it stays saved (durability).
Atomicity: all or nothing
Oracle puts it this way: if any step fails, all the other steps must fail or be reverted (Oracle). A sale that reduced stock but failed to post the receivable would leave stock and accounts disagreeing. In ERPNext the invoice, its General Ledger entries, the payment ledger entry and the stock ledger entries are saved together or not at all.
Consistency: the rules always hold
A transaction moves data from one valid state to another. Debits equal credits, stock does not go negative unless a manager allowed it, nothing posts into a closed period. Put each check in the system, not in a person's head. A rule that lives only on a training slide gets broken again.
Isolation: no interference
Two people book the last seat and only one must succeed. Oracle says isolation is usually done by locking the specific rows in the table. ERPNext runs on MariaDB with the InnoDB engine, which is ACID-compliant and well suited to OLTP workloads, with row locking (MariaDB). Without isolation, two sales users selling the last 5 units at the same moment would both succeed and stock would go negative.
Durability: saved means saved
Results are not lost in a failure. InnoDB uses a redo log during crash recovery to replay incomplete transactions (MariaDB). That is not a backup plan, though. IBM notes that OLTP systems need frequent and incremental backups, so ask where the backups go and when a restore was last tested.
The honest limit: not everything happens in the same instant
Some follow-up work is deliberately done later. A backdated stock entry creates a Repost Item Valuation job, "processed in the background by scheduled jobs", to recalculate later entries (ERPNext documentation). A large POS closing runs in a background job too. So the original transaction is atomic, but its knock-on effect on later valuations arrives a little afterwards. A report read during a repost can show interim numbers. Worth knowing, and rarely said.
Examples
What are examples of a transaction processing system?
Five everyday examples show five different sides of a TPS.
Sales order to invoice
Payroll
Inventory and stock movement
Banking and payments
Bookings and reservations
If stock and accounts disagree, nothing built on top can be trusted. That is why we treat accounts and inventory as the backbone when we set up ERPNext.
TPS vs MIS vs DSS
How is a TPS different from MIS and DSS?
A TPS records what happened. A management information system (MIS) summarises it into regular reports. A decision support system (DSS) helps decide what to do next. They are layers on the same data, and the upper two are only as good as the TPS underneath.
| TPS | MIS | DSS | |
|---|---|---|---|
| Purpose | Record each transaction correctly | Regular summaries for control | Support a specific decision |
| Users | Clerks, cashiers, accountants, sales | Middle managers | Senior managers, analysts |
| Data | Detailed, current | Summarised from the TPS | TPS and MIS data plus outside data and models |
| Example | Sales Invoice, Payroll Entry | Monthly sales by region, receivables ageing | What-if on pricing or capacity |
| Database load | Many small writes (OLTP) | Reads | Heavy reads (OLAP) |
The OLTP and OLAP difference sits underneath: OLTP changes small amounts of data often and responds fast, while OLAP runs complex queries over many records and usually does not change data. In IBM's words, OLTP systems "often serve as a source of information for OLAP systems".
The order matters. Garbage in the TPS becomes polished garbage in the MIS. If managers review Excel exports instead of the system, people edit the export and two versions of the truth reach the top. Have management read reports from the system itself. A report that takes minutes to run is usually a design problem, in joins and filters, before it is a hardware problem.
ERP as a TPS
Is ERP a transaction processing system?
Yes
An ERP is an integrated transaction processing system for the whole business, with MIS-style reports built on the same data. The difference from separate point tools is that one entry updates every ledger it affects, inside one transaction.
ERPNext keeps three ledgers for different jobs: the General Ledger (debits and credits by account), the Payment Ledger (receivables, payables, allocations) and the Stock Ledger (quantity and value by item and warehouse). One submitted document writes to whichever apply. A Purchase Receipt followed by a Purchase Invoice clears "Stock Received But Not Billed", so the same receipt is not capitalised twice (ERPNext documentation). Every re-entry is a chance for two numbers to disagree.
Draft, Submitted, Cancelled: the lifecycle is the TPS
Draft
Submitted
Cancelled
Amended
This lifecycle is what separates an ERP from a spreadsheet. A submitted record cannot be quietly edited.
Trace any number back to its transaction
Open the document, choose View > Accounting Ledger, check that debits equal credits, check the Stock Ledger if stock is involved, then follow it to the General Ledger and the financial statement. This drill-down is the practical test of a TPS. Every figure in a report should lead back to one document and one person.
Where ERPNext is not the whole answer
- Specialised systems stay specialised. High-volume consumer payment switching, core banking and airline inventory are their own transaction systems. An ERP records their results. It does not replace them.
- Shortcuts cost control. A direct Sales Invoice without a Sales Order "does not update a Sales Order's billed percentage". Take the shorter path only when you do not need the skipped step.
- Accounting has to live inside. If a company will not move its accounting into the ERP, it is not getting a TPS. It is getting another island.
When things go wrong
What happens when a transaction fails? Rollback and correction
A good TPS never fixes a mistake by erasing it. Technical failures are rolled back automatically before anything is saved. Business mistakes found after saving are corrected with a reversing transaction that leaves both the error and the fix visible.
Technical failure before commit
Business mistake after commit

Pick the right correction
| What went wrong | Correction |
|---|---|
| Draft is wrong | Edit or delete the draft |
| Submitted invoice is wrong | Cancel and amend, if the period allows |
| Customer returns goods | Return / Credit Note |
| Supplier return or rate fix | Debit Note |
| A journal needs reversing | Reverse Journal Entry |
| Source is correct but the ledger is stale | Repost Accounting Ledger |
Backdated entries are the hidden failure mode. A backdated stock entry changes later FIFO layers or moving-average rates, and so the later cost of goods sold. ERPNext handles permitted cases with a Repost Item Valuation job, and its documentation advises limiting reposts by item, warehouse or date, running them off-peak, and avoiding reposts in closed years because they "will change the closing balances". The control is a setting, "Role allowed to create/edit back-dated transactions" in Stock Settings. The best habit is simpler: enter transactions on the day they happen.
Audit trail
How does a TPS keep an audit trail?
An audit trail answers who did what, when, and what it looked like before. In a TPS it comes from three things together: locked submitted records, version history, and period locks that stop reviewed numbers from moving.
- Version history. Customize Form > Track changes turns on Document Versioning. Each change is logged with the field, time and user. For cancelled-and-amended documents, the Audit Trail tool compares up to 5 amended versions.
- Cancelled entries. The General Ledger hides cancelled rows by default. Tick Show Cancelled Entries to see originals and reversals.
- Period locks. An Accounting Period locks selected document types for a finished date range. Stock Settings adds "Stock frozen up to" and "Freeze stocks older than (days)", with a role that can override.

Deleting cancelled accounting documents needs a specific Accounts Settings option, and with Enable Immutable Ledger on, deleting is not possible at all (ERPNext documentation). When an existing system gives wrong numbers, the cause is usually in how transactions were set up and entered: tax setup, stock valuation that does not match the ledger, negative stock, an unreconciled bank. In our ERPNext work we audit the transactions first, then fix, then re-run the same checks monthly.
Choosing one
How do you choose a transaction processing system?
Most mid-size companies do not buy a "TPS". They choose an ERP, and the ERP's transaction core decides whether their numbers can be trusted. Test that core with failure cases, not with a happy-path demo.
Ten questions to ask in a demo
- 1Enter a saleWhich ledgers change, and can you show each one?
- 2Cancel itIs the original kept with a reversal, or deleted?
- 3Sell the last unit twiceTwo users sell the last unit at the same moment. What happens?
- 4Backdate a stock receipt by two weeksWhat recalculates, and who is allowed to do it?
- 5Close last monthWhat can still be changed, and by whom?
- 6Show who changed a priceWho changed the price on an order yesterday?
- 7Import 500 bank linesHow are they matched?
- 8Run payroll for one department onlyCan you select just that batch?
- 9Pull the plug mid-saveOr ask how it is handled. Is anything half-written?
- 10Ask about backupsWhere is the backup, and when was a restore last tested?
Batch, real-time or both
Map each process to the table above. Retail counters need real-time capture. Payroll and bank matching are naturally batch. One system that does both avoids an integration seam. For a mid-size company, volume is rarely the constraint. Data quality is. Ask about consolidation options like POS invoice consolidation only if your counters run high volume. With open-source software there is also no per-user fee, so adding a counter or a warehouse user is not a cost debate.
When an ERP is not the answer. If you need one high-volume, single-purpose TPS, such as card payments or ticketing, use a specialised product and post summaries to the ERP. And if the company will not put its accounting into the new system, the ERP will not become the single record. Fix that decision first.
Watch out
What common mistakes break a TPS?
Most TPS problems are not technical. They come from people working around the system: re-keying, backdating, editing exports, and allowing exceptions that turn into habits.
Negative stock "for now"
Journal entries instead of proper documents
Deleting data in a live system
Two systems, two truths
Wrong opening balances
Next step
What should you do next?
- 1Pick one transactionChoose a sale, a purchase or a payroll run in your business.
- 2Run the ten demo questionsAsk them of the system you use today, not of a vendor's demo.
- 3List the human checksWrite down every answer that is "a person checks it" instead of "the system stops it". That list is your starting point.
If you want sales, stock and accounts in one transaction system, our ERPNext team has worked on ERPNext since 2016, across 200+ projects in 15+ countries. Our ERPNext transaction audit reviews how your existing transactions were set up and entered. See our ERPNext services, read how receivables post in our accounts receivable guide, or browse the ERP insights section.
Sources
- IBM, What is online transactional processing (OLTP)?
- Oracle, What Is OLTP?, 1 Aug 2023
- MariaDB, InnoDB Introduction
- MariaDB, InnoDB overview
- Frappe Framework, Database API
- Frappe Framework, Audit Trail
- ERPNext documentation, How Transactions Affect the Ledger
- ERPNext documentation, Immutable Ledger
- ERPNext documentation, Cancel, delete or change Sales Orders and Invoices
- ERPNext documentation, Accounting Period
- ERPNext documentation, Document Versioning
- ERPNext documentation, POS Invoice Consolidation
- ERPNext documentation, Repost Item Valuation
- ERPNext documentation, Stock Settings
- ERPNext documentation, Bank Reconciliation
- Frappe HR documentation, Payroll Entry
- Coursedrill, What Is Transaction Processing System?, checked 30 Nov 2026




