Commit graph

6266 commits

Author SHA1 Message Date
Aaron Lindsay
debce12a32
Transfer null_post flags to generated postings
Resolve issue where generated balanced postings would become real when the original null post was virtual.
2018-01-09 17:53:29 -05:00
John Wiegley
c2bf7850d1
Merge pull request #508 from mbudde/market-group-by-segfault
Fix segfault when using --market with --group-by
2018-01-04 14:28:16 -08:00
Michael Budde
c0ad7e34fa Fix segfault when using --market with --group-by
`changed_value_posts::create_accounts()` reuses the `<Revalued>` account
from `display_filter`, but when clearing `changed_value_posts`
`create_accounts()` would be called before the account had been
recreated by `display_filter_posts`. This results in a segfault when
using the --group-by option.

I'm not sure if `display_filter_posts` has the same problem but I
reordered the calls there too for good measure.
2018-01-04 18:29:48 +01:00
John Wiegley
8fe509e9e1
Merge pull request #506 from pfsmorigo/budget_width
Use amount_width variable for budget report
2018-01-03 23:11:54 -08:00
John Wiegley
a140c2d743
Merge pull request #507 from kylef/patch-1
Homebrew installs Python bindings by default
2018-01-03 23:11:11 -08:00
Kyle Fuller
4281df624f
Homebrew installs Python bindings by default
As per 2dfe5715a8/Formula/ledger.rb (L19)
2018-01-03 14:20:53 -08:00
Paulo Flabiano Smorigo
d0e80c02fb Use amount_width variable for budget report
Instead of using a "magic" value (12), use the proper variable to set
the width.
2018-01-03 18:44:43 -02:00
John Wiegley
e3bcb8e87e The "format" directive for commodities now disables "style observation" 2018-01-01 12:48:16 -08:00
John Wiegley
a44947b870
Merge pull request #505 from mbudde/init-field
Initialize field in constructor
2018-01-01 12:03:54 -08:00
Michael Budde
a952e21b9f Initialize field in constructor
Should fix problem with garbage being read from this field causing some
test failures on my machine.
2018-01-01 06:24:42 -06:00
John Wiegley
2767ca07d4 Disable osx+clang build on Travis for now 2017-12-30 12:55:04 -08:00
John Wiegley
7d27992d39 Be a bit more defensive when calculating the budget 2017-12-30 12:52:36 -08:00
John Wiegley
edbde4b214 For now, comment out a documented function whose test is failing
Plus, the test was not testing the documented function!
2017-12-30 12:03:45 -08:00
John Wiegley
dc4cb5e623
Merge pull request #503 from ghost91-/next
Use an std::set instead of an std::list to store the the journal file paths
2017-12-30 11:27:12 -08:00
Johannes Loher
9409f25d0d don't add paths to files, if there is already a path that points to the same file 2017-12-29 16:44:24 +01:00
Johannes Loher
3364850cc7 Use an std::set instead of an std::list to store the the journal file paths 2017-12-29 03:23:10 +01:00
John Wiegley
77ae14230b
Merge pull request #502 from kylef/kylef/py-expand_aliases
Expose journal expand_aliases to Python
2017-12-25 10:49:07 -08:00
Kyle Fuller
a29d378030 Expose journal expand_aliases to Python 2017-12-24 19:06:06 -08:00
John Wiegley
76985dbdd8
Merge pull request #501 from d-e-s-o/fix-typo
ledger3.texi: Fix two more typos
2017-12-20 10:52:07 -08:00
Daniel Mueller
b498a1153e
ledger3.texi: Fix two more typos 2017-12-20 10:24:29 -08:00
John Wiegley
77922e1c84
Merge pull request #500 from d-e-s-o/fix-another-typo
ledger3.texi: Fix typo
2017-12-15 20:55:28 -08:00
Daniel Mueller
4d6f9071e1
ledger3.texi: Fix typo 2017-12-15 17:59:21 -08:00
John Wiegley
2cf7b7c95c
Merge pull request #499 from d-e-s-o/fix-typo
ledger3.texi: Fix typo
2017-12-15 09:24:38 -08:00
Daniel Mueller
0153805654
ledger3.texi: Fix typo 2017-12-15 08:11:03 -08:00
John Wiegley
bc8136fa6f
Merge pull request #498 from CurrySoftware/next
Allow printing the depth of the first displayed parent
2017-11-02 08:12:02 -07:00
Jakob Demler
31ef0ac936 account to return the depth of its last displayed parent 2017-11-02 14:44:58 +01:00
John Wiegley
d19adce1ff
Merge pull request #497 from mbudde/patch-1
Fix sentence broken by d1928e64
2017-10-30 14:28:38 -07:00
John Wiegley
3e0877aed9
Merge pull request #496 from immae/strip_annotation
Strip annotation before adding exchange value
2017-10-30 10:26:46 -07:00
Michael Budde
f0faf18d83
Fix sentence broken by d1928e64 2017-10-30 11:13:27 +01:00
Ismaël Bouya
0f70cca098 Strip annotation before adding exchange value 2017-10-30 05:45:25 +01:00
John Wiegley
a8a9c1a528 Merge pull request #494 from jjlee/fix-total
Fix bug where .total used in value exprs breaks totals
2017-10-26 21:04:00 -07:00
John Wiegley
2b981925e5 Merge pull request #455 from vanicat/t/read-only-error
inhibit read only when inserting in *Ledger Error*
2017-10-26 15:22:33 -07:00
John Wiegley
d1928e6483 Merge pull request #487 from craig9/craig9-improve-wording
Improve wording, remove connection between financial worth and personal worth.
2017-10-26 15:22:14 -07:00
John Wiegley
32fc002ac9 Merge pull request #488 from bkuhn/doc-mention-third-party-tutorials
Add mention of third-party tutorials to documentation
2017-10-26 15:21:09 -07:00
John Wiegley
87105d432b Merge pull request #484 from mk12/bug-1182-ptr
Fix Bug 1182: Error message for parse failure after '='
2017-10-26 15:20:51 -07:00
John Wiegley
5ed80cf7cc Merge pull request #482 from AndrewSav/next
Fix MSVC build
2017-10-26 15:20:30 -07:00
John Wiegley
c56839da68 Merge pull request #489 from AustinWise/fixXenial
Add Ubuntu 16.04 (Xenial) to acprep.
2017-10-26 15:19:47 -07:00
John Wiegley
9f6825fb42 Merge pull request #490 from sunny256/fix-braces-warning
Remove compiler warning about missing braces
2017-10-26 15:19:12 -07:00
John Wiegley
38171f39e8 Merge pull request #492 from CrackedP0t/patch-1
Fix small typo
2017-10-26 15:18:47 -07:00
John Wiegley
0cb0e30ad7 Merge pull request #491 from lrcg/patch-3
Update ledger3.texi: grammar and typos
2017-10-26 15:18:15 -07:00
John Wiegley
ca2590c639 Merge pull request #493 from escondida/double-init
src/global.cc: do not parse user-specified init-file twice
2017-10-26 15:17:55 -07:00
Ivy Foster
dab0039680 src/global.cc: do not parse user-specified init-file twice 2017-10-26 17:10:48 -05:00
John Lee
de1b48a013 Fix bug where .total used in value exprs breaks totals
* Re-initialize (to VOID) totals for the account and its ancestors on adding
  postings.  Otherwise the cache intended for use by recursive calls of C++
  function total() in computing family (i.e. account hierarchy) totals is
  incorrectly retained from one top-level call to the next, causing
  inconsistent and broken behaviour.

