summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix auto xact posts not getting applied to account total durring journal parseDJ Edmonson2018-03-231-3/+6
|
* Add (currently undocumented) function 'clear_commodity'John Wiegley2018-02-162-0/+10
|
* Merge pull request #519 from mbudde/accounts-prepend-formatJohn Wiegley2018-01-271-0/+15
|\ | | | | Add support for --prepend-format in accounts command
| * Add support for --prepend-format in accounts commandMichael Budde2018-01-251-0/+15
| | | | | | | | | | Add support for the `--prepend-format` and `--prepend-width` options in the `accounts` command.
* | Merge pull request #521 from mbudde/fix-trimAlexis Hildebrandt2018-01-271-7/+4
|\ \ | | | | | | Fix handling of edge cases in trim function
| * | Fix handling of edge cases in trim functionMichael Budde2018-01-251-7/+4
| |/ | | | | | | Fixes #520
* / [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-27126-127/+127
|/ | | | [ci skip]
* journal: Expose register_account to PythonKyle Fuller2018-01-231-0/+9
|
* Transfer null_post flags to generated postingsAaron Lindsay2018-01-091-1/+1
| | | Resolve issue where generated balanced postings would become real when the original null post was virtual.
* Fix segfault when using --market with --group-byMichael Budde2018-01-041-4/+4
| | | | | | | | | | | `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.
* Use amount_width variable for budget reportPaulo Flabiano Smorigo2018-01-031-5/+5
| | | | | Instead of using a "magic" value (12), use the proper variable to set the width.
* The "format" directive for commodities now disables "style observation"John Wiegley2018-01-013-1/+5
|
* Initialize field in constructorMichael Budde2018-01-011-2/+5
| | | | | Should fix problem with garbage being read from this field causing some test failures on my machine.
* Be a bit more defensive when calculating the budgetJohn Wiegley2017-12-301-2/+2
|
* don't add paths to files, if there is already a path that points to the same ↵Johannes Loher2017-12-291-1/+11
| | | | file
* Use an std::set instead of an std::list to store the the journal file pathsJohannes Loher2017-12-292-4/+4
|
* Expose journal expand_aliases to PythonKyle Fuller2017-12-241-0/+4
|
* account to return the depth of its last displayed parentJakob Demler2017-11-021-0/+16
|
* Strip annotation before adding exchange valueIsmaël Bouya2017-10-301-0/+3
|
* Merge pull request #494 from jjlee/fix-totalJohn Wiegley2017-10-261-0/+13
|\ | | | | Fix bug where .total used in value exprs breaks totals
| * Fix bug where .total used in value exprs breaks totalsJohn Lee2017-10-261-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | Merge pull request #484 from mk12/bug-1182-ptrJohn Wiegley2017-10-261-0/+3
|\ \ | | | | | | Fix Bug 1182: Error message for parse failure after '='
| * | Print error message if parsing predicate after '='Mitchell Kember2016-12-201-0/+3
| | |
* | | Merge pull request #482 from AndrewSav/nextJohn Wiegley2017-10-261-0/+2
|\ \ \ | | | | | | | | Fix MSVC build
| * | | Fix MSVC buildAndrew Savinykh2016-11-171-0/+2
| |/ /
* | | Merge pull request #490 from sunny256/fix-braces-warningJohn Wiegley2017-10-261-12/+13
|\ \ \ | | | | | | | | Remove compiler warning about missing braces
| * | | Remove compiler warning about missing bracesØyvind A. Holm2017-04-171-12/+13
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | 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.
* / | src/global.cc: do not parse user-specified init-file twiceIvy Foster2017-10-261-3/+1
|/ /
* | [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-05126-127/+127
| | | | | | | | [ci skip]
* | Item sorting should have access to the report scopeJohn Wiegley2017-01-049-37/+69
|/
* Further simplifications src/CMakeLists.txtJohn Wiegley2016-11-131-5/+3
|
* Disable #pragma messages from ClangJohn Wiegley2016-11-131-0/+1
|
* Escape ++ in cmake matchesJohn Wiegley2016-11-131-1/+1
|
* Don't use -isystem with g++ anymoreJohn Wiegley2016-11-131-1/+1
|
* Change src/CMakeLists.txt to notice c++ as g++John Wiegley2016-11-131-14/+19
|
* Fix 1043John Wiegley2016-11-122-10/+18
|
* Make bool implicitly convertible in Python to value_tJohn Wiegley2016-11-121-0/+1
|
* Add new reporting function quoted_rfc4180John Wiegley2016-11-122-0/+20
|
* --force-color does not require anymore --color.thdox2016-10-271-0/+3
| | | | This was reported as Bug #1109
* Fix bug 1187: Allow balance assertions with multiple posts to same accountMitchell Kember2016-10-071-1/+12
|
* Merge pull request #470 from schmave/win-strptimeJohn Wiegley2016-10-031-8/+8
|\ | | | | Fix Windows strptime
| * Fix Windows strptimeEvan Mallory2016-10-021-8/+8
| | | | | | | | This fixes the datetime-related tests in testAddition and testSubtraction in the LedgerMathTests
* | Merge pull request #471 from schmave/win-pathJohn Wiegley2016-10-031-8/+5
|\ \ | | | | | | Use boost parent_path() method instead of manual computation
| * | Use boost parent_path() method instead of manual computationEvan Mallory2016-10-021-8/+5
| |/ | | | | | | This fixes error-in-include.test, dir-apply.test, 6188B0EC.test, and 89233B6D.test when running under msys2 on Windows. The manual computation is incorrect when there are both forward slash and backward slash characters in the path.
* / Fix build under Cygwin.Ivan Vanyushkin2016-09-298-10/+23
|/
* Merge pull request #465 from dkasak/patch-1Alexis Hildebrandt2016-09-261-1/+1
|\ | | | | Fix compilation error with boost 1.61
| * Fix compilation error with boost 1.61Denis2016-09-121-1/+1
| |
* | Fix build under msys32; add Appveyor continuous buildEvan Mallory2016-09-1712-26/+27
|/ | | | | | | | | | | | * Appveyor is a continuous integration platform for Windows that is free for open source projects. See latest test build here: https://ci.appveyor.com/project/Evan/ledger/build/artifacts * Changed WIN32 to _WIN32 because this article http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system claims that it is defined by the greatest number of compilers. * Modified HAVE_ISATTY and other system defines so that system.hh compiles when cmake fails to find the relevant function. * Add missing include in test/unit/t_value.cc Almost all tests fail when you run them on msys32. I will address that in a future PR.
* Revert "[python] Add fix for Boost.Python compile errors"Alexis Hildebrandt2016-06-222-6/+0
| | | | This reverts commit 11590e134eafa768ccc4a171cc7fb216e906095f.
* Fix Bug 1147: Check balance assertions against the amount AFTERMitchell Kember2016-03-221-10/+12
|