Sales Invoice & Accounting Flow in ERPNext
A Sales Invoice is the core accounting document in ERPNext used to bill customers and record income. It directly impacts the General Ledger by updating receivables, income, and tax liabilities.
On submission of a Sales Invoice, ERPNext automatically creates accounting entries for receivables, income, and taxes using double-entry accounting principles.
Access Path
Home > Accounting > Accounts Receivable > Sales Invoice
1. Prerequisites
Before creating a Sales Invoice, ensure:
- Item master is created
- Customer master is created
- Optional: Sales Order / Delivery Note
2. How Sales Invoice Works
ERPNext allows Sales Invoice creation in two ways:
- From Sales Order or Delivery Note (recommended)
- Direct manual entry (POS or standalone billing)
The system fetches item details, pricing, and taxes automatically if configured.
3. Items & Stock Handling
Each item row contains:
- Item Code & Description
- Quantity & Rate
- Warehouse (stock source)
- Batch / Serial numbers
- Discount & Margin
If Update Stock is enabled, stock ledger is updated directly from the invoice.
4. Taxes & Charges System
ERPNext tax system works in multiple layers:
- Sales/Purchase Tax Templates
- Tax Rules (automation)
- Tax Category (grouping)
- Item Tax Template (item-level override)

Tax Calculation Types
- Actual (fixed amount)
- On Net Total
- On Previous Row Amount
- On Previous Row Total
- On Item Quantity
5. Tax Rule Automation
Tax Rules automatically apply correct tax templates based on:
- Customer / Supplier
- Item / Item Group
- Address (State / GST rules)
- Tax Category
6. Chart of Accounts Impact
Each Sales Invoice affects:
- Debit: Customer (Receivable)
- Credit: Income Account
- Credit: Tax Liability Account
7. Opening Entry Concept
When migrating systems:
- Opening balances are imported using Journal Entry or Opening Invoice Tool
- Only Balance Sheet accounts are included
- Temporary Opening account must become zero after migration
8. Finance Book Concept
ERPNext supports multiple accounting books:
- Main financial book (statutory reporting)
- Internal management book
- Tax-specific reporting book
9. Chart of Accounts Structure
The Chart of Accounts defines:
- Assets (Cash, Bank, Receivables)
- Liabilities (Loans, Payables, Taxes)
- Income (Sales, Services)
- Expenses (Salary, Rent, Operations)
10. Summary
ERPNext Sales Invoice is a complete accounting engine that automatically posts financial entries, manages tax computation, updates stock, and ensures real-time financial reporting using double-entry accounting principles.