Commit Graph

4916 Commits

Author SHA1 Message Date
Simon Michael
8bc67d5ee8 print: don't lose the commodity in zero balance assertions. Related to #475 2017-01-14 10:29:33 -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
Hans-Peter Deifel
dfbb683573 Prettify option parsing errors (#478)
Megaparsec's show instance for ParseError doesn't produce digestible
strings. parseErrorPretty has to be used instead.
2017-01-13 13:10:11 -08:00
Simon Michael
b0e907e5a4 doc: print tweaks
[ci skip]
2017-01-13 12:46:45 -08:00
Mykola Orliuk
8954944ee6 Apply ModifierTransaction's from journal during hledger-rewrite. (#477)
* rewrite: rewrite every posting

Also start using ModifierTransaction

* rewrite: use journal parser for postings

* rewrite: use ModifierTransactions from Journal

See simonmichael/hledger#99
2017-01-13 12:41:16 -08:00
Mykola Orliuk
fabd6b450a Update tests to match current pivot effect (#476) 2017-01-13 11:53:06 -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
4153155ed9 site: remove old docs1 page 2017-01-13 08:24:22 -08:00
Simon Michael
2e61c037c3 cli: --pivot payee/note uses description parts before/after |
This assumes a "PAYEE | NOTE" convention in the description field,
similar to Beancount's journal syntax.  If the description has no pipe
character, payee and note are the same as the full description.
2017-01-13 08:19:42 -08:00
Simon Michael
80827321c4 cli: don't add the tag name/field name as prefix 2017-01-13 08:19:24 -08:00
Simon Michael
27d727ffad cli: rename --pivot desc to --pivot description for consistency 2017-01-13 08:05:22 -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
Pia Mancini
ec890b9455 add backers&sponsors from Open Collective (#470)
Now backers and sponsors from Open Collective will show up here automatically. 
More info here: https://github.com/opencollective/opencollective/wiki/Github-banner
example: https://github.com/apex/apex#backers
2017-01-12 16:37:49 -08:00
Moritz Kiefer
d236f7b237 Fix a few spaceleaks (#413) 2017-01-12 16:24:53 -08:00
Simon Michael
d92d777c97 site: add github stars widget to home and devguide
[ci skip]
2017-01-12 09:26:10 -08:00
Simon Michael
47a63e68e3 tools: mailmap file to clean up git log authors
[ci skip]
2017-01-12 09:25:49 -08:00
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
ea7a7d78aa Strip prices for equity report (#468)
Fixes simonmichael/hledger#467
2017-01-11 07:53:01 -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
aae61f46e2 tools: some pandoc filter fixes
[ci skip]
2017-01-10 12:36:15 -08:00
Simon Michael
ad34e4aa42 tools: remove accidentally committed pandoc executables
[ci skip]
2017-01-10 12:35:58 -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
e881a29b0e tools: move pandoc filters out of docs/
[ci skip]
2017-01-10 08:49:05 -08:00
Stefano Rodighiero
f12a57647e chmod a+x (#464) 2017-01-09 12:09:16 -08:00
Stefano Rodighiero
e8003ea524 + hledger-dupes (originally from https://github.com/larsen/hledger-dupes) (#463) 2017-01-09 09:40:51 -08:00
Simon Michael
7460aca70f chart: revive hledger-chart as an add-on
& drop the extra/ directory.
2017-01-09 07:31:45 -08:00
Simon Michael
8b354043c1 stack: bump brick to 0.15.2 to allow hledger-iadd install in hledger dir 2017-01-08 11:44:53 -08:00
Simon Michael
768501779c site: download: cleanups
[skip ci]
2017-01-08 11:32:06 -08:00
Simon Michael
0defe3951b site: docs page tweaks 2017-01-08 11:00:26 -08:00
Simon Michael
dd85fc89fa site: download: document add-ons installation 2017-01-08 11:00:10 -08:00
Simon Michael
031cad9497 bin: add-ons compile script 2017-01-08 10:24:40 -08:00
Simon Michael
a22d56ee28 bin: git ignore 2017-01-08 07:31:32 -08:00
Simon Michael
8eb77dce2b bin: add budget-rewrite.sh example 2017-01-08 07:28:23 -08:00
Simon Michael
ba99ad3388 bin: add hledger-autosync symlink as an example 2017-01-08 07:28:23 -08:00
Simon Michael
ab19a92187 bin: add register-match, convert all to stack scripts 2017-01-08 07:28:23 -08:00
Simon Michael
792c807f2c tools readme 2017-01-08 07:28:23 -08:00
Simon Michael
34ec7406a1 move add-ons and scripts to bin/ 2017-01-08 07:28:23 -08:00
Simon Michael
e7f6bfa273 move extra/ data files to examples 2017-01-08 07:26:14 -08:00
Simon Michael
3ae8712bbc rename data/ to examples/ 2017-01-08 07:26:13 -08:00