The firm opens soon. Guides and calculators are already free to use —get notified when we open
Accounting

Inventory and the CGNC: Stocktake, Valuation, Year-End Entries and Write-Downs

How to account for and value inventory in Morocco: detailed stocktake, average cost or FIFO, 3111/6114 entries, 3911 write-down, and comparative worked example.

Published 10 min readLevel: IntermediateEl Arabi Aich

In brief
  • At the end of each financial year, businesses must draw up a detailed inventory, in quantities and values, of their goods, materials, and products (General Tax Code (CGI), art. 145-II).
  • Fungible goods are valued at weighted average acquisition or production cost, or on a first-in, first-out (FIFO) basis; the method cannot change from one year to the next without justification (Law 9-88, art. 13 and 14).
  • Under periodic inventory accounting, opening stock is cleared through account 6114 “Change in inventories of goods for resale” and closing stock is recognised by crediting the same account.
  • An impairment loss on stock is recorded through a write-down provision: debit account 6196, credit account 391.

Inventory is the balance sheet line where year-end errors most commonly concentrate: rough counts, unreceived supplier invoices, goods in transit, or damaged items still carried at purchase cost. Yet it flows directly into profit: every additional dirham of closing stock reduces expenses by one dirham. Here is the complete method, from counting to journal entries.

What the Rules Say

Three legal texts govern inventory accounting in Morocco.

  • The stocktake: at the end of each financial year, the business draws up detailed inventories, in quantities and values, of goods, miscellaneous products, packaging, and consumables purchased for resale or for operating needs (General Tax Code (CGI), art. 145-II). Taxpayers under the simplified net income regime are also subject to this requirement (art. 145-VI).
  • Initial recognition: goods acquired for consideration are recorded at acquisition cost, and manufactured goods at production cost (Law 9-88, art. 14).
  • Issues and closing valuation: fungible goods are valued either at their weighted average acquisition or production cost, or by assuming that the first item issued is the first item received (FIFO) (Law 9-88, art. 14). The valuation methods adopted must not be changed from one financial year to another; if they change, the modification is described and justified in the notes to the financial statements (ETIC) (art. 13).

Individuals taxed under the simplified regime may also estimate their inventory from selling price less standard mark-up, or from an estimated cost (art. 14).

Entry Cost: What Is Included

Element Included in cost?
Purchase price excluding recoverable taxes Yes
Customs duties, carriage inwards, transit insurance, receiving charges Yes
Trade discounts and rebates obtained (RRR) Deducted
Recoverable VAT No
Storage costs after receipt, selling expenses No
Borrowing costs In principle no (special treatment for long production cycles)

For a manufactured item, production cost comprises materials consumed, direct labour, and a reasonable allocation of production overheads; general administrative expenses and selling expenses are excluded.

The Two Costing Methods on a Worked Example

A merchant tracks one product line. Below are the movements during the financial year.

Date Movement Quantity Unit price Value
1 January Opening stock 100 50 5,000
March Purchase 200 55 11,000
April Sale (issue) 150
September Purchase 100 60 6,000
November Sale (issue) 120

Quantity in stock at 31 December: 100 + 200 − 150 + 100 − 120 = 130 units.

Period-End Weighted Average Cost (WAC / CMUP)

Total cost (opening stock + purchases) is divided by total quantities available: (5,000 + 11,000 + 6,000) / (100 + 200 + 100) = 22,000 / 400 = 55.00. Closing stock is worth 130 × 55 = 7,150.

Moving Weighted Average Cost After Each Receipt (Perpetual Inventory)

  • After the March purchase: 300 units for 16,000, i.e., 53.33; the April issue of 150 units brings stock down to 150 units × 53.33 = 8,000.
  • After the September purchase: 250 units for 8,000 + 6,000 = 14,000, i.e., 56.00; the November issue of 120 units leaves 130 × 56 = 7,280.

First-In, First-Out (FIFO)

Issues draw first from the oldest batches. After April, 150 units at 55 remain; after September, 150 at 55 and 100 at 60; the November issue takes 120 units at 55. What remains is 30 units at 55 and 100 units at 60: 1,650 + 6,000 = 7,650.

Comparison

Method Closing stock Cost of goods sold (22,000 − closing stock)
Period-end weighted average cost 7,150 14,850
Weighted average cost after each receipt 7,280 14,720
First-in, first-out (FIFO) 7,650 14,350

On the exact same physical flow, profit varies by MAD 500 depending on the method, because prices rise during the year. The method is not neutral: choose it once, document it, and keep it consistent.

Journal Entries under the CGNC

