Skip to content

Releases: imetaxas/double-entry-bookkeeping-api

Double-Entry Bookkeeping API 0.1.0

07 Sep 07:45
Compare
Choose a tag to compare

Double Entry Bookkeeping API

A library of the Double-entry bookkeeping concept which is downloadable from the Central Repository.

It uses Spring 5 and the Java Transaction API internally.

It supports H2, HSQL and Derby databases in embedded mode.

And H2, MySQL and Postgres using JDBC.

Description

Double-entry bookkeeping involves making at least two entries or legs for every transaction.
A debit in one account and a corresponding credit in another account.
The sum of all debits should always equal the sum of all credits, providing a simple way to check for errors.
The following rules MUST apply:

  • An account MUST NOT be overdrawn, i.e. have a negative balance.
  • A monetary transaction MAY support multiple currencies as long as the total balance for the transaction legs with the same currency is zero.
  • The concepts of debit and credit are simplified by specifying that monetary transactions towards an account can have either a positive or negative value.