summaryrefslogtreecommitdiffstats
path: root/cholerab/ledger-spec.markdown
blob: 812bce3309b0e35a596a31ce2fc58d00113a25aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Ledger Specification

## Transaction Record

### External Representation

    DATE DESTINATION-ACCOUNT SOURCE-ACCOUNT AMOUNT UNIT [COMMENT...]

  where
  - `DATE` has the form `YYYY-MM-DD`
  - `AMOUNT` is a non-negative, decimal number

### Example

    2013-01-01 krebs-ml amazon 30 EUR C0DE-AAAA-BBBB-CCCC
    2013-02-02 momo krebs-ml 50 EUR C0DE-AAAA-BBBB-CCCC
    2013-02-02 mindfactory momo 80 EUR