The French Plan comptable général account list
README.md

pcg #

The account list of the French Plan comptable général (PCG), the chart of
accounts of the Autorité des normes comptables (ANC règlement n° 2014-03), as
data with its source and version.

A French ledger numbers its accounts on the PCG: the first digit of a number
is the account's class, and each further digit details the account whose
number it extends. A company opens sub-accounts by extending the list's
numbers, and the fichier des écritures comptables (FEC), the VAT return and
the annual accounts read each of its accounts through the PCG account it
details.

Contents #

Installation #

$ opam install pcg

The library is pcg and its module is Pcg.

Usage #

A company's account resolves to the PCG account it details, with its class,
the statement that reports it and the side of its normal balance:

# let a = Option.get (Pcg.resolve "40110000");;
val a : Pcg.t = <abstr>
# Fmt.pr "%a; %a; %a; %a@." Pcg.pp a Pcg.Class.pp (Pcg.class_ a)
    Pcg.pp_statement (Pcg.statement a) Pcg.pp_side (Pcg.side a);;
4011 Fournisseurs - Achats de biens et prestations de services; class 4 (Comptes de tiers); balance sheet; credit
- : unit = ()

An account of the list is found by its number, and its parent is the account
it details:

# Option.bind (Pcg.find "44571") Pcg.parent |> Option.iter (Fmt.pr "%a@." Pcg.pp);;
4457 Taxes sur le chiffre d'affaires collectées par l'entreprise
- : unit = ()

What it covers #

  • The accounts of classes 1 to 8 of the PCG's list, each with its number and
    label; Pcg.source and Pcg.version name the text and the state of it the
    list reproduces. Where the list names a range of numbers ("471 à 475"), each
    number of the range is an account with the range's label.
  • The class of an account and the statement that reports it: the balance
    sheet for classes 1 to 5, the income statement for classes 6 and 7, and
    neither for class 8, the special accounts.
  • The side of each account's normal balance: debit, credit, or either for the
    accounts whose balance takes the sign of the operations they record.
  • The resolution of a company's account number to the account of the list
    whose number is its longest prefix.

The class 9 accounts of cost accounting, which the PCG leaves to each entity,
are not listed.

License #

ISC. See LICENSE.md.