summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Add debit field to convert commandKai Wohlfahrt2021-01-315-9/+45
| | | | | This changes the error reported when a transaction with no amount is imported.
* compare_by_commodity: Always return the result of the recursive callChristoph Dittmann2021-01-302-6/+25
| | | | | | | | | | | | | | | | | | | | | | | Commit 501fbc08ae5493db77bb34f4c4fbe1f3a3bc14e3 changed the behavior of this function to not return the "equal" result (==0) from the recursive call. Previously, the function returned the result of the recursive call unconditionally. The current behavior causes an assertion error for certain postings. The regression test added in this commit shows such a posting. I found through Travis CI that the old behavior was incomplete and caused unstable orderings, so reverting to the old behavior doesn't work. Instead, this change adds a fallback: If the recursive call that compares the prices numerically returns "equal", then compare the prices with their original commodity as a tie breaker. This commit does not change any existing ordering, it only adds deterministic ordering in a case that currently triggers an assertion error. This fixes issue #1998.
* format_t::truncate support wide charactersKuang-che Wu2021-01-174-11/+181
| | | | also add unit tests
* Fix contrib bash-completionmst2021-01-171-1/+1
| | | | Fix shellcheck warning SC2034: command appears unused. Fix completion script if used by zsh with bashcompinit.
* Support for building on older cmake versionsSanel Zukan2021-01-141-2/+3
| | | | | | | | Backported python cmake module expects at least cmake 3.7 (requested by policy), which will break builds on older cmake versions, like 3.5. This fix will omit python module inclusion for any cmake version less than 3.7 and the build will continue without problems.
* docs: add more value expressionsMartin Michlmayr2020-12-311-0/+12
|
* Do not treat balance assignments with 0 diff as a null postingDaraul Harris2020-12-055-1/+117
| | | | | | | | | | | Ledger is treating balance assignments that have a 0 diff as having a null posting, leading to the posting being auto-balanced and therefore causing incorrect values to be returned for the transaction. I fixed this by just making the posting equal to amt - amt (0 in the right commodity). Fixes #1942
* docs: add link to relevant sectionMartin Michlmayr2020-11-101-1/+1
| | | | Fixes #1963
* docs: clarify syntax of ~/.ledgerrcMartin Michlmayr2020-11-101-0/+1
| | | | Fixed #1954
* Fix regression in sorted_amountsMartin Michlmayr2020-10-302-1/+19
| | | | | | | | | | Commit 557ab32 ("Expose a new utility function for balances: sorted_amounts") split out some code into a separate function. Unfortunately, in the process an "if" statement was dropped, leading to amounts being shown that shouldn't be shown because they are smaller than the display precision. Fixes #1969
* default.nix: Fix testingMichael Raitza2020-10-301-2/+5
|
* Implement cryptographic access to files using GPGMEMichael Raitza2020-10-309-8/+401
|
* Add .yamllintMartin Michlmayr2020-10-301-0/+2
|
* Fix typo in ledger3.texiKuang-che Wu2020-10-131-1/+1
|
* Added Fedora build dependencies to README.mdMarin BERNARD2020-10-041-0/+10
| | | Added instructions to install build dependencies in Fedora 32.
* Document how to specify multiple debug flagsDaraul Harris2020-09-251-2/+3
| | | | | | | Document how to pass multiple debug flags to ledger using a regular expression. Fixes #1062
* Add support for `$XDG_CONFIG_HOME`Cédric Barreteau2020-08-284-18/+28
| | | | | `$XDG_CONFIG_HOME/ledger/ledgerrc` and `$HOME/.config/ledger/ledgerrc` are tried first when looking for an init file.
* Fix whitespace/tabsEmin Martinian2020-08-131-6/+6
|
* Make it so that the include directive sorts when using wildcards.Emin Martinian2020-08-131-4/+12
| | | | | | | | Before this commit, doing something like 'include data/*.dat' would produce undesired behaviour because the matches for 'data/*.dat' would not be sorted correctly. See https://github.com/ledger/ledger/issues/1659 for details.
* docs: fix quotation mark in man pageMartin Michlmayr2020-08-101-1/+1
|
* docs: Document new --depth in register reportsRahix2020-07-212-2/+7
|
* docs: Fix documentation for `depth`Rahix2020-07-211-1/+1
| | | | `l` does not exist anymore, the account depth is available as `depth`.
* Treat --depth like --collapse in registerRahix2020-07-211-1/+1
| | | | | | | | | | Currently, collapsing is only done when both --depth and --collapse are present. This is very unintuitive and I have even stumbled over this myself while implenting the feature. Change --depth to behave just like --collapse in all cases (except that --depth has a parameter associated. --collapse defaults to 0 to retain its old behavior).
* collapse_posts: Use the existing accounts instead of tempsRahix2020-07-212-4/+12
| | | | | | The temps will not have correct depth information attached which means a display predicate involving `depth` will most likely lead to wrong results.
* collapse_posts: Fix some postings getting lost when collapsingRahix2020-07-211-1/+1
| | | | | | | | | | Because the only_predicate and display_predicate are applied to the original posts, not the collapsed ones, they sometimes yield wrong results leading to entire transactions getting dropped erroneously. As this code is only relevant to depth == 0 collapsing (that is, the old behavior), only follow the displayed_count == 1 code-path when the depth is 0.
* collapse_posts: Fix segfault when depth is too bigRahix2020-07-211-1/+1
| | | | | | | When an account already has less depth than collapse_depth, a segfault was caused by attempting to move up the account parents until parent is NULL. Fix this by exiting early if the depth is already less than collapse_depth.
* collapse_posts: Use --depth as the collapse_depthRahix2020-07-211-2/+8
| | | | Use the value from --depth as the collapse_depth for --collapse.
* collapse_posts: Add a collapse_depth attributeRahix2020-07-212-6/+7
| | | | | Replace the hardcoded depth of 3 with a class attribute that can later be set from a commandline argument.
* first try for implementing --depth for registerjohannes@debussy2020-07-212-14/+32
|
* docs: improve the example of displaying amount in another commodityHieu Van2020-07-211-8/+3
| | | | | The current one doesn't work; also Ledger has got a much neater command-line option to achieve the goal.
* docs: avoid UTF-8 quotes in codeMartin Michlmayr2020-07-081-0/+2
| | | | | | | | | | The PDF manual used UTF-8 quotes like: expr has_tag(’TAG’) which isn't accepted by ledger. Fixes #1898
* Use PAGER when environment variable is setMartin Michlmayr2020-06-182-10/+19
| | | | | | | The code looked for "less" if $PAGER is not set, but it didn't actually use $PAGER when it it defined. Fixes #1674
* Remove the-kenny from list of maintainers in default.nixSteve Purcell2020-05-281-1/+1
| | | | | Without this fix, the Nix build is broken, which causes `ledger-mode` CI builds to fail. See https://github.com/NixOS/nixpkgs/commit/887295fd2d8c4da06acdaa185cbb3cc214d83285
* Fix typos in commentsMartin Michlmayr2020-05-2110-11/+11
|
* docs: fix grammar issuesMartin Michlmayr2020-05-211-2/+2
|
* acprep: opt flavor should build optimized binaryKuang-che Wu2020-05-191-0/+1
|
* fix acprep python3 compatibilityKuang-che Wu2020-05-181-2/+1
|
* Release 3.2.1Martin Michlmayr2020-05-182-4/+4
|
* Update NEWS for 3.2.1Martin Michlmayr2020-05-181-0/+17
|
* Fix compilation warningMartin Michlmayr2020-05-181-1/+1
|
* run demo.py test only when Python is enabledMartin Michlmayr2020-05-181-5/+7
| | | | | | | | Commit 92b6072ffd ("run demo.py with ctest") made demo.py part of the test suite. But we can only run it if Python is enabled in ledger. Fixes #1910
* Revert "Compare price annotations using their textual rendering"Martin Michlmayr2020-05-181-3/+1
| | | | | | This reverts commit a6a58af28f30ee81f86604b56740d98af8b75c38. Fixes #1907
* Add regression test for issue #1895Martin Michlmayr2020-05-181-0/+31
| | | | Thanks to Feiko Nanninga for the test case.
* Revert "Change --invert to invert displayed amounts and totals, not amounts"Martin Michlmayr2020-05-181-2/+1
| | | | | | This reverts commit 9ad0dcc85a3ec59a1dd23f36964d083cf59bd7a9. Fixes #1895
* run demo.py with ctestAndy Clayton2020-05-182-1/+6
| | | | | Fix error from newer cmake/FindPython versions not printing internal Python_EXECUTABLE variable.
* use system FindPython if newerAndy Clayton2020-05-186-2/+6
| | | | | Avoid needing to keep our copy updated and only keep it as a fallback for when system cmake is not new enough.
* Fix some typosMartin Michlmayr2020-05-163-3/+3
|
* Fix: library path issueHenrik Pingel2020-05-131-0/+1
|
* docs: mark expressions as suchMartin Michlmayr2020-05-121-3/+3
|
* docs: fix definition of format string "d"Martin Michlmayr2020-05-111-1/+1
|