Commit Graph

5087 Commits

Author SHA1 Message Date
Mykola Orliuk
25d4917ea2 doc: extend with budget addon section 2017-01-20 13:42:17 -08:00
Mykola Orliuk
d5c2ed4fa7 budget: bucketing 2017-01-20 13:42:17 -08:00
Mykola Orliuk
3a632acea0 budget: periodic transactions support 2017-01-20 13:42:17 -08:00
Mykola Orliuk
2d9259ab3a budget: new addon 2017-01-20 13:42:17 -08:00
Simon Michael
71a9cf6bc5 site: devguide: update stackage links
[ci skip]
2017-01-20 09:07:44 -08:00
Simon Michael
1b763d166e doc: misc notes
[ci skip]
2017-01-20 09:07:44 -08:00
Simon Michael
c5f33593fa ui: changelog for 1.1.1
[ci skip]
2017-01-20 09:07:37 -08:00
Mykola Orliuk
7437c96ff6 Make hledger-rewrite tool suitable for re-factoring original journals (#490)
* cli: fix bug in pivot for postings without tag

Without this fix for postings without tag query checked effective
account which is always empty text ("").

* rewrite: inherit dates, change application order

For budgeting it is important to inherit actual date of posting if it
differs from date of transaction. These dates will be added
as a separate line of comment.

More natural order of rewrites is when result of first defined one is
available for all next rewrites.

* rewrite: factor out Hledger.Data.AutoTransaction

* rewrite: add diff output

With this option you can modify your original files without loosing
inter-transaction comments etc. I.e. you can run:

hledger-rewrite --diff Agency \
  --add-posting 'Expenses:Taxes  *0.17' \
  | patch

As result multiple files should be updated.
Also it is nice to review your changes using colordiff instead of
patch.

* lib: track source lines range for journal

* doc: auto entries and diff output for rewrite
2017-01-20 07:33:24 -08:00
Simon Michael
c61de771d4 equity: sync help message with doc 2017-01-19 08:26:03 -08:00
Mykola Orliuk
295af41f38 cli: fix bug in pivot for postings without tag (#491)
Without this fix for postings without tag query checked effective
account which is always empty text ("").
2017-01-19 07:53:00 -08:00
Simon Michael
9759b5c867 doc: clarify tags
[ci skip]
2017-01-16 16:26:51 -08:00
Simon Michael
91dbeedee4 doc: document new --pivot
[ci skip]
2017-01-16 15:53:51 -08:00
Simon Michael
e51bb6944a site: download: list more addons, less verbosely 2017-01-16 14:26:52 -08:00
Simon Michael
9a1128e276 addons: in bin/compile.sh, ensure hledger-chart's extra deps are installed 2017-01-16 14:25:10 -08:00
Simon Michael
5345e2641a regenerate cabal files with hpack
A few packages which included the Paths_* module no longer do,
and this seems ok with stack and cabal as far as I can tell.
That should be the only change, aside from a bunch of reorderings.
2017-01-16 14:23:47 -08:00
Simon Michael
ce69f17db6 lib: fix a potential build failure: add Ledger.Parse.Text to package.yaml 2017-01-16 13:52:30 -08:00
Simon Michael
8c7b0c2925 tools: temporary workaround for appveyor failures 2017-01-16 08:57:38 -08:00
Simon Michael
7b69abf62c doc: upload budget/rewrite/read-related mockups
[ci skip]
2017-01-16 07:55:25 -08:00
Mykola Orliuk
3af81a73ca txnTieKnot fix (~10% memory reduce) (#483)
* bin: ignore chart and dupes addons

* lib: fix txnTieKnot

Ensure that postings refers to their transaction rather than original
one.
This should allow compiler perform destructive update and/or allow
garbage collecting old transaction.
2017-01-16 07:42:41 -08:00
Simon Michael
d657374ac4 doc: note an issue with balance assertions & multiple -f options
[ci skip]
2017-01-14 17:49:26 -08:00
Joshua Chia
d3883bad1f Updated hledger-ui to use brick-0.16 (#479)
brick-0.16 uses Brick.BChan.BChan instead of Control.Concurrent.Chan.Chan.
2017-01-14 10:41:46 -08:00
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