Practise this topic in CMCG Online Academy
Short lessons and corrected exercises on Moroccan accounting. The introduction (10 lessons) is free: your first name and city are enough.
An invoice gives you an amount to pay or collect, but entering it correctly takes several decisions. You need to identify what was bought or sold, separate VAT from the underlying amount and choose the right counterparty account. A later payment must then reduce the outstanding balance without recording the transaction twice.
These ten exercises take you through that sequence using Moroccan account numbers. Try each question before reading its solution. Write the document reference, account, debit and credit, then explain what has changed for the business. The linked exercises let you follow one supplier and one customer from the original invoice through a return and a partial settlement.
Working assumptions and account references
All transactions are fictional and amounts are in Moroccan dirhams (DH). A VAT rate of 20% is supplied as an exercise assumption throughout. It is not presented as the rate for every Moroccan transaction. Purchase VAT is assumed to be fully recoverable in these examples. Eligibility, tax points and the period in which VAT enters a return require separate assessment in a real file and are outside this exercise set.
On a French-language invoice, HT means the amount excluding tax and TTC means the amount including tax. With the supplied rate, VAT = net amount × 0.20; gross amount = net amount + VAT. To work backwards, divide the gross amount by 1.20. The numbering follows the Moroccan CGNC, available in this copy of the text, particularly its sections on counterparties, VAT, purchases and sales.
| Account | Purpose in these exercises |
|---|---|
| 6111 | Merchandise purchases, group A |
| 6133 | Maintenance and repairs |
| 7111 | Merchandise sales in Morocco |
| 4411 / 3421 | Suppliers / customers |
| 34552 / 34551 | Recoverable VAT on expenses / fixed assets |
| 4455 | VAT invoiced on sales |
| 5141 | Bank |
| 2355 / 4481 | IT equipment / amounts payable on fixed-asset acquisitions |
Account descriptions are shortened for readability. Review the debit and credit guide if you need to refresh the direction of a movement. Inventory and depreciation entries are outside the questions. Carry figures between exercises only where instructed; assume no earlier balances for the counterparties being followed.
Exercise 1: record a purchase on credit
Question. Invoice A01 is for merchandise bought for resale at a net amount of DH 5,000. Nothing has been paid. Calculate VAT and the invoice total, then prepare the purchase-journal entry.
Solution. VAT = 5,000 × 0.20 = DH 1,000. The supplier is owed DH 6,000.
| Account | Debit | Credit |
|---|---|---|
| 6111 Merchandise purchases | 5,000 | 0 |
| 34552 Recoverable VAT on expenses | 1,000 | 0 |
| 4411 Supplier A01 | 0 | 6,000 |
The purchase and recoverable VAT are recorded separately. The liability includes both amounts. Check: total debits and credits are DH 6,000. No bank entry belongs here because the supplier has not yet received a payment.
Exercise 2: enter a maintenance invoice and its payment
Question. Invoice A02 covers ordinary equipment maintenance, with no lasting improvement to the asset. Its net amount is DH 1,200 and it is paid by bank transfer that day. Show the invoice and payment separately.
Invoice solution. VAT is DH 240 and the gross amount is DH 1,440.
| Account | Debit | Credit |
|---|---|---|
| 6133 Maintenance and repairs | 1,200 | 0 |
| 34552 Recoverable VAT on expenses | 240 | 0 |
| 4411 Supplier A02 | 0 | 1,440 |
Payment in the bank journal: debit 4411 for DH 1,440 and credit 5141 for DH 1,440. The supplier balance is now zero. The expense appears once, through the invoice; payment clears the liability. Retain the transfer reference so another person can trace the settlement back to A02.
Exercise 3: record a sale before the customer pays
Question. Invoice V01 records a merchandise sale in Morocco for DH 8,000 excluding VAT. The customer will pay later. Calculate the receivable and prepare the sales-journal entry.
Solution. VAT is DH 1,600 and the customer owes DH 9,600.
| Account | Debit | Credit |
|---|---|---|
| 3421 Customer V01 | 9,600 | 0 |
| 7111 Merchandise sales | 0 | 8,000 |
| 4455 VAT invoiced | 0 | 1,600 |
The customer account records the gross receivable. Sales revenue excludes the VAT recorded in 4455. Check: 9,600 = 8,000 + 1,600. Recognising this sale creates a receivable, while the bank balance stays unchanged at this stage.
Exercise 4: apply a trade discount on the original invoice
Question. Purchase invoice A03 lists merchandise at DH 10,000 before VAT and a 5% trade discount on the same document. There are no additional charges or settlement discounts. Find the net purchase amount and record the unpaid invoice.
Solution. The discount is DH 500. The discounted net amount is DH 9,500, VAT is DH 1,900 and the gross liability is DH 11,400.
| Account | Debit | Credit |
|---|---|---|
| 6111 Merchandise purchases | 9,500 | 0 |
| 34552 Recoverable VAT on expenses | 1,900 | 0 |
| 4411 Supplier A03 | 0 | 11,400 |
For this invoice, record the purchase after its trade discount. Calculating VAT on the original DH 10,000 would overstate the tax and the supplier balance. A later discount documented through a separate credit note would need its own analysis; this question concerns a reduction already included on the original invoice.
Exercise 5: distinguish an asset from goods for resale
Question. Invoice I01 is for a computer costing DH 9,000 excluding VAT. The business will use it over a sustained period. The amount is payable in the short term, with no long-term financing. The question requires fixed-asset treatment and does not ask for depreciation.
Solution. Recoverable VAT is DH 1,800 and the liability is DH 10,800.
| Account | Debit | Credit |
|---|---|---|
| 2355 IT equipment | 9,000 | 0 |
| 34551 Recoverable VAT on fixed assets | 1,800 | 0 |
| 4481 Payable on fixed-asset acquisition | 0 | 10,800 |
Its intended use explains the classification: a computer purchased for resale would require a different analysis. Check: asset VAT goes to 34551 in this case, separately from expense VAT in 34552. Both sides total DH 10,800.
Exercise 6: record goods returned to a supplier
Question. The business returns DH 1,000 of net merchandise from invoice A01 in exercise 1. The supplier issues credit note AV-A01 using the same VAT assumption. A01 has not yet been paid.
Solution. The return includes DH 200 VAT, making the credit note DH 1,200 gross.
| Account | Debit | Credit |
|---|---|---|
| 4411 Supplier A01 | 1,200 | 0 |
| 6111 Merchandise purchases | 0 | 1,000 |
| 34552 Recoverable VAT on expenses | 0 | 200 |
The entry reduces the purchase, related recoverable VAT and supplier liability. The remaining supplier balance is 6,000 − 1,200 = DH 4,800 credit. This is a merchandise return rather than an additional trade discount. Keep the credit note linked to the original invoice so the reason for the reduction remains clear.
Exercise 7: issue a credit note for a customer return
Question. The customer from exercise 3 returns merchandise originally invoiced at DH 1,500 excluding VAT. The business issues credit note AV-V01. The customer has made no payment. Calculate the revised receivable.
Solution. The credit note includes DH 300 VAT and totals DH 1,800.
| Account | Debit | Credit |
|---|---|---|
| 7111 Merchandise sales | 1,500 | 0 |
| 4455 VAT invoiced | 300 | 0 |
| 3421 Customer V01 | 0 | 1,800 |
The receivable falls to 9,600 − 1,800 = DH 7,800 debit. Compare these directions with the original sale: the return reduces previously recognised revenue and VAT. Crediting sales again would increase revenue despite the customer having returned the goods.
Exercise 8: make a partial supplier payment
Question. After recording the return in exercise 6, the business transfers DH 3,000 to supplier A01. Show the bank-journal entry and calculate what remains payable.
Solution.
| Account | Debit | Credit |
|---|---|---|
| 4411 Supplier A01 | 3,000 | 0 |
| 5141 Bank | 0 | 3,000 |
The remaining liability is 4,800 − 3,000 = DH 1,800 credit. This settlement reduces the supplier account and bank balance. It creates no new expense or VAT line in the payment entry. Check the allocation to A01 and its credit note, especially when the same supplier has several outstanding invoices.
Exercise 9: receive part of a customer balance
Question. Following the return in exercise 7, customer V01 transfers DH 5,000 to the business. Record the receipt and calculate the remaining receivable.
Solution.
| Account | Debit | Credit |
|---|---|---|
| 5141 Bank | 5,000 | 0 |
| 3421 Customer V01 | 0 | 5,000 |
The customer still owes 7,800 − 5,000 = DH 2,800 debit. The bank increases while the receivable decreases. Keep the invoice, credit note and receipt together when explaining that balance. The customer and supplier account-matching guide explains how to connect related movements and identify amounts that remain open.
Exercise 10: recover the net amount and fix a sales entry
Question. Invoice V02 totals DH 3,600 including the exercise VAT rate of 20%. An incorrect entry debited 3421 for DH 3,600 and credited the whole amount to 7111. Find the net amount and explain how to correct the allocation.
Solution. Net amount = 3,600 ÷ 1.20 = DH 3,000. VAT is DH 600. The correct complete invoice entry is:
| Account | Debit | Credit |
|---|---|---|
| 3421 Customer V02 | 3,600 | 0 |
| 7111 Merchandise sales | 0 | 3,000 |
| 4455 VAT invoiced | 0 | 600 |
If the incorrect entry has already been posted, the adjustment is debit 7111 for DH 600 and credit 4455 for DH 600, following the file's correction procedure. Do not post both that adjustment and another complete invoice entry. The customer balance was already correct; the revenue and VAT split was wrong. Taking 20% of the gross amount would produce DH 720 and would fail to reconstruct the invoice.
Check the completed invoice batch
Review the reference, counterparty, debit-credit equality and supporting document for each entry. The supplier-invoice review guide gives the checks to perform before posting. Across this exercise set, the VAT account movements should reconcile as follows:
| Check | Calculation | Amount |
|---|---|---|
| Recoverable VAT on expenses | 1,000 + 240 + 1,900 − 200 | 2,940 |
| Recoverable VAT on fixed assets | Invoice I01 | 1,800 |
| VAT invoiced, after returns | 1,600 − 300 + 600 | 1,900 |
These figures reconcile invoice postings to accounts; they do not establish a VAT return. Paying A02 and making the partial settlements must not duplicate invoice VAT in the journal. Confirm the remaining A01 and V01 balances, then record why each mistake occurred: calculation, classification, movement direction or duplicate posting. Repeat the questions you missed without looking at the tables, and explain the result in ordinary business terms.
Continue with CMCG Online Academy
To practise the purchase, sales and credit-note reasoning in these exercises, continue with CMCG Online Academy, CMCG's learning app, with exercises corrected instantly and mock exams. It teaches Moroccan accounting, covering the CGNC and Moroccan chart of accounts, through short interactive lessons and includes an accounting entry simulator for the journal, general ledger and trial balance. A business-French course is also included, and the interface is available in French or Arabic. Start with the free first module, with no bank card needed.
Related training: practical accounting training in Tangier · online accounting course
