The books of prime entry are the books in which transactions are first recorded.
The double entries in the ledgers use figures taken from the books of prime entry.
The journal is used to record any unusual transaction that are not covered by the other books of prime entry such as (for example) the depreciation for the year.