* Re-initialize (to false) calculated and gathered.  Otherwise we won't
  e.g. recalculate stale totals for ancestor accounts (e.g. won't recalculate
  Assets:Savings total if Assets:Savings changes via a posting).

Although the value expression total function is used by ledger itself in
computing totals, this bug would only appear on use of .total in user-supplied
value expressions computed *during parsing* of ledger files, rather than after
parsing (I believe ledger only ever calls it for internal purposes after
parsing is complete).

It is possible this bug also affected other functions than total (perhaps even
in circumstances other than analagous to that described in the preceding
paragraph).  I have not checked that.
2017-10-26 22:35:24 +01:00
Elaina Martineau
dc1a0e6b41 Fix small typo 2017-06-16 11:36:53 -06:00
myq
4cbcf2e876 Update: ledger3.texi: fix calculatiots
Unless I'm missing something, these don't balance @ $750
2017-05-28 20:28:00 -07:00
myq
da35148b02 Update ledger3.texi: grammar and typos
- removed redundant preposition
- fixed calculation on unvalidated smallexample block
2017-05-28 18:14:22 -07:00
Øyvind A. Holm
0a401f2ff0 Remove compiler warning about missing braces
Remove the following warning from gcc 5.4.0: "[...]/src/output.cc:335:6:
warning: suggest explicit braces to avoid ambiguous ‘else’
[-Wparentheses]".

Instead of adding braces around the whole function body, return early if
item.metadata is 0.
2017-04-17 00:02:01 +02:00
Austin Wise
b35fc49463 Add Ubuntu 16.04 (Xenial) to acprep. 2017-04-11 20:56:10 -07:00
Bradley M. Kuhn
842428f54f Update nodes and menus based on section just added 2017-02-23 15:11:45 -08:00
Bradley M. Kuhn
68a409c136 Section on Third-Party Tutorials available.
I was updating the tutorial that Conservancy published regarding how it
uses Ledger CLI for non-profit accounting and realized that mentioning
the tutorial's availability in Ledger's own documentation might be
useful as well.
2017-02-23 15:10:25 -08:00