Posting rules: which ledger invoices post to
Example. When the Pune company was created, it got a Sales Invoice posting rule for All Categories (default rule) pointing at its system revenue ledger. Every sales invoice credits its net amount there. The company wants revenue in a new ledger, Domestic Sales. The person who created the Pune company (the default rules belong to them) opens the rule with Show More → Edit, chooses Domestic Sales as the Ledger and clicks Update. From then on, new sales invoices credit Domestic Sales. Invoices saved earlier stay as they were.
A posting rule tells the ERP which ledger a document's value goes to when the document is saved. For a Sales Invoice, the net amount (before tax) is credited to the rule's income ledger. For a Purchase Invoice, it is debited to the rule's expense ledger. Credit Notes and Debit Notes use their own default rules in the same way: a credit note posts to an income ledger (for example sales returns) and a debit note to an expense ledger. Taxes go to the ledgers on each tax rate (see Set up taxes and charges), and the customer or vendor side goes to the party's own ledger (or to the Company's Accounts Receivable or Accounts Payable ledger when the party has none).
Each Company has its own posting rules. When a Company is created, default rules (category All Categories (default rule)) are created for you, for sales invoices, purchase invoices, credit notes, debit notes and a few other document types, pointing at that Company's own system ledgers. They are recorded as created by the person who created the Company. Most companies never need to change them.
Before you start#
✅ Before you start
0/3 readyWhere to find it#
Open Masters → Posting Rule. The card shows only if your role can read posting rules. The Posting Rules list shows Event Type, item Category, Ledger, Created By and Status. Filter it by Status (Active or Cancelled), Event Type and Created By. Cancelled rules are shown in red.
Step by step#
Check the existing rules
📍 Posting Rules → ViewView Posting Rule shows the Event Type, Item Category, Ledger (name and code), Created By, Created On and Status. A rule created for you may show System Revenue Ledger or System Expense Ledger as its ledger. The Audit Log tab lists every change.
Create a rule
📍 Posting Rules → Create Posting RuleChoose the Event Type: Sales Invoice, Credit Note, Purchase Invoice or Debit Note. Under Ledger Entries, click Add Row and pick an Item Category and a Ledger for each row. Choose All Categories (default rule) for the rule that invoices use. Every row needs both boxes filled in. A category already used in another row isn't offered again. Picking a category that already has an active rule shows Category already exists for this event type under the row, and Create stays disabled. To give several rows the same ledger, tick them, pick the ledger in the yellow bar and click Apply. Click Create (it stays disabled until there is at least one row). Each row becomes its own Active rule.
Change the ledger of a rule
📍 Posting Rules → Show More → EditEdit is enabled only for the person who created the rule, and not for a cancelled rule; others see it greyed out with the tooltip Only the creator or designated users can update this entry. On Update Posting Rule, the Event Type can't be changed. Change the Item Category or Ledger and click Update. Invoices saved after this use the new ledger; earlier invoices and their journals don't change.
Cancel a rule you no longer need
📍 Posting Rules → View → CancelIn Cancel Posting Rule, read the warning Once cancelled, this posting rule cannot be used. You may create a new rule if required., enter the Reason For Cancellation (required before Proceed works) and click Proceed. The rule becomes Cancelled and can't be edited or used again. Only the rule's creator can cancel it; others see Cancel greyed out with Only the creator or designated users can cancel this entry.
How invoices use posting rules#
- In this version, only the All Categories (default rule) row is used when an invoice, credit note or debit note is saved. Rows for a single item category are kept, but documents don't read them.
- Each Company can have one active rule per event type and category. To change a default rule, edit it rather than creating a second one. If you didn't create the default rule and its creator is no longer available, cancel isn't open to you either; ask the person who created the Company.
- If Enable Ledger Posting is on and the Company's active Sales Invoice default rule is missing or cancelled, sales invoices can't be saved until you create one with All Categories (default rule) and the Company's sales revenue ledger. Purchase invoices likewise need an active Purchase Invoice default rule while ledger posting is on. With ledger posting off, invoices save without a posting rule.
- Sales Invoice and Credit Note rules offer only Income ledgers; Purchase Invoice and Debit Note rules offer only Expense ledgers. A rule's ledger must be an active ledger of the same Company, and a Sales Invoice rule can't point at a customer's debtor ledger.
- Posting rules have no approval and don't change stock. Whether invoices create journal entries at all follows Enable Ledger Posting in App Settings.
Statuses: Active (used by invoices if it's the default rule) and Cancelled (kept for history, never used).