Fiscal Years & FEC Export
The Fiscal Years page lists all your accounting periods. From here you can create or edit a fiscal year and export its journal entries in the FEC format required by tax authorities.
Fiscal Years
Section titled “Fiscal Years”Watch the step-by-step tutorial
A fiscal year is an accounting period, typically 12 months. Each entry shows a label, start/end dates, a status, and an optional lock date.
Fiscal Year Statuses
Section titled “Fiscal Year Statuses”| Status | Meaning |
|---|---|
| Open | Entries can still be entered and modified |
| Closed | Period is over, new entries are blocked |
| Verified | Audited and validated |
Adding or Editing a Fiscal Year
Section titled “Adding or Editing a Fiscal Year”Click Add fiscal year to create a new one, or click a row in the table to edit an existing fiscal year.
FEC Export
Section titled “FEC Export”The Fichier des Écritures Comptables (FEC) is a standardized accounting file required by Moroccan and French tax authorities during fiscal audits. It contains all validated journal entries for the selected fiscal year.
How to Export the FEC
Section titled “How to Export the FEC”- Go to the Fiscal Years page (
/accounting/fiscal-years) - Find the fiscal year you want to export
- Click the download icon in the rightmost column
- The FEC file downloads automatically
The generated file is named: FEC_<SIREN or ICE>_<YYYYMMDD>.txt
Example: FEC_123456789_20241231.txt
FEC File Contents
Section titled “FEC File Contents”The FEC includes only validated entries for the selected fiscal year. Draft entries are not exported.
The file is tab-separated (UTF-8) with 18 mandatory columns:
| Column | Description |
|---|---|
| JournalCode | Journal code |
| JournalLib | Journal label |
| EcritureNum | Sequential entry number |
| EcritureDate | Entry date (YYYYMMDD) |
| CompteNum | Account number |
| CompteLib | Account label |
| CompAuxNum | Auxiliary account number |
| CompAuxLib | Auxiliary account label |
| PieceRef | Supporting document reference |
| PieceDate | Document date (YYYYMMDD) |
| EcritureLib | Entry label |
| Debit | Debit amount (comma as decimal separator) |
| Credit | Credit amount (comma as decimal separator) |
| EcritureLet | Lettering code |
| DateLet | Lettering date |
| ValidDate | Entry validation date |
| Montantdevise | Foreign currency amount |
| Idevise | Currency code |
Entry Order
Section titled “Entry Order”Opening balance (à-nouveau) entries appear first, then entries are sorted by date and document reference.
Best Practices
Section titled “Best Practices”- Export the FEC after validating all entries for the fiscal year
- Ensure the fiscal year status is Closed or Verified before a tax audit
- Keep the FEC file in a secure location — tax authorities may request it at any time
Troubleshooting
Section titled “Troubleshooting”- Download button unresponsive: an export is already in progress — wait for the current download to finish
- Empty file: no validated entries exist for this fiscal year — validate your entries before exporting
- Export error: check your connection and try again
Need help? Contact our technical support.