| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
`l` does not exist anymore, the account depth is available as `depth`.
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
| |
The temps will not have correct depth information attached which means
a display predicate involving `depth` will most likely lead to wrong
results.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Use the value from --depth as the collapse_depth for --collapse.
|
|
|
|
|
| |
Replace the hardcoded depth of 3 with a class attribute that can later
be set from a commandline argument.
|
| |
|
|
|
|
|
| |
The current one doesn't work; also Ledger has got a much neater
command-line option to achieve the goal.
|
|
|
|
|
|
|
|
|
|
| |
The PDF manual used UTF-8 quotes like:
expr has_tag(’TAG’)
which isn't accepted by ledger.
Fixes #1898
|
|
|
|
|
|
|
| |
The code looked for "less" if $PAGER is not set, but it didn't
actually use $PAGER when it it defined.
Fixes #1674
|
|
|
|
|
| |
Without this fix, the Nix build is broken, which causes `ledger-mode` CI builds to fail.
See https://github.com/NixOS/nixpkgs/commit/887295fd2d8c4da06acdaa185cbb3cc214d83285
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
This reverts commit a6a58af28f30ee81f86604b56740d98af8b75c38.
Fixes #1907
|
|
|
|
| |
Thanks to Feiko Nanninga for the test case.
|
|
|
|
|
|
| |
This reverts commit 9ad0dcc85a3ec59a1dd23f36964d083cf59bd7a9.
Fixes #1895
|
|
|
|
|
| |
Fix error from newer cmake/FindPython versions not printing internal
Python_EXECUTABLE variable.
|
|
|
|
|
| |
Avoid needing to keep our copy updated and only keep it as a fallback
for when system cmake is not new enough.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Add tests for wrong behavior caused by commit 49b07a1c1948 ("Correction
to the way parens are parsed in query expressions") which was reverted
with commit 869302ae9ce3. The bug report was issue #1894.
|
|
|
|
| |
This reverts commit 49b07a1c19489547b859d61fbc5c240aff224dda.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
python/server.py is currently broken. Moreover, it uses jquery
and we distribute a minified jquery under python/res. Some
distros don't like minified code without the full source code due
to license concerns.
Since python/server.py is broken and not very useful, let's just
remove it, which in turns let's us remove the minified jquery.
Fixes #1759
|
| |
|
|
|
|
|
| |
Missed the readme in a413a072. +universal does not seem to work on recent mac
versions.
|
|
|
|
|
|
|
| |
This tool has limited usefulness and depends on CSVReader.cs whose
license is not 100% clear.
Fixes #1758
|
|
|
|
|
|
|
|
| |
The directive `apply account` and similar directives (fixed, year...)
require an argument. Ensure that an argument is given.
Fixes #553
Fixes #1854
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- commodity_price(NAME, DATE)
- set_commodity_price(NAME, DATE)
Using these two I am able to compute rate of return over a period of
transactions, taking additional deposits and withdrawals into account, using
the following automated transactions:
P 2019-12-31 12:00:00 ROI $1.00
2020-01-01 Start of record
(ROI) 0 ROI
= expr date >= [2020/01/01] && account =~ /Broker:Cash$/ and any(account =~ /Assets:Checking/)
(ROI) (1 ROI * (amount / commodity_price(1 ROI, date)))
= expr date >= [2020/01/01] && account =~ /:Capital:/
(ROI) (set_commodity_price(1 ROI, date, ((commodity_price(1 ROI, date) * account("ROI").amount) - amount) / account("ROI").amount) || 0 ROI)
|
|
|
|
| |
Brew changed boost-python3 to 3.8 but that isn't on the path by default.
|