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.

A sale slip passing under a COMMIT stamp that presses the accounts, payments and stock ledgers at once, with a rollback arrow for a failed slip
Published 16 min read
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).

1

A business transaction

The event itself: a customer buys 10 units.

2

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.

  1. 1
    CaptureData 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.
  2. 2
    ValidateThe 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.
  3. 3
    ProcessThe 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.
  4. 4
    Store (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).
  5. 5
    OutputThe 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.

QuestionBatchReal-time
Does someone wait for the result?No (payroll, statements)Yes (checkout, booking, stock check)
VolumeVery high and uniformAny, but each must be fast
Must others see it at once?NoYes (stock, seat, balance)
How are mistakes corrected?Before the batch is submittedCancel and reverse afterwards
ERPNext examplePayroll Entry, POS closing, bank statement importSales 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.

Payroll Entry in Frappe HR with the Get Employees button for selecting the employees in a payroll batch
Payroll Entry with Get Employees, which selects the batch. Source: Frappe HR documentation

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 Projected Qty report in ERPNext with the Reserved for POS Transactions column
Stock Projected Qty report with the Reserved for POS Transactions column. Source: ERPNext documentation (Frappe), POS Invoice Consolidation

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).

1

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.

2

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.

3

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.

4

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

Quotation (no ledger effect), Sales Order (a commitment), Delivery Note (stock and cost), Sales Invoice (income, tax, receivable), Payment Entry (bank and party). Orders drive operations. Invoices and payments change the books.

Payroll

Payroll Entry, salary slips, one accrual Journal Entry, one bank entry. Companies issue a single payment to the bank, so only one payment line sits in the books and people with accounts access do not see individual salaries.

Inventory and stock movement

A Purchase Receipt, Delivery Note or Stock Entry each write a Stock Ledger Entry with quantity, rate and stock value by item and warehouse. With perpetual inventory, each move also posts to the General Ledger, so the accounts match the stock report.

Banking and payments

An ATM withdrawal and a card payment are the standard real-time cases. Inside a company, a Payment Entry posts at once, and Bank Reconciliation later matches imported bank lines to vouchers in batches. One process, both types.

Bookings and reservations

Airline and hotel systems exist because one seat or room can only be sold once. The business parallel is Stock Reservation, which sets a quantity aside for a sales order, so sales only promise what is really available.

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.

TPSMISDSS
PurposeRecord each transaction correctlyRegular summaries for controlSupport a specific decision
UsersClerks, cashiers, accountants, salesMiddle managersSenior managers, analysts
DataDetailed, currentSummarised from the TPSTPS and MIS data plus outside data and models
ExampleSales Invoice, Payroll EntryMonthly sales by region, receivables ageingWhat-if on pricing or capacity
Database loadMany small writes (OLTP)ReadsHeavy 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

Editable, no ledger effect.

Submitted

Posted and locked.

Cancelled

Reversed, kept for history.

Amended

A new version, with a -1 suffix, of a cancelled document.

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

In Frappe, any uncaught error during a request rolls back the whole transaction, and background jobs and patches behave the same way (Frappe documentation). One warning for custom code: if it catches an exception and carries on, the framework does not know that something has gone wrong, and the developer is responsible for the rollback. That is a common cause of half-saved data in custom apps.

Business mistake after commit

Cancel keeps the original debit and credit and adds opposite rows for the same voucher. Amend opens a draft copy of the cancelled document with a -1 suffix. A cancelled document cannot be made active again, and dependent documents are cancelled first, newest first: Payment Entry, Sales Invoice, Delivery Note, Sales Order.
General Ledger rows in ERPNext showing an original entry and its reversal for a cancelled Journal Entry
Original and reversal General Ledger rows for a cancelled Journal Entry. The combined effect is zero, but the audit trail shows what was posted and how it was cancelled. Source: ERPNext documentation (Frappe), Immutable Ledger

Pick the right correction

