• Stars
    star
    280
  • Rank 142,644 (Top 3 %)
  • Language
    Clojure
  • License
    GNU General Publi...
  • Created almost 11 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Double-entry accounting software written in Clojure with Datomic.

JUXT Accounting

Free (as in freedom) double-entry book-keeping software.

Introduction

For many, keeping accounts is an unavoidable chore. There are a lot of software packages available that can help, but the majority of these are proprietary software and don't make it possible for their users to inspect or adapt the software for their own purposes.

Asking for a single accounting package to do everything is asking for a hugely-bloated complex software program. Better to have something small that covers the basics but can be extended to fit a particular need.

"Given enough eyeballs, all bugs are shallow." -- Linus' Law

Accounting mistakes in software are more likely if only a few people are free to inspect the code.

Finally, the HMRC (the UK tax authority) force businesses into using proprietary software by not allowing any free-software alternatives. In the case of payroll software it offers a single choice of proprietary software for download. This seems to be at odds with the official UK government's advice to its own departments :-

"Software that is developed to meet the needs of the government - whether itโ€™s developed by government employees, contractors or by a supplier - should be shared wherever possible under a permissive, GPL-compatible open source licence (eg MIT/X11 or 3-clause BSD) so that it can be widely used and improved." -- https://www.gov.uk/service-manual/making-software/choosing-technology.html

Usage

Ensure you have Java and Leiningen installed.

To start the system :-

$ lein repl

Examples

A example of using the API can be found in the file test/juxt/accounting/example.clj.

Scope

I wrote JUXT Accounting to manage our JUXT business affairs so it's naturally tailored to these requirements. However, double-entry bookkeeping, invented in Italy in the 15th century, is used worldwide today.

Principles

  • Free software - designed to give maximum flexibility to users (at the expense of software providers)
  • Strict separation of code and data, that is, separation between this software and your accounts data.

Technology

JUXT Accounting is written using the very latest/best software development database technologies (Clojure and Datomic if you want to know). This gives the application plenty of flexibility without incurring the usual code bloat and bugs. It uses __BigDecimal__s and Joda Money - so no floats, doubles and head-scratching rounding errors. It's money after all (but please note the disclaimer below).

At the very least, JUXT Accounting provides an example of a Datomic-based application which you are free to copy and learn from.

Development

You are free to make your own modifications to the software for any purpose. To help ensure these modifications don't break existing functionality, you can run the test suite (but it's not obligatory).

$ lein test

Features

JUXT Accounting is being built from the ground up. There's not much of a user interface right now. I'm mostly focussed on the back-end. But there's support for adding transaction entries, issuing and printing invoices, and even reports (if you're willing to learn Datomic's rich query syntax and write them yourself!)

Accounting terminology

Accountancy, not unlike any other profession, has its own jargon. Debits are where someone owes you money. Credits are where you owe them money. So debits are good and credits a bad.

This might be the direct opposite of what you understand debits and credits to mean, so you may have to spend some time reprogramming your brain. Confused? This example helped me: when you receive a bank statement which shows you are in debit, this is good. Good for the bank, that is. After all, it's their statement about you, not your statement about them). Debits are good, credits are bad. Credits are bad (gosh, I owe somebody some money), debits are good (great, finally someone owes me money!).

The double-entry bookkeeping approach is about balance. It demands that whenever you record a purchase, sale, expense or some other category of income or expenditure, you record two entries - one is a debit, the other a credit of the same amount. The idea is that if every transaction you enter is balanced, your books will balance.

API usage

Adding transactions

A transaction is a set of entries in ledgers which all relate to a particular purchase, sale or generic movement of money that needs to be accounted for. In double-entry bookkeeping, we would normally have 2 entries per transaction, one for the debit and one for the credit. But I've generalized this concept, because you often have tax and other charges that are incurred with the transaction, so the API lets you assemble all these entries together. But if the total of the debits don't equate to the total of the credits, you get an exception thrown and the books are protected from being unbalanced from your transaction. This is the sort of thing you want the API to do for you.

Note: This check does not happen for multi-currency transactions.

These entries are first assembled into a list before being inserted, all at once, into the database. This list of entries will contain debits and credits.

Pricing

If you make use of the software and it becomes valuable to you, we ask that you make a one-off payment of ยฃ100 or BTC 1.00. These payments help to improve the software. Please make UK cheques payable to JUXT LTD. and send to :-

JUXT LTD.
8 Barbers Walk,
Tring.
HP23 4DB
UK

We welcome payment in BTC. Please contact [email protected] and ask for our BTC payment address.

License

This software is licensed under the Affero General Public License 3.0. This license does not allow you to use this software as the basis for a proprietary software package or cloud-hosted service, so please don't do that. There are too many proprietary accounting software packages already, let's not create any more.

See the LICENSE file for full details.

Please note that there are required system dependencies that are not included (Java, Leiningen, Clojure, Datomic and other libraries) which are licensed under different terms.

Copyright

