Simon Michael
1a491e883a
more accountNameTreeFrom optimisation experiments, included for easier collaboration
2009-05-29 10:06:50 +00:00
Simon Michael
43549704c0
tracewith
2009-06-05 10:41:57 +00:00
Simon Michael
d1418a2a21
show better errors for unbalanced transaction and missing default year
2009-06-05 19:35:12 +00:00
Simon Michael
3be793f108
fix nafai's bug: fail on empty account name components, don't just ignore
2009-06-05 18:02:22 +00:00
Simon Michael
cb8ea69dfc
fix warnings all over - hledger is now -W-clean
2009-06-05 09:44:20 +00:00
Simon Michael
92d67926f5
print, register: show virtual accounts bracketed/parenthesised
2009-05-24 06:22:44 +00:00
Simon Michael
8cb526f655
accountNameTreeFrom optimisation experiments
2009-05-29 03:00:56 +00:00
Simon Michael
e91560989c
drop regex-compat/regex-posix dependency
2009-06-03 23:19:47 +00:00
Simon Michael
96fd2142aa
move some unrelated things out of AccountName, drop unused pattern match code
2009-05-29 11:31:51 +00:00
Simon Michael
568e752484
allow parentheses and brackets inside account names, as ledger does
2009-05-25 17:28:41 +00:00
Simon Michael
fe5498f6c2
various utilities & doc updates - commodities, daysInSpan, underline
2009-05-29 10:02:14 +00:00
Simon Michael
6c6eb2691e
drop old-locale dependency
2009-06-03 23:44:01 +00:00
Simon Michael
dc3be35eef
fix a silly failure to open ledger file paths containing ~
...
And drop a misconception: there's no need to tilde-expand paths in command
line arguments. Just the hard-coded ones.
2009-06-05 05:03:10 +00:00
Simon Michael
7e6df61889
better Transaction doc
2009-04-04 22:09:30 +00:00
Simon Michael
7d1c01ec8a
consistent lower-case aliases for working with Ledgers, and examples
2009-04-04 22:38:18 +00:00
Simon Michael
1572622ae6
use a consistent prefix for Transaction field accessors
2009-04-04 21:26:55 +00:00
Simon Michael
622db5f25d
datespan utils
2009-04-04 11:19:15 +00:00
Simon Michael
ca16e98655
haddock
2009-04-04 23:15:42 +00:00
Simon Michael
4c9f0e5d9e
more haddock cleanups
2009-04-04 22:38:36 +00:00
Simon Michael
1ef777a1b8
improve type docs
2009-04-03 20:55:49 +00:00
Simon Michael
a78f5a1f04
model timelog entry codes precisely
2009-04-03 20:04:51 +00:00
Simon Michael
247563a336
haddock fix
2009-04-04 21:53:46 +00:00
Simon Michael
2edd2da7b8
nullentry -> nullledgertxn
2009-04-07 21:38:15 +00:00
Simon Michael
2c989522da
add missing type signatures, for tags
2009-04-07 21:38:38 +00:00
Simon Michael
f40d561273
fix bug in eliding of posting amounts
2009-04-07 23:58:04 +00:00
Simon Michael
cfaacd26b6
parse error fixes
2009-04-10 04:38:46 +00:00
Simon Michael
ac307957e5
rstrip, lstrip
2009-04-10 04:59:43 +00:00
Simon Michael
1085d476f1
parse zero-length input as an empty ledger
2009-04-10 05:42:26 +00:00
Simon Michael
69ce8b9a8e
don't treat comments as part of ledger transaction descriptions
2009-04-10 05:37:26 +00:00
Simon Michael
eb3ec063d0
require a non-empty description in ledger transactions
2009-04-10 04:39:54 +00:00
Simon Michael
5d1f535b5e
require some postings in ledger transactions
2009-04-10 05:00:51 +00:00
Simon Michael
638238dc5c
ledgerFile cleanup
2009-04-10 05:40:57 +00:00
Simon Michael
c14f1c280f
a cleanup I forgot
2009-04-10 08:05:56 +00:00
Simon Michael
2b672c5837
tweak error message
2009-04-08 03:10:15 +00:00
Simon Michael
1fd416ba96
whitespace
2009-04-16 06:34:32 +00:00
Simon Michael
3e6943e5f6
don't show trailing spaces on amountless postings
2009-04-07 23:02:25 +00:00
Simon Michael
d3dcd29957
expand ~ paths in readLedger
2009-05-16 21:10:41 +00:00
Simon Michael
ef39cced4a
don't fail when matching an empty pattern, as in "not:"
2009-05-16 21:19:38 +00:00
Simon Michael
8eb31bc5e3
enforce balancing for bracketed virtual postings
2009-05-16 23:12:42 +00:00
Sergey Astanin
86fab58e6a
Allow UTF8 in ledgers (account names, descriptions).
...
This patch fixes broken layout of some commands when there is Unicode
text in the ledger file.
I substituted System.IO functions with System.IO.UTF8. Now all strings
are Unicode internally, and take's and length's work correctly.
In particular, add, balance, hist, print and register commands seem
to work correctly; ui is still broken for me, I didn't try web.
I decode command line arguments from UTF8 forcefully, to permit
searches for accounts and descriptions with Unicode (otherwise, it
does not work).
The patch adds an additional dependency: utf8-string.
This patch does not include new test cases.
2009-05-14 20:44:06 +00:00
Simon Michael
b103f6a0d8
be more accurate about checking balanced amounts, don't rely on display precision
2009-05-16 22:54:12 +00:00
Simon Michael
c5e7b12a59
add command, reads transactions interactively and adds them to the ledger
2009-04-08 05:30:26 +00:00
Simon Michael
32a3af8334
transactionamount -> postingamount
2009-04-07 21:18:51 +00:00
Simon Michael
d8fe2aabb2
drop TimeLog, it's no longer needed
2009-04-03 11:05:16 +00:00
Simon Michael
1548e84aa9
add file path field to RawLedger
2009-04-08 03:40:05 +00:00
Simon Michael
b60f9187c0
refactor, moving generic io functions into Ledger.IO
2009-04-04 08:50:36 +00:00
Simon Michael
ab94a6e9a2
--uncleared option
2009-04-03 11:45:56 +00:00
Simon Michael
0f1cbef9a8
namegeddon! conform to new terminology in ledger 3, more or less
...
This renames RawTransaction -> Posting and Entry -> LedgerTransaction,
plus a bunch more cleanups for consistency. So while ledger 3 has
transactions containing postings, and so do we when speaking to users,
internally we call ledger 3's transactions LedgerTransaction, and we keep
our old Transaction type as well, because it's useful and used all over
the place. To review:
- ledger 2 had Entrys containing Transactions.
- hledger 0.4 had Entrys containing RawTransactions, and Transactions
which are a RawTransaction with its parent Entry's info added.
Transactions are what we most work with when reporting and are
ubiquitous in the code and docs.
- ledger 3 has Transactions containing Postings.
- hledger 0.5 now has LedgerTransactions containing Postings, with
Transactions kept as before (a Posting plus it's parent's info). These
could be named PartialTransactions or TransactionPostings, but it gets
too verbose and obscure for devs and users.
2009-04-03 10:58:05 +00:00
Simon Michael
1fc9db3af5
individual transactions now have a cleared status
2009-01-23 00:14:12 +00:00
Simon Michael
55c0a688c0
that parser is not right, breaks hours period selection
2009-01-23 18:10:17 +00:00