Commit Graph

35 Commits

Author SHA1 Message Date
Simon Michael
f69716ddf9 fix reporting of unbalanced entries 2008-12-05 10:04:59 +00:00
Simon Michael
dd93418784 handle "from ... to ..." period expressions 2008-11-27 19:42:03 +00:00
Simon Michael
630e22312b remove DateTime and Date types, use Day and UTCTime directly
This seems simplest for now, I might bring type synonyms back later.
2008-11-27 04:01:07 +00:00
Simon Michael
884ebf2979 gather date stuff together, FuzzyDate -> SmartDate 2008-11-27 00:35:00 +00:00
Simon Michael
0ef22d5cf6 doc fix 2008-10-16 09:50:22 +00:00
Simon Michael
febcb381f2 comment 2008-10-18 06:49:40 +00:00
Simon Michael
1607661b87 fix the print command 2008-11-22 06:35:10 +00:00
Simon Michael
54ee68976b support converting amounts to cost, using their saved price.
And do this by default for auto-balancing transactions, as ledger seems to.
2008-11-22 20:32:58 +00:00
tim
514f015849 Implemented types for dates and datetimes
This patch replaces the strings used in the Entry, TimeLogEntry, and Transaction
records with real types. Rather than use the inbuild system date and time types
directly, two custom types have been implemented that wrap UTCTime: Date and
DateTime. A minimal API for these has been added.
2008-11-11 12:34:05 +00:00
Simon Michael
a7b3e0d38d define nullentry, nullrawtxn 2008-11-08 20:25:51 +00:00
Simon Michael
80beac7d43 try making MixedAmount a full newtype, to avoid TypeSynonymInstances error 2008-10-18 10:38:01 +00:00
Simon Michael
ebcf695240 simplify, remove dead code 2008-10-18 09:02:19 +00:00
Simon Michael
648887b36f use MixedAmount everywhere. seems to work. 2008-10-18 08:39:08 +00:00
Simon Michael
d31ba41703 rename and unify the autofill stuff 2008-10-18 06:45:02 +00:00
Simon Michael
a304ad3ca6 and more code cleanups. 2008-10-18 04:15:43 +00:00
Simon Michael
861e2beb1c clearer error message when we can't balance an entry 2008-10-16 04:00:45 +00:00
Simon Michael
0cfbced165 and allow parsing of mixed-commodity entries, as long as we don't have to balance them 2008-10-17 03:32:00 +00:00
Simon Michael
17ceb9039b rename sumLedgerTransactions 2008-10-16 08:48:25 +00:00
Simon Michael
405f71c389 ignore virtual transactions when auto-balancing 2008-10-16 06:52:35 +00:00
Simon Michael
9acf11de4d when we fail because of more than one missing amount in an entry, show the full entry 2008-10-16 03:56:43 +00:00
Simon Michael
a1d10691a3 more code cleanups 2008-10-18 02:43:13 +00:00
Simon Michael
3bcc3277ac the parser was too strict about decimal places when balance-checking 2008-10-15 18:01:49 +00:00
Simon Michael
f99963786c require a balanced entry to have just one commodity, for now 2008-10-15 07:00:47 +00:00
Simon Michael
3138046744 clarify entry balance checking and show the full entry when unbalanced 2008-10-15 06:47:47 +00:00
Simon Michael
9f341b0279 make show entry more useful 2008-10-15 06:47:00 +00:00
Simon Michael
1e3291af48 focus on tests in Tests.hs, clean up 2008-10-15 06:32:52 +00:00
Simon Michael
760befef89 more cleanups 2008-10-15 06:00:10 +00:00
Simon Michael
aac492c746 rename amount show functions 2008-10-15 00:37:38 +00:00
Simon Michael
4efdda25b4 replace Currency with a more flexible, ledger-style Commodity 2008-10-12 21:52:48 +00:00
Simon Michael
80ef214f79 nicer ghci/repl usage, update docs 2008-10-12 09:17:21 +00:00
Simon Michael
37e75d610e more tests cleanup.. prepare for per-module tests, but consolidate in Tests where I think we will stay 2008-10-10 08:16:55 +00:00
Simon Michael
3fcb1aaa6c formatting 2008-10-09 09:25:37 +00:00
Simon Michael
7db9c4c910 better zero amount checking 2008-10-03 08:21:35 +00:00
Simon Michael
8bcb3c25a4 fully haddockise Ledger 2008-10-03 07:39:09 +00:00
Simon Michael
3aa656ba69 rename LedgerEntry to Entry 2008-10-03 02:37:19 +00:00