Simon Michael
59c199e1a8
docs: wording
2009-12-19 03:09:55 +00:00
Simon Michael
ec95b0723c
make Postings reference their parent Transaction
...
With this change, Transactions and Postings reference each other
co-recursively. This makes constructing them more tedious, but it
may also allow LedgerPostings to be dropped and code to be simplified.
Time and space performance of register and balance is as before.
2009-12-19 03:44:52 +00:00
Simon Michael
8405072ff6
refactor
2009-12-20 15:50:54 +00:00
Simon Michael
f1813fbb0e
more LedgerTransaction/Transaction/LedgerPosting field renames
2009-12-16 17:58:51 +00:00
Simon Michael
30b83bb105
rename LedgerTransaction to Transaction
2009-12-16 08:07:26 +00:00
Simon Michael
0656d575ac
rename Transaction to LedgerPosting
2009-12-16 07:58:06 +00:00
Simon Michael
2e9b27da0d
rename RawLedger to Journal
2009-12-16 07:00:43 +00:00
Simon Michael
79880de744
don't let ledgercomment parser always pass
2009-06-20 04:01:25 +00:00
Simon Michael
29bf134624
better postings parse error
2009-06-20 04:09:59 +00:00
Simon Michael
f7e8ae1c55
whitespace parsing tweak
2009-06-21 14:42:59 +00:00
Simon Michael
d1cb9cedae
fix a regex bug in showtree
2009-08-12 06:40:01 +00:00
marko.kocic
afa2d065bd
Hlint: Error: Monad law, right identity
2009-09-22 10:50:02 +00:00
marko.kocic
af3ad2abe1
Hlint: Error: Redundant return
2009-09-22 12:17:25 +00:00
marko.kocic
5c687ab275
Hlint: Error: Use concatMap
2009-09-22 12:25:31 +00:00
marko.kocic
f51083c1ff
Hlint: Error: Use fewer imports
2009-09-22 12:26:26 +00:00
Simon Michael
20878df544
hlint: use getContents
2009-09-23 17:43:23 +00:00
Simon Michael
a8e510d789
tighten up some imports
2009-07-09 19:03:08 +00:00
Simon Michael
7b1458c9a5
don't break if HOME is undefined
2009-11-19 01:48:37 +00:00
Simon Michael
26848584ee
fix a warning
2009-11-19 02:00:48 +00:00
Simon Michael
042a2ad45e
allow (and ignore) a time in price records
2009-11-19 02:02:12 +00:00
Simon Michael
37f08a35c0
register: refactor layout code
2009-11-25 06:13:35 +00:00
Simon Michael
f924cbbd4a
docs: typo
2009-11-25 13:55:11 +00:00
Simon Michael
17da24710a
docs: update amount haddock
2009-11-25 13:31:08 +00:00
Simon Michael
92c87f088a
docs: updates
2009-11-25 17:44:51 +00:00
Simon Michael
48f6e03325
docs: haddock fixes
2009-11-25 12:57:30 +00:00
Simon Michael
5cfc8cf630
fix a tricky mixedamount arithmetic bug
2009-11-25 19:42:13 +00:00
marko.kocic
4407b6c59d
Hlint: Warning: Use if
2009-09-23 09:29:31 +00:00
Simon Michael
c06580ff2a
print: show end of line comments; all tests now passing
2009-11-25 21:51:31 +00:00
marko.kocic
c6eac33d32
Hlint: Warning: Use :
2009-09-23 09:22:53 +00:00
Simon Michael
1bac7a92af
don't separate differently-priced amounts any more; support for showing amounts without prices
2009-11-25 12:19:02 +00:00
Simon Michael
dee5b1ca39
make unelided transaction printing the default
2009-12-03 20:54:56 +00:00
Simon Michael
2cdc21959e
web: switch to hack/loli/hsp, allow web data entry, detect file changes
2009-08-12 09:38:48 +00:00
Simon Michael
5493a604e3
parsing: fix timelog parsing
2009-12-07 23:29:19 +00:00
Simon Michael
9560073b2a
make historical prices more robust, fix a runtime Map.find error
2009-12-09 20:51:00 +00:00
Simon Michael
cc92bde095
fix warnings
2009-11-28 14:49:38 +00:00
Simon Michael
cafa59ac3d
price history support, first cut
...
P directives now work, but differently from current c++ ledger for now.
Each posting amount is assigned a fixed unit price from the price history
when available (unless overridden by @). This is simple and useful for
fixed-rate transactions such as foreign currency expenses.
2009-11-25 12:15:53 +00:00
Simon Michael
a17346149c
a ledger remembers when it was read from disk
2009-08-12 09:21:46 +00:00
Simon Michael
472b65c5ab
whitespace
2009-07-31 17:02:47 +00:00
marko.kocic
b197693197
Hlint: Warning: Redundant brackets
2009-09-22 16:51:27 +00:00
marko.kocic
2855fe9e0a
Hlint: Error: Redundant do
2009-09-22 12:08:28 +00:00
marko.kocic
8fdd28d446
Hlint: Error: Redundant $
2009-09-22 11:55:11 +00:00
Simon Michael
550357934f
print: fix long account name truncation, align amounts
2009-08-06 20:19:00 +00:00
Simon Michael
5d6c6d778e
there shouldn't be brackets in transaction's effective date, my mistake
2009-12-12 03:03:41 +00:00
Simon Michael
b6a5a3398e
parsing: tighten up dates, error messages, tests
2009-11-25 21:21:49 +00:00
Simon Michael
e3e935e129
parsing: require whitespace between date and status code, prevent silent effective date breakage
2009-11-25 20:12:09 +00:00
Simon Michael
f209305eef
print: show effective dates (issue #12 )
2009-12-07 23:28:33 +00:00
marko.kocic
ddc176d83e
Hlint: Warning: Eta reduce
2009-09-22 15:56:59 +00:00
Simon Michael
4e5d463927
refactor parseWithCtx utility
2009-06-20 03:59:37 +00:00
Simon Michael
d98d136fc7
allow comment lines intermixed with posting lines
2009-06-20 04:02:10 +00:00
Simon Michael
6fb1804cfd
refactor IOArgs -> FilterSpec and make haddock happy
2009-07-09 20:25:50 +00:00