E-commerce

How to Record COGS When an E-commerce Order is Fulfilled

Transferring inventory cost to Cost of Goods Sold at the moment of shipment or delivery.

Account NameTypeDebit ($)Credit ($)
Cost of Goods SoldExpense (+)45.00-
Merchandise InventoryAsset (-)-45.00

💡 Accountant's Note

COGS is recognized at the moment of sale (shipment / delivery). Each order fulfilled reduces inventory and increases the cost recognized on the income statement.

Practitioner & Systems Framework

💻 ERP Architecture

In a perpetual inventory system (standard for e-commerce), COGS is triggered automatically by each shipment event. The OMS dispatches the order, the WMS confirms the pick, and the ERP posts the inventory relief and COGS entry in one transaction. Use FIFO or WAC (Weighted Average Cost) consistently — the cost method determines which inventory layer is consumed. FIFO is most common for perishable or trend-sensitive goods.

⚠️ Audit Flags

Auditors reconcile COGS to inventory movements: opening stock + purchases − closing stock = COGS (the inventory roll). Discrepancies indicate either unrecorded purchases, unrecorded sales, shrinkage, or valuation errors. COGS timing is also tested — revenue and COGS must be recognized in the same period.

📄 Required Documentation

OMS shipment confirmation, WMS picking/dispatch record, inventory movement ledger showing the COGS entry per order, cost layer report (for FIFO: showing which units were consumed), and periodic gross margin analysis to identify cost anomalies.

Automate this entry with the JEH Accounting Suite

Stop doing manual entry. Our VBA-powered ERP automatically generates your ledgers, Trial Balance, and Financial Statements.

No Subscriptions. Own your data.

QA

Expert Analysis by Qusai Ahmad

General Accountant Supervisor & IFRS Specialist

Specialized in SAP GUI automation and Middle Eastern tax compliance. Building digital tools for the next generation of finance leaders.

LinkedIn Profile

Discussion & Community Questions