Commit Graph

210 Commits

Author SHA1 Message Date
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
Simon Michael
3bc2d903b2 move the big limit into depthFromOpts 2009-03-15 11:09:49 +00:00
Simon Michael
82885b3773 more balance report test updates 2009-03-15 11:10:36 +00:00
Simon Michael
5fb256b582 a simple doctest implementation for functional/shell testing 2009-03-15 05:06:36 +00:00
Simon Michael
1110bcaf4e clarify a test case 2009-03-15 12:41:30 +00:00
Simon Michael
fc928ba278 make the auto-clockout test more robust 2009-04-01 08:20:10 +00:00
Simon Michael
38fd44917c test and fix for auto-clockout of a future clockin 2009-04-01 05:00:08 +00:00
Simon Michael
b616cdf0de give some test assertions individual labels 2009-04-01 04:59:08 +00:00
Simon Michael
c8a03999b4 test cleanup 2009-04-01 09:18:31 +00:00
Simon Michael
7521992e85 register command sorts transactions by date
(unlike ledger)
2009-04-02 04:42:10 +00:00
Simon Michael
8256a4fcbd test util cleanups 2009-04-01 04:57:05 +00:00
Simon Michael
bd8dcefd9d apply --depth to print command 2009-04-02 06:02:00 +00:00
Simon Michael
7ba0dc06a5 test and fix for register --depth 2009-04-02 02:52:23 +00:00
Simon Michael
89abdfa456 refactor/fix balanced entry checking and test it properly 2009-04-01 08:55:46 +00:00