What went wrongCorrection
Draft is wrongEdit or delete the draft
Submitted invoice is wrongCancel and amend, if the period allows
Customer returns goodsReturn / Credit Note
Supplier return or rate fixDebit Note
A journal needs reversingReverse Journal Entry
Source is correct but the ledger is staleRepost 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.
ERPNext Stock Settings, Stock Closing tab, with frozen dates and the role allowed to edit back-dated transactions
Stock Settings, Stock Closing tab. Source: ERPNext documentation (Frappe), Stock Settings

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

  1. 1
    Enter a saleWhich ledgers change, and can you show each one?
  2. 2
    Cancel itIs the original kept with a reversal, or deleted?
  3. 3
    Sell the last unit twiceTwo users sell the last unit at the same moment. What happens?
  4. 4
    Backdate a stock receipt by two weeksWhat recalculates, and who is allowed to do it?
  5. 5
    Close last monthWhat can still be changed, and by whom?
  6. 6
    Show who changed a priceWho changed the price on an order yesterday?
  7. 7
    Import 500 bank linesHow are they matched?
  8. 8
    Run payroll for one department onlyCan you select just that batch?
  9. 9
    Pull the plug mid-saveOr ask how it is handled. Is anything half-written?
  10. 10
    Ask 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"

ERPNext allows it globally or per item, mainly for late weekend or month-end entry. Left on, it hides missing receipts and gives wrong valuation. Use it per item and for a defined reason.

Journal entries instead of proper documents

The documentation warns against replacing a Sales Invoice, Purchase Invoice or Payment Entry with a generic Journal Entry merely to save time. The specialised document carries parties, taxes, items, due dates and stock behaviour.

Deleting data in a live system

Delete is for test data only, never for real transactions. Never delete General Ledger or Stock Ledger rows through the database or the API.

Two systems, two truths

Sales in one tool, accounts in another, stock in a sheet: each is a partial TPS, and nobody can reconcile them at month end. Bring every flow you can into one system and review the numbers there.

Wrong opening balances

Every later report inherits them. Fix openings before go-live and before anyone builds reports on top.

Next step

What should you do next?

  1. 1
    Pick one transactionChoose a sale, a purchase or a payroll run in your business.
  2. 2
    Run the ten demo questionsAsk them of the system you use today, not of a vendor's demo.
  3. 3
    List 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.

Talk to our Experts

Ready to Scale with Smart Tech? Let's Talk.

Transform your business processes with AI-powered automation and expert implementation.

200+ projects since 2016
Questions buyers ask

Frequently Asked Questions

Find answers to common questions about our services

What is a transaction processing system?

A transaction processing system (TPS) records each business event, such as a sale, payment, goods receipt or salary run, completely and correctly when it happens. It validates the entry, updates every affected record together, and keeps it permanently, so reports and decisions built on it can be trusted. POS terminals, payroll runs, banking systems and ERPs all contain one.

What are the two main types of transaction processing?

Batch processing and real-time (online) processing. Batch collects transactions and processes them together, as in payroll or end-of-day posting. Real-time processes each transaction at once, as in a card payment or a stock-updating invoice. Many systems mix both: ERPNext POS captures each sale instantly but can post one consolidated invoice per session.

What are the four types of transactions?

There is no single standard list, so the answer depends on the course or field. Accounting courses often group transactions as cash, credit, internal and external. Business-systems courses group them by cycle, such as sales, purchasing, production and payroll. Database courses instead mean the four ACID properties every transaction must meet.

What is an example of a TPS?

A supermarket checkout is the easiest example: each scan is captured, the total and tax are worked out, payment is taken, stock is reduced and a receipt is printed, all as one transaction. Other examples are payroll runs, ATM withdrawals, airline seat bookings and an ERP sales invoice that updates accounts, stock and receivables together.

What is a payment processing system?

A payment processing system is a specialised TPS that moves money between a payer and a payee, for example card payments, UPI or bank transfers. It authorises the payment, records it and settles it between banks. A business ERP does not replace it; it records the payment received or made and later matches it against bank statement lines.

What is an example of processing data immediately?

An ATM withdrawal: the balance must drop the moment cash is dispensed, or the same money could be withdrawn twice. Online seat booking and card payments work the same way. In a business system, a stock-updating sales invoice that reduces available stock at submit is real-time processing.

Is ERP a transaction processing system?

Yes. An ERP is an integrated TPS for the whole business. One submitted document, such as a sales invoice, updates the general ledger, the payment ledger and the stock ledger together. Its reports then act as the management information layer on top of that same transaction data.

What is the difference between TPS and MIS?

A TPS records individual transactions as they happen and is used by clerks, cashiers and accountants. An MIS summarises that data into regular reports, such as monthly sales or receivables ageing, for managers. An MIS can only be as accurate as the TPS feeding it.

What does ACID mean in transaction processing?

ACID stands for atomicity, consistency, isolation and durability. A transaction is saved completely or not at all, never breaks the system's rules, is not disturbed by other users working at the same time, and stays saved after a crash. Databases such as MariaDB InnoDB, used under ERPNext, provide these guarantees.