Key points
- CMUP is recalculated at every receipt: stock value + receipt value, divided by the total quantity.
- The entry cost includes the purchase price net of discounts and purchasing costs (transport, forwarding, insurance), without deductible VAT.
- Issues and stocktake differences are valued at the CMUP of the moment.
- The CGNC accepts two methods for interchangeable goods: weighted average cost and first in, first out.
Why value your stock
A store of cable, a rack of fabrics or a room of spare parts is money tied up. Knowing what it is worth answers three questions:
- How much do I have in stock? The stock value appears on the year-end balance sheet, and it weighs on the profit.
- What did this site or project cost me? Each issue of material must be counted at its real cost, otherwise the margin is wrong.
- Where did the goods go? A stocktake compares the stock counted with the book stock, and the difference only makes sense in dirhams.
For tax, the General Tax Code sets the basic rule: stock is valued at cost, or at the market price on the day if that is lower (article 8-I). That leaves the question of which “cost” to give items bought at different prices over the months. That is the job of the valuation method.
The entry cost of an item
Before calculating an average, you need the right cost for each receipt. Under the Moroccan General Accounting Standards Code (CGNC), the acquisition cost of an item in stock is made up as follows:
- The purchase price invoiced by the supplier…
- … less the discounts, reductions and rebates obtained…
- … plus customs duties and non-recoverable taxes…
- … and incidental purchasing costs: transport, forwarding, receiving, insurance.
Deductible VAT is not part of it: you recover it on your return, so it costs the stock nothing. If your business does not recover the VAT on a purchase, on the other hand, it becomes part of the cost.
When one transport invoice covers several items, spread it across them in proportion to their value or quantity. A forgotten transport cost means undervalued stock and margins that look too good.
Calculating CMUP, step by step
The formula fits on one line. At every receipt:
CMUP = (stock value before the receipt + receipt value) ÷ (quantity in stock + quantity received)
The issues that follow are valued at this cost, until the next receipt. Fictitious example: a furniture showroom tracks a velvet fabric by the metre during October.
- 1 October, opening stock. 40 m at 80.00 DH a metre, i.e. 3,200.00 DH. CMUP: 80.00 DH.
- 5 October, receipt of 60 m. Invoiced at 95.00 DH a metre, i.e. 5,700.00 DH excl. VAT, less a 10% discount (570.00 DH), plus 270.00 DH of transport: 5,400.00 DH, i.e. 90.00 DH a metre. New stock: 100 m worth 8,600.00 DH. CMUP: 8,600 ÷ 100 = 86.00 DH.
- 12 October, issue of 30 m to a living-room project. It is valued at 30 × 86.00 = 2,580.00 DH. That leaves 70 m worth 6,020.00 DH, still at 86.00 DH.
- 20 October, receipt of 80 m. 92.00 DH a metre plus 120.00 DH of transport: 7,480.00 DH, i.e. 93.50 DH a metre. New stock: 150 m worth 13,500.00 DH. CMUP: 13,500 ÷ 150 = 90.00 DH.
- 28 October, issue of 45 m to a curtain project: 45 × 90.00 = 4,050.00 DH. That leaves 105 m worth 9,450.00 DH.
At the end of October, the stock is worth 9,450.00 DH and the two projects have used 6,630.00 DH of fabric. A simple check: 3,200 + 5,400 + 7,480 = 16,080.00 DH received, of which 6,630.00 went out and 9,450.00 remain.
The CGNC also allows a variant: an average cost calculated per storage period (for example the month), over all the receipts of the period. It is simpler by hand, but the month’s issues are only valued at the end of the month. Calculating after each receipt gives an up-to-date cost at any moment.
CMUP or first in, first out?
For interchangeable goods (the same fabric, the same cable), the CGNC normally allows only two methods: weighted average cost and first in, first out (FIFO), where each issue uses up the oldest batches first. “Last in, first out” (LIFO), replacement value and standard costs are not accepted for the financial statements.
Let us redo the fictitious example with FIFO. The issue on 12 October takes 30 m of the opening stock at 80.00 DH: 2,400.00 DH. The one on 28 October takes the remaining 10 m at 80.00 DH, then 35 m of the batch at 90.00 DH: 3,950.00 DH. The closing stock, 25 m at 90.00 DH and 80 m at 93.50 DH, is worth 9,730.00 DH.
- When prices rise, FIFO gives a lower cost of issues and a higher closing stock (here 9,730 against 9,450 DH): the margin looks better.
- CMUP smooths out price changes: projects in the same month carry a similar cost, which makes margins comparable.
- FIFO means tracking each batch, which makes data entry heavier when there are many receipts.
Choose a method with your accountant and keep it from one financial year to the next: changing it distorts comparisons and has to be justified.
The stocktake and its differences
At least once a year, at the year-end close, you physically count the stock. The software knows the book stock (receipts less issues); the count gives the actual stock. The difference is valued at CMUP.
Fictitious example: the book stock of velvet is 105 m, and you count 102. The 3 m difference is worth 3 × 90.00 = 270.00 DH. An offcut not recorded, a forgotten issue, a receiving error: understand a difference before you correct it.
- Prepare a count sheet for each location, without the book quantities, so as not to influence the counter.
- Stop movements during the count, or record precisely those that happen.
- Enter the counted quantities, then look into the large differences before confirming them.
- Spot damaged or outdated items: if their selling value has fallen below their cost, a write-down should be recorded with your accountant (the “market price on the day” of article 8-I).
The mistakes that distort CMUP
- Entering receipts late. If the supplier invoice is entered after the issues, those go out at the old cost. Enter receipts the same day.
- Forgetting the transport or the discount. The entry cost must be the real cost, delivered to the store.
- Putting VAT in the cost when it is recovered: the stock is inflated by the VAT and margins are distorted.
- Mixing units. A fabric bought by the roll and sold by the metre must have a single stock unit, with the conversion done on receipt.
- Forgetting returns and credit notes. Goods sent back to the supplier must leave the stock, and a price credit note must correct the cost of the receipt it concerns.
What IXO Gestion does
With the Pro plan, IXO Gestion keeps stock at CMUP: receipts come from the supplier invoice, transport and discounts are spread, and the average cost is recalculated at every receipt. Issue notes to a site or project charge the material cost automatically. Each item has its unit (metre, reel, piece, kg…) and its alert threshold.
For the stocktake, the software prints the count sheet as a PDF, you enter the counted quantities and the differences are valued at average cost. See the Purchasing & stock module, our page for furniture and decoration showrooms, and the glossary. (The software’s interface is in French.)
This guide is general information, not legal or tax advice. The rules change: check your situation with your accountant and the official sources (DGI, CNSS, Bulletin officiel).