The Moroccan chart of accounts (CGNC) separates inventory balances (class 3) from inventory changes (accounts 6114 for goods for resale, 7131 and 7132 for manufactured products). The accounting mechanism prescribed for goods for resale is as follows:

  1. At the start of the financial year, the opening inventory account (3111 for Group A goods for resale) is credited to clear it, against a debit to account 6114 “Change in inventories of goods for resale”. The previous year’s closing stock thus becomes an expense of the current year.
  2. At year-end, following the physical stocktake, the inventory account is debited for the closing stock amount, against a credit to account 6114.
  3. The balance of account 6114 is the change in inventory: the difference between opening stock and closing stock. It may be a debit, credit, or zero balance, and appears in the income statement (CPC) as an adjustment to purchases.

Using our FIFO example, with purchases of goods for resale of MAD 17,000 posted to account 6111 (“Purchases of goods for resale”):

Account Debit Credit Description
6114 Change in inventories of goods for resale 5,000 Reversal of opening stock
3111 Goods for resale (Group A) 5,000
3111 Goods for resale (Group A) 7,650 Recognition of closing stock
6114 Change in inventories of goods for resale 7,650

Account 6114 has a credit balance of 2,650: inventory increased. Cost of goods sold reads as: purchases 17,000 − inventory change 2,650 = 14,350, matching the comparison table above.

For raw materials and consumables, the equivalent accounts are 3121 and 3122 (inventories) and account 6124 “Change in inventories of raw materials and consumables”. For manufactured goods, finished goods stock (3151) is adjusted through change accounts 7131 (work in progress) and 7132 (finished goods).

Perpetual inventory accounting, which tracks every individual movement, belongs to cost accounting (class 9, account 94); it does not feed directly into the statutory financial statements but greatly eases reconciliation with the physical stocktake.

Inventory Write-Downs (Impairment)

At the inventory date, the current value of stock is compared with its entry cost. Only unrealised losses are recognised, through a write-down provision where the loss is not permanent (Law 9-88, art. 14).

Provisions for write-down of inventories (3911 for goods for resale, 3912 for raw materials and consumables, 3915 for finished goods) are created or increased by debiting account 6196 “Operating charges to provisions for impairment of current assets” (account 61961 for inventories), and reduced or reversed by crediting account 7196 “Reversals of provisions for impairment of current assets”.

Example: the 30 units at 55 (MAD 1,650) can now only be sold for 40: probable loss of 30 × 15 = MAD 450.

Account Debit Credit
61961 Operating charges to provisions for inventory impairment 450
3911 Provisions for write-down of goods for resale 450

If, in the following year, those units are sold at 52, the provision is no longer required and is reversed: debit 3911, credit 7196. The tax treatment of this provision (deductibility and substantiation) is covered in the article on tax-deductible provisions.

Step-by-Step Year-End Procedure

  1. Freeze movements during counting, or log any receipts and dispatches occurring during the count.
  2. Count in pairs using pre-numbered count sheets; recount material variances.
  3. Value each item using the chosen costing method.
  4. Reconcile physical stock with book stock; explain every significant variance.
  5. Check cut-off: goods received without an invoice (accrue), goods invoiced not yet dispatched (exclude from buyer’s or seller’s stock as appropriate), goods in transit (account 3116).
  6. Segregate obsolete, damaged, or unsaleable items: write them down or scrap them.
  7. Post the inventory change and write-down journal entries.
  8. Archive the signed inventory list, count sheets, and valuation schedules in the closing file.

Handling Stocktake Variances: An Example

During the year-end physical stocktake, comparing book stock (accounting records) against counted stock reveals variances.

SKU Book stock (units) Counted stock (units) Variance (units) Unit cost (MAD) Variance value (MAD)
A-101 480 470 −10 120 −1,200
B-215 90 92 +2 450 +900
C-330 1,200 1,150 −50 18 −900
D-402 35 35 0 2,600 0
E-518 60 52 −8 340 −2,720
Total −3,920

The net shortage is MAD 3,920. After investigation (posting errors, unrecorded deliveries, breakage, shrinkage), the variance is recognised in the financial year:

Account Debit Credit
6111 Purchases of goods sold (inventory change, or variance account) 3,920
3111 Goods for resale (adjusting stock to counted value) 3,920

Large or recurring variances on a SKU (E-518: 8 units, 13% of stock) should be investigated: stock management errors, theft, or wrong unit of measure. An inventory variance report signed by the warehouse manager and the accountant serves as a key internal control record.

Comparing WAC and FIFO on a Second Case

An item experiences the following movements:

Date Movement Quantity Unit price (MAD)
1 January Opening stock 100 50
15 February Purchase 200 56
10 May Sale (issue) 150
20 September Purchase 100 62
15 November Sale (issue) 120