Copyright ยฉ 2013 JUXT LTD.

More Repositories

1

bidi

Bidirectional URI routing
Clojure
984
star
2

yada

A powerful Clojure web library, full HTTP, full async - see https://juxt.pro/yada/index.html
HTML
731
star
3

aero

A small library for explicit, intentful configuration.
Clojure
721
star
4

tick

Time as a value.
Clojure
583
star
5

edge

A Clojure application foundation from JUXT
Clojure
502
star
6

joplin

Flexible datastore migration and seeding for Clojure projects
Clojure
313
star
7

pack.alpha

Package clojure projects
Java
259
star
8

mach

A remake of make (in ClojureScript)
Clojure
246
star
9

jig

Jig is an application harness providing a beautifully interactive development experience for Clojure projects.
Clojure
230
star
10

clip

Light structure and support for dependency injection
Clojure
224
star
11

iota

Infix operators for test assertions
Clojure
149
star
12

site

A web and API server, powered by xtdb.com
Clojure
136
star
13

modular

JavaScript
128
star
14

apex

A compendium of Clojure libraries for implementing web backends.
Clojure
124
star
15

bolt

An integrated security system for applications built on component
Clojure
123
star
16

jinx

jinx is not xml-schema (it's json-schema!)
Clojure
97
star
17

pull

Trees from tables
Clojure
96
star
18

roll

AWS Blue/Green deployment using Clojure flavoured devops
Clojure
75
star
19

reap

A Clojure library for decoding and encoding strings used by web protocols.
Clojure
68
star
20

dirwatch

A Clojure directory watcher, wrapping the JDK 7 java.nio.file.WatchService.
Clojure
67
star
21

skip

Skippy McSkipface - A general Clojure dependency tracker
Clojure
34
star
22

snap

Snapshot testing for Clojure and Clojurescript
Clojure
29
star
23

pack-datomic

Datomic Packer and Terraform setup
HCL
26
star
24

qcon2014

JavaScript
26
star
25

stoic

Marrying the Component Lifecycle pattern with distributed config.
Clojure
20
star
26

spin

Unbundling the web application-tier
Clojure
20
star
27

pick

A Clojure library for HTTP server-driven content negotiation.
Clojure
18
star
28

prop

Clojure
17
star
29

rest

A guide to coding a REST service
CSS
16
star
30

grab

A Clojure library for parsing and executing GraphQL queries.
Clojure
16
star
31

chatserver

Clojure
13
star
32

shop

The JUXT Shop - a sample application built on Crux
Clojure
11
star
33

dotfiles

Recommended dotfiles used by JUXT
Emacs Lisp
9
star
34

fuzz

Example ClojureScript Project that happens to wrap Slack
Clojure
9
star
35

ramp

Shell
8
star
36

card

Not sure what this is. A kind-of Zettelkasten?
TypeScript
8
star
37

chatclient

Clojure
8
star
38

hire

A technical interview test for potential employees
Clojure
7
star
39

rock

Hardened AMIs for Clojure deployments (Arch Linux)
Shell
7
star
40

clip-example

Example of using Clip
Clojure
7
star
41

datomic-extras

Clojure
7
star
42

lein-dockerstalk

Clojure
7
star
43

docker

Docker files
Makefile
7
star
44

draw

A DSL for SVG diagrams
Clojure
6
star
45

trag

Graph transduction
Clojure
5
star
46

radar

JUXT Clojure Technology Radar
Clojure
5
star
47

vext

Clojure
4
star
48

pack-ek

HCL
4
star
49

adoc

A Clojure wrapper for asciidoctorj
Clojure
4
star
50

msf

Volunteer work for MSF
Clojure
4
star
51

astro-website

Source for the main JUXT website
JavaScript
3
star
52

azondi

MQTT goes reactive
CSS
3
star
53

pack-riemann

HCL
3
star
54

http

3
star
55

yada.cookbook

A cookbook of yada recipes
3
star
56

component-utils

Clojure
2
star
57

blip

Small library for fetching/injecting graphql definitions
Clojure
2
star
58

flow

Clojure
2
star
59

ping

Clojure
2
star
60

modular.co-dependency

Co-dependency support for com.stuartsierra.component
Clojure
2
star
61

lein-deploy-tar

A Leiningen plugin to upload tars to a Maven repository.
Clojure
2
star
62

aleph-issue

Testing aleph
Clojure
1
star
63

mksmarthack

A Clojure data hack on MK:Smart
Clojure
1
star
64

eventing-examples

Clojure
1
star
65

training-exercises-webapp

Training exercises
Clojure
1
star
66

example-code

Example code for a recent client course
Clojure
1
star
67

home-apps

Monorepo for SPAs that use home.juxt.site as a backend
TypeScript
1
star
68

sail

Clojure
1
star
69

clojars-mirrors

Re-releasing Clojars libraries onto Maven Central
Clojure
1
star
70

XT20.conf

Public materials for XT20
1
star
71

asciidoctor-stylesheet-factory

CSS
1
star