summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Merge pull request #449 from ppickfor/nextJohn Wiegley2016-03-141-4/+6
|\ | | | | Use interval start date (period from/since) to initialize first period.
| * Periods should be initialized from from/since clause rather than earliest ↵Peter Pickford2016-03-091-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | transaction date Bug 1159 Use interval start date (period from/since) to initialize first period. This allows the offset of a period start to be specified -p 'every 12 months from 2000-04-01' will have periods yyyy-04-01 to yyyy-03-31 .... If no from/since is specified for the period the first transaction date reported is used to initialize the period as before. added test case regress/1159.test
* | days - do not stabalize periods spacified in daysPeter Pickford2016-03-131-12/+26
|/ | | | | | | | weeks - calculate start date for finding period using remainer 400/periodlength to reduce number of iterations (perhaps this ought to follow the same conventio as years months and quarters) add sample period command tests add add day period tests for forecasts and budgets add week period tests for forecasts and budgets - these do not change
* Increase maximum length for regexMartin Michlmayr2016-02-151-2/+2
| | | | Fixes bug #981
* [python] Remove double quotes from unicode valuesAlexis Hildebrandt2016-01-111-1/+0
| | | | | When converting a ledger.Value to unicode the Python API added double quotes around it.
* Make -A to imply -EJohn Wiegley2016-01-091-0/+1
|
* [python] Add fix for Boost.Python compile errorsAlexis Hildebrandt2016-01-022-0/+6
| | | | when using boost version 1.60.0.
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-02126-127/+127
| | | | [ci skip]
* Add workaround for Boost.Python compile errorsAlexis Hildebrandt2015-09-151-0/+12
| | | when using version 1.59.0
* Merge pull request #424 from thdox/bug-1057John Wiegley2015-08-041-1/+1
|\ | | | | Add regression test file for bug #1057