ERP by industry
Trading-company ERP: from purchase order to payment
A trading company ERP workflow joins buying and selling through stock: purchase order, goods receipt and supplier bill, then sales order, delivery, invoice and payment. In ERPNext each step is made from the one before, so stock, supplier balances and customer balances stay linked, even when an order ships in parts. Landed costs, detailed warehouses and sales commissions exist in standard ERPNext, but each needs its own setup, so treat them as fit-check items.
The trading company ERP workflow in one view
StarterKit sells ERPNext services, so we have a commercial interest in this topic. The workflow below uses standard ERPNext documents and a fictional company.
A trading company buys goods, holds them and sells them on, usually on credit. So the system has to answer three questions every day. What do we have? What do we owe suppliers? What do customers owe us? ERPNext answers them with two cycles that meet in the warehouse.
The ERPNext documentation lists wholesale and distribution as a good fit for the order, delivery, invoice and payment flow. It tells you to restock through a separate cycle of purchase order, purchase receipt, purchase invoice and payment.
Source: ERPNext documentation: accounting workflows by business type.
- Buy.Purchase Order, then Purchase Receipt, then Purchase Invoice, then a Payment Entry to the supplier.
- Hold.The goods sit in a warehouse at their stock value.
- Sell.Sales Order, then one or more Delivery Notes, then Sales Invoice, then a Payment Entry from the customer.
The orders post nothing to the accounts. The receipt, the deliveries, the invoices and the payments do, but only once each one is submitted. A saved draft changes nothing.
Source: ERPNext documentation: purchase cycle ledger impact.
Source: ERPNext documentation: selling cycle ledger impact.
Al Noor Office Furniture Trading LLC is a made-up Dubai trader. It buys office chairs from Gulf Seating Supplies FZE and sells them to Marina Design Studio. All names and amounts here are fictional. Prices exclude 5% VAT unless the VAT is shown.
New to the software? Start with what ERPNext is. If you sell services rather than stock, read the service-company version of this guide.
Step 1: Set up items, suppliers and customer prices
Every later record pulls details from these master records, so set them up first.
- Item. Tick Maintain Stock for goods you hold, so every transaction makes a stock ledger entry. Set a default warehouse so transactions pick it up.
- Units. Add extra units with a conversion factor, and set default buying and selling units. A trader can buy by the carton and sell by the piece.
- Valuation method. Stock is valued by FIFO (first in, first out) or moving average. The Stock Settings page also lists LIFO (last in, first out). FIFO is the default. Choose before the first transaction, because the documentation pages differ on how far it can be changed later.
Source: ERPNext documentation: Item.
Source: ERPNext documentation: Stock Settings, default valuation method.
Source: ERPNext documentation: change valuation method.
Customers and suppliers. Enter each one’s Tax Registration Number in the Tax ID field. On a customer, you can set a default price list, payment terms and a credit limit. ERPNext blocks the applicable transactions when what the customer owes goes over the limit.
Source: ERPNext documentation: UAE and KSA VAT setup.
Source: ERPNext documentation: Customer, credit limits.
Customer prices. ERPNext creates a Standard Buying and a Standard Selling price list. Add selling lists such as wholesale and retail, and tag a list to a customer so it is picked automatically. An item price can also be limited to one customer, with a minimum quantity and validity dates.
Source: ERPNext documentation: Price Lists.
Source: ERPNext documentation: Item Price.
For repeatable exceptions, such as a discount above a set quantity, use a Pricing Rule. For a one-off, edit the discount on the transaction. If two rules could match the same sale, decide which one wins before you go live.
Source: ERPNext documentation: Pricing Rule.
In the example, Al Noor buys chairs at AED 180 and sells them at AED 300 on a wholesale price list tagged to Marina Design Studio.
Step 2: Buy stock with a purchase order
The purchase order is your commitment to buy, with the supplier, quantity, rate and expected delivery date. Each line can carry its own required-by date. Several receipts and bills can cover one order, and ERPNext updates the percentage received and billed until it is complete. A submitted order shows To Receive and Bill and posts nothing to the accounts.
Source: ERPNext documentation: Purchase Order.
When the goods arrive, create a Purchase Receipt from the order. Put accepted quantities in the accepted warehouse and damaged goods in a rejected warehouse. Stock Settings has an allowance for receiving more than you ordered. The Stock Settings page says it is 0 by default. If the supplier will never send the balance, close the order.
Source: ERPNext documentation: Purchase Receipt.
Source: ERPNext documentation: Stock Settings, over-receipt allowance.
The receipt raises your stock and credits Stock Received But Not Billed, a holding account for goods you have but have not been billed for. When the bill arrives, create the Purchase Invoice from the receipt. It clears the holding balance and records what you owe. With VAT, the payable is the full bill and recoverable VAT goes to your tax account. Then pay with a Payment Entry of type Pay.
Source: ERPNext documentation: purchase cycle ledger impact.
| Step | Record | Effect (AED) |
|---|---|---|
| Order | Purchase Order for 100 chairs | No ledger entry. Order value 18,000 plus 900 VAT. |
| Goods arrive | Purchase Receipt for 100 chairs | Stock up 18,000. Stock Received But Not Billed up 18,000. |
| Bill arrives | Purchase Invoice from the receipt | Stock Received But Not Billed back to 0. Input VAT 900. Supplier payable 18,900. |
| Pay | Payment Entry, type Pay | Supplier payable back to 0. Bank down 18,900. |
If the goods and the bill arrive together, you can tick Update Stock on the purchase invoice and skip the receipt. Never do both for the same goods, or the stock is received twice.
Source: ERPNext documentation: Purchase Invoice, Update Stock.
Step 3: Sell, deliver in parts and collect
The sales order records what the customer confirmed, at the rates from the customer’s price list. It posts nothing.
When the first batch is ready, open the submitted order and choose Create, then Delivery Note. Keep only the lines you are shipping and enter the quantity going out. Do not change the ordered quantity to record a part delivery. ERPNext updates % Delivered on the order each time. Repeat for the next batch.
Each delivery note lowers stock and posts cost of goods sold at stock value, not at the selling price. Create the sales invoice from the delivery note so the quantities carry across. Record the money with a Payment Entry of type Receive. A part payment lowers the balance by what you allocate. An advance can stay unallocated and be matched later.
Source: ERPNext documentation: selling cycle ledger impact.
Source: ERPNext documentation: Payment Entry.
| Step | Record | Effect (AED) |
|---|---|---|
| Order | Sales Order for 40 chairs at 300 | No ledger entry. Order value 12,000 plus 600 VAT. |
| First delivery | Delivery Note for 25 chairs | Stock down 4,500 (25 at 180). Cost of goods sold 4,500. Order shows 25 of 40 delivered. |
| Invoice | Sales Invoice from the delivery note | Receivable 7,875. Sales 7,500. VAT 375. |
| Payment | Payment Entry, type Receive, 7,875 | Bank up 7,875. This invoice is fully paid. |
| Still open | The same Sales Order | 15 chairs to deliver and bill. Status stays To Deliver and Bill. |
Gross margin on the first delivery is AED 3,000: sales of 7,500 less a stock cost of 4,500, before other costs.
If the customer cuts the order, use Update Items and enter the new total quantity. If the customer drops the rest and you want the original order to stay visible, close it instead. Returns go through a Sales Return against the delivery note, and the money side through a credit note.
Source: ERPNext documentation: partial fulfilment of a Sales Order.
Our sales invoice tutorial covers invoices, payments and corrections in more detail.
Which steps can a small trader skip?
Several records are optional. The documentation’s advice is to ask what control you lose by skipping one, not only whether ERPNext allows it.
| If you skip | You no longer have |
|---|---|
| Sales Order | One place that shows ordered, delivered and billed quantities. |
| Delivery Note | A separate warehouse confirmation and proof of delivery. |
| Purchase Order | A commitment and approval before you buy, and ordered against billed tracking. |
| Purchase Receipt | A separate receiving check and the received-but-not-billed balance. |
A trader who hands over goods and bills at the same moment can use a sales invoice with Update Stock, so one record moves the stock and posts the sale. You lose the separate warehouse check and control over part deliveries. If your supplier ships straight to the customer, use the drop-ship flow instead. Those goods never enter your warehouse stock.
Source: ERPNext documentation: optional documents and drop-shipped sales.
Step 4: Check that stock and accounts agree
The stock report and the accounts must tell the same story. In a new ERPNext site, perpetual inventory is on by default, so every stock movement posts to the accounts and each warehouse links to an account.
Source: ERPNext documentation: perpetual inventory.
| Check | Where to look | Expected (AED) |
|---|---|---|
| Stock on hand | Stock Balance report and Stock Ledger | 75 chairs worth 13,500 (100 bought less 25 delivered, at 180). |
| Stock value against the stock account | Stock and Account Value Comparison report | No difference. |
| Goods received but not billed | Stock Received But Not Billed account | 0, because the supplier bill is posted. |
| What you owe the supplier | Accounts Payable report | 0 after the 18,900 payment. |
| What the customer owes | Accounts Receivable report | 0 for the first invoice. |
| Work still open | The Sales Order | 15 chairs to deliver and bill. |
Source: ERPNext documentation: Stock Ledger report.
Source: ERPNext documentation: Stock and Account Value Comparison.
Source: ERPNext documentation: Accounts Receivable and Payable.
If the stock account and the stock balance do not match, ERPNext stops the next transaction with a Value Out of Sync message and offers a journal entry to fix it. If the gap is large or unexpected, review recent records before you post that entry.
Source: ERPNext documentation: stock balance and stock account syncing.
A balance left in Stock Received But Not Billed usually means a receipt with no bill yet, a bill linked to the wrong receipt, a quantity or rate difference, a return or a backdated cancellation. Draft invoices never appear in the receivable or payable reports.
Source: ERPNext documentation: purchase cycle ledger impact, FAQ.
This article explains the documented workflow. The example uses a fictional company and arithmetic only. It was not run on a live system. To test it, use a separate demo company and confirm each step and each balance against the ERPNext version you plan to run.
Testing ERPNext before you commit? Run this flow as one of the tasks in our ERPNext trial checklist.
Fit-check items: landed costs, warehouses and commissions
These three features exist in standard ERPNext. That does not mean they are set up for you. Each needs decisions, data and testing, and some businesses need custom rules on top.
| Feature | What standard ERPNext does | Questions to answer first |
|---|---|---|
| Landed costs | Freight, duty and insurance can go on the purchase receipt, or be added later with a Landed Cost Voucher. It spreads the charges by quantity or amount, updates stock value and reposts cost of goods sold for goods already delivered. | Who records customs and freight bills, and when? Spread by quantity or by value? |
| Warehouses | Warehouses can form a tree, down to room, row, shelf and bin. Stock balance is kept for each item in each warehouse, and each warehouse links to an account. | Shelf-level detail or just sites? Who posts transfers between locations? |
| Sales commissions | A sales person can carry a default commission rate. A sales partner’s commission is calculated on sales transactions. | Paid on invoiced or collected sales? Through payroll or a supplier bill? |
Source: ERPNext documentation: Landed Cost Voucher.
Source: ERPNext documentation: Warehouse.
Source: ERPNext documentation: Sales Person.
Commissions need the most care. The documentation says a sales partner’s commission does not create an expense, a payable or a payment by itself, and a sales person’s share of a sale does not calculate a payroll incentive. The payout process is yours to define.
Source: ERPNext documentation: Sales Partner.
Source: ERPNext documentation: Sales Persons in transactions.
StarterKit sells ERPNext services. Our plan includes access to all ERPNext modules, and our terms say that module access does not mean every module is configured for you. Custom development, complex migration and extra companies need an agreed scope. Ask any supplier, us included, which of these items are in the written scope. For the full cost picture, see the real cost of ERP for a small UAE company and is ERPNext free?
Where UAE VAT and e-invoicing fit
ERPNext’s UAE setup provides default tax templates for 5% VAT, zero-rated and exempt supplies. A tax code set on the item is fetched into sales and purchase invoices.
Source: ERPNext documentation: UAE and KSA VAT setup.
Your sales invoices will also feed UAE e-invoicing. The Ministry of Finance describes an e-invoice as structured invoice data exchanged between supplier and buyer and reported to the FTA, and says a PDF is not an e-invoice. The exchange runs through an accredited service provider that you appoint. Standard ERPNext has UAE VAT features but no UAE e-invoice exchange of its own, so the connection is separate work. See how ERPNext e-invoicing works in the UAE.
Government source: Ministry of Finance: eInvoicing.
For an in-scope business with revenue below AED 50 million, the rule is to appoint a provider by 31 March 2027 and implement e-invoicing by 1 July 2027. Our deadline guide covers the other groups, and the UAE e-invoicing guide explains the whole system.
Government source: Ministerial Decision No. 244 of 2025, Article 5(1)(b).
Prepared by the StarterKit team. Regulatory statements link to UAE government sources. Examples and suggested work plans are labelled separately; they do not determine your business’s legal or tax position. Check the linked decisions for the full conditions and later changes.