Nikolay Orlyuk
c0d12f5d1c
Normalize amount in infereBalancingAmount ( #469 )
...
This fixes issue exposed by a fix for simonmichael/hledger#465
2017-01-11 12:09:07 -08:00
Nikolay Orlyuk
32d9365fc2
Ensure showTransaction produce a valid journal ( #466 )
...
- Make output of print to be a valid journal
- Partially reverts 419f5f2a2
Fixes simonmichael/hledger#465
2017-01-10 20:44:10 -08:00
Simon Michael
3ae8712bbc
rename data/ to examples/
2017-01-08 07:26:13 -08:00
Simon Michael
fe457fa12a
doc: update built-in docs
2017-01-05 10:43:06 -08:00
Simon Michael
631a95ba9c
bump version to 1.1.98 (1.2 alpha)
2017-01-05 10:43:06 -08:00
Simon Michael
dd86596d30
doc: rename _versions_ macro
2017-01-04 10:50:16 -08:00
Simon Michael
20bef095aa
doc: changelogs, release notes
2016-12-31 11:24:12 -08:00
Simon Michael
6072f2a8f4
doc: update generated doc files
2016-12-31 11:23:53 -08:00
Simon Michael
14c8e4d8f7
bump version to 1.1
2016-12-31 07:54:47 -08:00
Simon Michael
a1555ce964
Revert "Adding "--value"/"-V" option for balancesheet/incomestatement/cashflow and register ( #361 )"
...
This reverts commit b935cd2243
.
2016-12-31 07:54:47 -08:00
Justin Le
b935cd2243
Adding "--value"/"-V" option for balancesheet/incomestatement/cashflow and register ( #361 )
...
* Added --value options for specialized balance ouputs balancesheet, incomestatement, cashflow
* --value option for 'register' command
lib: postingsValue to convert posting amounts to market value
2016-12-31 07:48:17 -08:00
Simon Michael
78f0c403fb
doc: update generated docs
2016-12-30 14:36:27 -08:00
Simon Michael
701fb5496f
doc, cli: improvements for -B, -V, prices docs #403
2016-12-30 14:36:27 -08:00
Simon Michael
2b05970781
lib: report end date fix #403 #453
2016-12-30 14:36:27 -08:00
Simon Michael
66fcd0d4b2
lib: show report end date in debug output #403 #453
2016-12-30 14:36:15 -08:00
Simon Michael
1866d2375d
bal: with same-date market prices, use the last parsed not the highest price #403 #453
2016-12-30 11:46:13 -08:00
Simon Michael
7dcfcb05ec
lib: get effective report start/end dates
2016-12-30 11:46:13 -08:00
Simon Michael
ce8046bdb4
lib: add some debug output for market prices ( #453 )
2016-12-30 11:15:03 -08:00
Simon Michael
547e6d5438
doc: journal: clarify market prices ( #403 )
2016-12-29 12:39:39 -08:00
Simon Michael
264e81c430
lib: applyN comment
2016-12-29 11:33:34 -08:00
Simon Michael
f84324682e
lib: fix a doctest in Hledger.Data.Dates
2016-12-29 11:33:33 -08:00
Shubham Lagwankar
37b7ebfe22
use isSpace in lstrip ( #441 )
2016-12-20 09:29:12 -08:00
Simon Michael
47ca1965b2
doc: document balance assignments ( #438 )
2016-12-10 08:03:56 -08:00
Johannes Gerer
45401e538e
Balance Assignments and accounts resetting ( #438 )
...
* Changed behavior of `readJournalFiles` to be identical to `readJournalFile` for singleton lists
* Balance Assertions have to be simple Amounts
* Add 'isAssignment' and 'assignmentPostings' to Hledger.Data.Posting and Transaction
* Implemented 'balanceTransactionUpdate', a more general version of 'balanceTransaction' that takes an update function
* Fixed test cases.
* Implemented balance assignment ("resetting a balance")
* Add assertions to show function
* updated the comments
* numbering is not needed in journalCheckBalanceAssertions
* remove prices before balance checks
* rename functions
2016-12-10 07:04:48 -08:00
Johannes Gerer
74502f7e50
more general parser types enabling reuse outside of IO ( #439 )
2016-12-09 15:57:17 -08:00
Simon Michael
3c4cb4eeeb
ui: --watch: track date only when a standard period is in effect
2016-12-07 15:19:36 -08:00
Simon Michael
6aeaee17f5
ui: clarify docs of some period functions
2016-12-07 14:54:23 -08:00
Simon Michael
00e2a8a327
lib: note a problem with dbg*IO
2016-12-07 07:59:48 -08:00
Johannes Gerer
2e8e67aa09
Changed behavior of readJournalFiles
to be identical to readJournalFile
for singleton lists ( #437 )
2016-12-07 07:59:24 -08:00
Simon Michael
9952f93e97
ui: --watch date tracking fixes
...
- move the period only if it's "current" (contains the old "today" date)
- make it work on all screens, not just accounts
2016-12-02 15:36:23 -08:00
Simon Michael
e3a7f6697e
ui: --watch also tracks the current date, when appropriate
...
ie, when viewing a "current" period (the current day/week/month/quarter/year),
it will be moved to enclose the current date, if needed, whenever the system date changes.
2016-12-01 19:26:38 -08:00
Simon Michael
36c75841ee
lib: dbgIO -> dbg0IO, consistent with dbg0
2016-11-24 10:59:03 -08:00
Simon Michael
3a5091e9eb
don't show stack trace details in errors with GHC 8+
2016-11-22 14:28:39 -08:00
Simon Michael
a1411768e5
csv: create default rules file only if CSV reader succeeds
2016-11-22 13:59:31 -08:00
Simon Michael
1f2276c100
lib: mark ledger reader as experimental, don't use automatically
2016-11-20 10:42:12 -08:00
Simon Michael
98ef8f9a60
lib, cli: allow a READER: prefix on data file paths
...
This provides a way to override the file format detection logic,
useful eg for files with wrong extensions or standard input.
2016-11-20 10:32:22 -08:00
Simon Michael
7d56af5a03
lib: restrict imports, avoiding GHCI clashes
2016-11-20 10:27:16 -08:00
Simon Michael
1539b258b9
lib: more Hledger.Read cleanup
2016-11-19 08:57:03 -08:00
Simon Michael
c8fefef7e8
doc: document file reading, and some options cleanups
2016-11-18 13:26:15 -08:00
Simon Michael
b6ff170688
lib: simplify format detection, avoid ledger reader by default
...
When we don't know a file's format, instead of choosing a subset of
readers based on content sniffing, now we just try them all.
Also, LedgerReader is now used only as a last resort,
as it's not yet competitive with JournalReader.
2016-11-18 13:24:57 -08:00
Simon Michael
59ce4c987b
ledger: handle errors better in the ledger reader
2016-11-18 13:18:58 -08:00
Simon Michael
12151e05c0
lib: some Hledger.Read cleanup
2016-11-17 20:20:07 -08:00
Simon Michael
3ddc9d7432
lib: clarify file format detectors
2016-11-16 13:25:33 -08:00
Simon Michael
6a36efb7ca
set base lower bound to 4.8 to enforce GHC 7.10+
...
hledger-lib had a valid install plan with GHC 7.8, but requires GHC 7.10 to compile (currently).
Require base 4.8+ everywhere so that stack/cabal will enforce a supported GHC version early.
Also, bump hledger-ui's "stability" to "stable".
2016-11-16 13:14:02 -08:00
Simon Michael
48b0d8a395
lib: ledger reader debug logging, cleanup
2016-11-13 08:29:04 -08:00
Simon Michael
27dd1ca593
lib: add a basic ledger journal reader using ledger4's ledger-parse
...
This reader is used by default for files with suffix .ledger or .l,
and tried along with the other readers for files of unknown type.
Currently only the bare minimum of the raw parsed data is used:
transaction dates/descriptions and posting accounts/amounts,
with the rest being ignored.
Amounts are parsed the same way as in the hledger journal format.
Malformed amounts might be ignored instead of error-reported.
2016-11-12 14:22:27 -08:00
Simon Michael
4eb7a617db
lib: fix doctests
2016-11-12 14:14:04 -08:00
Simon Michael
6db6f9aa2c
lib: fix hunit tests
2016-11-12 14:13:55 -08:00
Simon Michael
2996ec971b
lib: also recognise *.hledger as hledger journal format
2016-11-12 13:55:37 -08:00
Simon Michael
c8650e0d10
comment
2016-11-12 13:54:48 -08:00