Simon Michael
d25995c1c8
refactor with DateSpan
2008-11-27 04:31:01 +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
4c97ca5514
smarter handling of priced amounts. Normalising and some basic arithmetic now preserve prices.
...
Currently, amounts with the same commodity but different prices are kept separate. Useful ?
2008-11-22 20:30:43 +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
33f06f334e
first attempt at storing per-amount price
2008-11-22 16:26:01 +00:00
Simon Michael
0b23598138
remove the hard-coded rate from Commodity
2008-10-18 10:46:49 +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
2d41368b8b
introduce MixedAmount
2008-10-17 00:57:10 +00:00
Simon Michael
648887b36f
use MixedAmount everywhere. seems to work.
2008-10-18 08:39:08 +00:00
Simon Michael
c444b02349
a first cut at mixed amounts. Accounts have a MixedAmount balance, displayed on one line
2008-10-17 03:14:23 +00:00
Simon Michael
dce8fd0dde
parse virtual and balanced virtual transactions, refactor register and transaction output
2008-10-16 06:00:46 +00:00
Simon Michael
042a8179e8
always give a proper parse error for numbers, remember precisions and thousands separators
...
(per amount for now)
2008-10-14 23:14:31 +00:00
Simon Michael
4efdda25b4
replace Currency with a more flexible, ledger-style Commodity
2008-10-12 21:52:48 +00:00
Simon Michael
01cd388c24
remove dead code, simplify cacheLedger again
2008-10-12 07:46:54 +00:00
Simon Michael
2cef939da1
rename accounts/filteraccounts fields to accountmap/filteraccountmap
2008-10-10 22:28:10 +00:00
Simon Michael
cdc5a23192
clean up imports whitespace, minimise explicit intra-app import/export declarations for now
2008-10-10 01:53:39 +00:00
Simon Michael
11342db662
simplify filtering, make cacheLedger store filtered data as well, make balance reports work a little better
2008-10-09 13:02:26 +00:00
Simon Michael
3aa656ba69
rename LedgerEntry to Entry
2008-10-03 02:37:19 +00:00
Simon Michael
6ce6029c7a
move type docs to the corresponding module descriptions and update
2008-10-03 02:04:15 +00:00
Simon Michael
8db5aa5f04
doc wording
2008-10-03 00:53:49 +00:00
Simon Michael
82e4e14e8f
move Types to Ledger/
2008-10-03 00:12:59 +00:00