Closing stock: 100 + 200 − 150 + 100 − 120 = 130 units.

FIFO (first-in, first-out):

  • 10 May issue: 100 at 50 + 50 at 56 = 5,000 + 2,800 = 7,800.
  • 15 November issue: 120 units from the remaining 150 of the 15 February batch (at 56) = 6,720.
  • Closing stock: 30 at 56 + 100 at 62 = 1,680 + 6,200 = 7,880.

Period-end WAC (CMUP) (weighted average cost across all receipts):

  • Average cost = (100 × 50 + 200 × 56 + 100 × 62) ÷ 400 = (5,000 + 11,200 + 6,200) ÷ 400 = 22,400 ÷ 400 = 56.
  • Issues: (150 + 120) × 56 = 15,120.
  • Closing stock: 130 × 56 = 7,280.
Method Cost of sales Closing stock Total
FIFO 7,800 + 6,720 = 14,520 7,880 22,400
WAC (CMUP) 15,120 7,280 22,400

In a rising-price environment, FIFO places a higher value on closing stock (7,880 versus 7,280) and lowers cost of sales: profit is MAD 600 higher. The chosen method must stay consistent from year to year (consistency principle), and its effect must be disclosed in the notes if it changes.

Stock Held by Third Parties or on Consignment

Situation Treatment
Goods on consignment with a customer Remain in the consignor’s inventory until sold; tracked via a consignment schedule and confirmed at year-end
Goods in transit at year-end Included in inventory if transfer of ownership has occurred (per the Incoterm)
Third-party stock held on the company’s premises (consignment received) Excluded from inventory; tracked off-balance-sheet
Returnable packaging Tracked separately and valued under the applicable rules

The stocktake must cover these cases in the counting plan: list of storage sites, third-party custodians, and confirmations to be obtained.

Frequently Asked Questions

Is stock valued excluding or including VAT? Excluding VAT: deductible VAT does not form part of cost.

Must slow-moving stock be written down? Yes, if its net realisable value is below cost; the policy (ageing, lack of movement) must be written and applied consistently.

Does perpetual inventory remove the need for a physical stocktake? No: a year-end physical stocktake remains mandatory to verify book quantities.

Does packaging cost enter into inventory cost? Non-returnable packaging forms part of the production or purchase cost of goods sold; returnable packaging follows separate accounting rules.

Common Mistakes

  • Missing cut-off: an unrecorded December purchase distorts both inventory and profit.
  • Valuing at selling price: stock is stated at cost, never at selling value (except where permitted under the simplified regime).
  • Switching methods to boost profit without justification.
  • Leaving obsolete items at their original cost.
  • Mixing third-party stock (goods held on consignment for others) with own inventory.
  • Counting without dating: a stocktake without a count date proves nothing.

Frequently asked questions

Which valuation method should I choose: weighted average cost or FIFO?

Law 9-88 permits both for fungible goods. Weighted average cost smooths price fluctuations and is simple to compute; first-in, first-out (FIFO) values closing stock at the most recent prices. The choice must remain consistent from one financial year to the next: any change must be disclosed and justified in the notes to the financial statements (ETIC).

Is a physical stocktake mandatory?

Yes: taxpayers must draw up at the end of each financial year detailed inventories, in quantities and values, of goods, miscellaneous products, packaging, and consumables purchased for resale or for operations (CGI, art. 145-II). A dated and signed physical stocktake, reconciled to the book stock, serves as proof.

What should be done with a variance between physical stock and book stock?

Investigate the cause first (counting error, data-entry error, cut-off issue, theft, breakage). The final variance is recorded in the accounts at the stocktake date: book stock is adjusted to physical stock, with the appropriate counterpart (change in inventory, or non-current expense for a casualty loss). The variance and its explanation are retained in the closing file.

At what value should stock be stated if its price has fallen?

At the lower of two values: entry cost (weighted average cost or FIFO) and net realisable value at the inventory date. Only the unrealised loss is recorded, as a write-down provision where the loss is not permanent.

Reference texts
  • Law 9-88 on the accounting obligations of merchants, art. 13 and 14 — consistency of methods, valuation of fungible goods
  • General Tax Code (CGI) 2026, art. 145-II — detailed inventories in quantities and values
  • General Chart of Accounts for Businesses (CGNC) — accounts 311, 312, 315, 391, 6114, 6196, 7196

This article presents general rules as at the date shown; it does not replace an analysis of your situation. The French version of the texts prevails.

El Arabi Aich

Article written from the official texts and the firm’s engagement practice. It shows its publication date and, where applicable, its last review.

Related articles

A question about your situation?

Tell us about your project: we reply within 48 business hours with a draft engagement letter.