Commit Graph

223 Commits

Author SHA1 Message Date
Simon Michael
9560073b2a make historical prices more robust, fix a runtime Map.find error 2009-12-09 20:51:00 +00:00
Simon Michael
a17346149c a ledger remembers when it was read from disk 2009-08-12 09:21:46 +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
3b9c6448be more test tweaks 2009-06-27 11:02:28 +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
06eb2a9aa8 --effective option uses transactions' effective dates, if any 2009-07-08 23:37:44 +00:00
Simon Michael
29cc846dc0 avoid exitSuccess for base 3 compatibility (issue #2) 2009-06-22 15:47:05 +00:00
Simon Michael
60f5beb359 fix a broken doctest 2009-06-22 18:25:52 +00:00
Simon Michael
72ad595542 reflect success/failure in doctest and unittest runners' exit codes 2009-06-05 17:29:20 +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
00ad42e629 eliding/layout tests, commented out since I don't know what it should do 2009-06-05 19:35:47 +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
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
d35792bf3f move commands to their own subpackage 2009-06-02 18:29:01 +00:00
Simon Michael
8ba2163ccd --quarterly option 2009-04-03 11:55:48 +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
ca3f55933b haddock 2009-04-04 22:41:18 +00:00
Simon Michael
a78f5a1f04 model timelog entry codes precisely 2009-04-03 20:04:51 +00:00
Simon Michael
2edd2da7b8 nullentry -> nullledgertxn 2009-04-07 21:38:15 +00:00
Simon Michael
2eb5f40875 fix is argument order 2009-04-07 23:01:38 +00:00
Simon Michael
a36e0ab30c more tests 2009-04-08 03:10:35 +00:00
Simon Michael
f40d561273 fix bug in eliding of posting amounts 2009-04-07 23:58:04 +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
5d1f535b5e require some postings in ledger transactions 2009-04-10 05:00:51 +00:00
Simon Michael
0b22774ec9 test for too-loose transaction parsing 2009-04-10 04:27:16 +00:00
Sergey Astanin
7c0421ec5e basic unicode layout tests for showRegisterReport and showBalanceReport 2009-05-14 21:43:26 +00:00
Simon Michael
1ed196e262 test layout with a non-ascii description, first attempt 2009-05-14 17:05:10 +00:00
Simon Michael
3e6943e5f6 don't show trailing spaces on amountless postings 2009-04-07 23:02:25 +00:00
Simon Michael
8eb31bc5e3 enforce balancing for bracketed virtual postings 2009-05-16 23:12:42 +00:00
Simon Michael
62d2cb71d0 isLedgerTransactionBalanced tests 2009-04-10 08:06:05 +00:00
Simon Michael
819f6709b3 disable unimplemented unicode test 2009-05-23 23:49:35 +00:00
Simon Michael
68fadbe1a7 break up comment to work around haddock bug 2009-05-23 23:44:48 +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
Sergey Astanin
92cb35bffb Some doctests for unicode input/output
Tests:
- layout of balance command
- layout of register command
- layout of print command
- search for unicode account names
- search for unicode descriptions
- error message on broken entry (currently fails)
2009-05-15 08:31:31 +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
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