Commit Graph

725 Commits

Author SHA1 Message Date
Simon Michael
d657374ac4 doc: note an issue with balance assertions & multiple -f options
[ci skip]
2017-01-14 17:49:26 -08:00
Simon Michael
39662260cd cli: use a blank acct name for postings without the specified pivot tag
Eg. if you --pivot code, postings from transactions with no code value
were formerly displayed with the unpivoted account name, so you'd see
a mixture of account names and codes. Now we always pivot the account name,
to blank if nothing else. This probably makes reports pretty ugly, it's just another
step towards making --pivot's behaviour clearer.
2017-01-13 14:06:23 -08:00
Simon Michael
b0e907e5a4 doc: print tweaks
[ci skip]
2017-01-13 12:46:45 -08:00
Simon Michael
bc922cc12f doc: update generated docs 2017-01-13 08:25:43 -08:00
Simon Michael
0ede127132 manual tweaks 2017-01-13 08:25:03 -08:00
Simon Michael
80827321c4 cli: don't add the tag name/field name as prefix 2017-01-13 08:19:24 -08:00
Mykola Orliuk
76867c98a3 Feature/pivot implicit tags (#460)
* Add implicit tags code/desc/payee for --pivot

Additionally allow using of transaction inherited tags.

* Use original posting in query by account name

To be able to query on individual postings and by account name it is
useful to have access to original account name (before pivot).
Especially this is useful when all postings within transaction gets
the same pivot name due.
As a side effect we'll match by alias.

Note: to query on amt it usually expected to see matches with inferred
amounts.
2017-01-13 08:02:11 -08:00
Simon Michael
2f5b96b4ae print: update manual, tweak help #442 2017-01-13 07:29:31 -08:00
Simon Michael
e87906f960 print: reserve short -x flag, --explicit is sufficient 2017-01-13 07:29:27 -08:00
Simon Michael
b2b1bf3038 tools: bench.hs cleanup 2017-01-13 07:27:07 -08:00
Mykola Orliuk
015b764d00 Preserve implicit amounts and prices the way user wrote them in output of print command (#471)
* Remember original postings during infer and pivot

This includes such functions like:
- inferFromAssignment
- inferBalancingAmount
- inferBalancingPrices
- pivotPosting

* Use original postings for hledger print

- Introduce "--explicit" option for "print" command which brings back
  old behavior when every inferred number being printed.
- Make "print" by default print original postings without inferred
  amounts. But use effective account name to have effect from aliases.
- Instruct shell tests with an new expected output or to use
  --explicit option when inferred amounts are checked.

Resolves simonmichael/hledger#442
2017-01-13 07:25:44 -08:00
Moritz Kiefer
d236f7b237 Fix a few spaceleaks (#413) 2017-01-12 16:24:53 -08:00
Simon Michael
af71a020ff doc: explain print's CSV output
[ci skip]
2017-01-10 12:23:54 -08:00
Simon Michael
082b156e87 doc: simplify balance doc file name 2017-01-10 12:05:26 -08:00
Simon Michael
1b44b2cddf doc: note hledger man page include files structure 2017-01-10 12:05:26 -08:00
Simon Michael
7dfb424f3f Revert "print: omit the last posting amount, as we used to #465, #442"
This reverts commit 29183e7ddd.
2017-01-10 12:05:25 -08:00
Simon Michael
29183e7ddd print: omit the last posting amount, as we used to #465, #442
This avoids printing invalid journal format for entries where an implicit amount has multiple commodities.
2017-01-10 09:41:27 -08:00
Simon Michael
4abd029bae print: ensure 0 amounts also appear in the "debit" field 2017-01-10 08:58:11 -08:00
Simon Michael
5fa8780e3f print: rename second CSV "status" field to posting-status 2017-01-10 08:54:38 -08:00
Simon Michael
34ec7406a1 move add-ons and scripts to bin/ 2017-01-08 07:28:23 -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
a57c1bde08 bal: with -V, don't ignore market prices in the future #453 2016-12-30 11:46:13 -08:00
Simon Michael
fa431f9544 doc: cli: add a new section on report start/end dates (#403)
and more linkage among the cli date docs.
2016-12-29 12:39:16 -08:00
Simon Michael
2eb5736abb doc: the latest input files doc updates 2016-11-22 14:24:50 -08:00
Simon Michael
0dadeffcbc doc: more input files cleanup 2016-11-21 08:29:50 -08:00
Simon Michael
64a877bff0 doc: input files cleanup 2016-11-21 08:21:14 -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
a8ca9e83d9 fix "oldtime" dep typo more (fixes #431) 2016-11-19 08:52:27 -08:00
Simon Michael
2eb7db202f fix "oldtime" dep typo in hledger package (fixes #431) 2016-11-19 07:31:16 -08:00
Simon Michael
c8fefef7e8 doc: document file reading, and some options cleanups 2016-11-18 13:26:15 -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
45684f2f79 tighten up dep bounds among the hledger packages 2016-10-27 14:37:14 -07:00
Simon Michael
6d0716b0a5 bump packages (excluding hledger-api and docs) to 1.0.1 2016-10-27 08:14:35 -07:00
Simon Michael
2e10f21f26 doc: update changelogs and relnotes outline (but not relnotes page) for 1.0.1 2016-10-27 08:10:24 -07:00
Simon Michael
d0e9b70e4f doc: release note/changelog fixes 2016-10-27 07:43:44 -07:00
Simon Michael
8bc0538778 allow megaparsec 5.0 or 5.1 for stackage compatibility 2016-10-27 07:19:26 -07:00
Simon Michael
13a8f21dc5 cli: fix benchmark build failure (fixes #423) 2016-10-27 07:00:36 -07:00
Simon Michael
08f97dd9c8 doc: project/package change logs, web release notes 2016-10-26 13:34:28 -07:00
Simon Michael
315db5621a doc: bump version to 1.0, update manuals & cabal files 2016-10-26 13:34:27 -07:00
Simon Michael
ee2ced7f65 set an upper bound on megaparsec 2016-10-26 13:34:27 -07:00