Create inter-company invoices ​

When one of your companies sells to another company in the same ERPNext site, both companies record the sale: a Sales Invoice in the seller's books and a Purchase Invoice in the buyer's books. ERPNext creates one from the other, so you enter the transaction once.

Prerequisites ​

  • Both companies, with their charts of accounts.
  • The Items, units, taxes, warehouses, and accounts for both companies.

Set up the internal parties ​

  1. In the selling company, create a Customer for the buying company. Select Is Internal Customer, set Represents Company to the buying company, and add the selling company in Allowed to transact with.
  2. In the buying company, create a Supplier for the selling company. Select Is Internal Supplier, set Represents Company to the selling company, and add the buying company in Allowed to transact with.
  3. Save both.

Use a separate internal customer and supplier for each pair of companies.

Create the purchase invoice from the sales invoice ​

  1. In the selling company, create and submit a Sales Invoice to the internal customer.
  2. Select Create > Inter Company Purchase Invoice.
  3. ERPNext opens a Purchase Invoice for the buying company. Check the expense accounts, warehouses, taxes, and cost centers. They belong to the buying company and can differ from the seller's.
  4. Submit the Purchase Invoice.

Create the sales invoice from the purchase invoice ​

You can also start in the buying company. On a submitted Purchase Invoice from the internal supplier, select Create > Inter Company Invoice. Check and submit the Sales Invoice in the selling company.

Use one direction for each transaction. If you create both invoices by hand, ERPNext records the trade twice.

Things to check ​

  • Taxes: the buyer's tax treatment can differ from the seller's. Check the tax template and accounts on the target invoice.
  • Stock: the invoice pair does not move stock unless Update Stock is selected. Use your normal delivery and receipt documents for physical goods.
  • Cancellation: the two invoices are separate documents. If you cancel or amend one, correct the other too.
  • Balances: run the receivable and payable reports for both companies. The balances should match, except for timing, currency, and payments.

Inter-company invoices do not consolidate your companies. Consolidation is a separate accounting task.

Troubleshooting ​

ProblemCause and fix
The inter-company option is missingThe invoice is not submitted, the party is not marked internal, or a counterpart invoice already exists.
The target invoice uses the wrong companyCheck Represents Company on the internal customer or supplier.
The two companies' balances differLook for a cancelled counterpart, a credit note on one side only, or a currency difference.