Invoicing and accounting: automatic entries and the CGNC
Invoicing and accounting: how an invoice becomes an entry under the Moroccan CGNC chart of accounts, and what automating your bookkeeping changes for you.
An invoice is first and foremost an entry
For a business owner, an invoice is a request for payment. For an accountant, it is a supporting document that triggers an entry. Every sales invoice, purchase invoice or credit note must be recorded in the accounts, with the right accounts, the right amounts and the right date. This work is what makes it possible to produce the balance sheet, the income statement and the tax returns.
In many SMEs this link is still manual: invoices are issued in one tool, printed or exported, then re-keyed by the accountant into other software. This double entry takes time, generates errors and delays information. When invoicing feeds accounting directly, the owner has up-to-date figures without waiting for the year-end close.
The CGNC, the common framework
In Morocco, businesses keep their accounts according to the Code général de normalisation comptable (CGNC, the Moroccan accounting standards code). It sets a chart of accounts organized into classes: classes 1 to 5 for balance sheet accounts, from permanent financing to cash, classes 6 and 7 for expenses and income, and class 8 for results. Each account has a number that specifies its nature.
For invoicing, a few accounts come up constantly: account 3421 for customers, account 4411 for suppliers, account 4455 for VAT invoiced, account 3455 for recoverable VAT, account 5141 for the bank, as well as the class 7 sales accounts and class 6 purchase accounts. Your accountant can refine this list according to your business.
- 3421: Customers
- 4411: Suppliers
- 4455: State, VAT invoiced
- 3455: State, recoverable VAT
- 5141: Banks
- 711 and 712: sales of goods for resale, and of goods and services produced
From invoice to entry: an example
Take a fictitious service invoice of 10,000 DH excluding tax, with 20% VAT of 2,000 DH, i.e. 12,000 DH including tax. The sales entry debits customer account 3421 by 12,000 DH, credits a class 7 services sales account by 10,000 DH and credits VAT invoiced account 4455 by 2,000 DH. The customer now owes the business 12,000 DH.
When the customer pays by bank transfer, a second entry debits the bank, account 5141, by 12,000 DH and credits customer account 3421 by the same amount. The receivable is settled. A credit note follows the reverse logic of the invoice: it reduces the customer account, sales or an account for rebates granted, and the VAT invoiced.
What automation changes
When invoicing and accounting share the same data, every validated invoice generates its entry without re-keying. The customer account is updated, VAT is broken down by rate, and revenue is known in real time. The accountant is no longer a data-entry operator: they check, analyze and advise, which is far more useful to the business.
Automation does not remove the need for proper setup. You must assign the right sales account and the right VAT rate to each item, define the journals and, at the start, check a few entries with the accountant. Once this setup has been validated, entries follow mechanically, and data-entry errors largely disappear.
Bank reconciliation, an essential link
The third piece of the puzzle is the bank. Bank reconciliation consists of checking that every movement on the statement corresponds to an accounting entry, and vice versa. For sales, it tells you which invoices have actually been paid, which is essential for chasing unpaid invoices and, under the cash-basis regime, for VAT.
Carried out every month, or even every week, reconciliation prevents unexplained movements from piling up at year end. When it relies on the invoices issued and the payments received online, a large share of the matches happen by themselves, and only ambiguous cases require intervention: a grouped transfer covering several invoices, a partial payment, bank charges deducted from the amount received.
Connect invoicing and accounting with m2m.ma
m2m.ma brings invoicing and accounting together: every validated invoice, credit note or payment automatically generates its accounting entries, VAT is prepared from this data, and bank reconciliation lets you allocate payments to invoices. You can import invoices from other software to recover your history, and work from the browser or from the Android, iPhone and Windows apps.
To check that the entries match your accountant's expectations, open an account on my.m2m.ma and take advantage of the 15-day free trial, with no commitment. Issue a few invoices, record a payment, then review together the entries generated and the reconciliation with a bank statement. This one-hour session is generally enough to know whether the proposed setup suits your accounts or needs adjusting.
Frequently asked questions
Can my accountant work directly in the invoicing software?
When invoicing and accounting are combined in the same tool, the accountant can access the generated entries, check them and complete them, without waiting for files to be sent. Check with them that they have suitable access and that the account setup suits them.
Are automatic entries compliant with the CGNC?
They are if the setup is correct: sales accounts, VAT accounts, journals. That is why it is recommended to validate this setup with your accountant at the start, then check a sample of entries at each closing.
Do I still need a chartered accountant if everything is automatic?
Yes. Automation removes data entry, not expertise. The accountant remains essential for special transactions, year-end adjustments, closing, tax returns and advice. They simply spend more time on analysis and less on re-keying.
Put it into practice with m2m.ma
E-invoicing, accounting and business management services for Moroccan companies. 15-day free trial, no credit card.

