summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* docs: add has_meta() to the manualMartin Michlmayr2020-05-111-0/+5
|
* docs: add description for "tag regex"Martin Michlmayr2020-05-111-0/+1
|
* docs: fix some typosMartin Michlmayr2020-05-113-4/+4
|
* docs: add missing parameters for has_meta and metaMartin Michlmayr2020-05-111-2/+2
|
* Improve testcase for issue #1894 slightlyMartin Michlmayr2020-05-091-3/+8
|
* Add regression tests for issue #1894Rahix2020-05-092-0/+37
| | | | | | 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.
* Revert "Correction to the way parens are parsed in query expressions"John Wiegley2020-05-072-47/+9
| | | | This reverts commit 49b07a1c19489547b859d61fbc5c240aff224dda.
* Improve conditional for exclusive optionsMartin Michlmayr2020-05-071-1/+1
|
* Release 3.2.0Martin Michlmayr2020-05-013-6/+6
|
* Update NEWS for 3.2Martin Michlmayr2020-05-011-5/+35
|
* Remove python/server.py and minified jqueryMartin Michlmayr2020-04-3015-614/+0
| | | | | | | | | | | | 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
* update macports dependencies for python 3Andy Clayton2020-04-292-4/+4
|
* remove +universal for macports instructionsAndy Clayton2020-04-291-3/+3
| | | | | Missed the readme in a413a072. +universal does not seem to work on recent mac versions.
* Remove contrib/ParseCcStmtMartin Michlmayr2020-04-283-353/+0
| | | | | | | This tool has limited usefulness and depends on CSVReader.cs whose license is not 100% clear. Fixes #1758
* Ensure that apply directives have an argumentMartin Michlmayr2020-04-272-0/+22
| | | | | | | | The directive `apply account` and similar directives (fixed, year...) require an argument. Ensure that an argument is given. Fixes #553 Fixes #1854
* Fix buffer overflow when evaluating pricing dateSarah Jamie Lewis2020-04-271-0/+4
|
* Increase the error display text limitJohn Wiegley2020-04-261-1/+1
|
* Add two (for the moment undocumented) functions:John Wiegley2020-04-232-0/+25
| | | | | | | | | | | | | | | | | | | | - 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)
* fix CI with brew changing to python 3.8Andy Clayton2020-04-091-0/+2
| | | | Brew changed boost-python3 to 3.8 but that isn't on the path by default.
* Update URL for ISO codesMartin Michlmayr2020-04-081-1/+1
|
* fix: Fix #543 by tracking an account's real balanceDaraul2020-04-058-7/+127
| | | | | | | | | | | | | | Without these changes, whether an account's balance is virtual or real is not considered when asserting it's balance. This lead to situations where the user must consider their virtual postings when attemping to assert the real balance of the account. See test/regress/543_a.test for that testcase, taken from the original issue. This commit also includes other, fringe, situations that I noticed while working on the fix. It essentially just adds a separate attribute to the account class(?) that hold's the account's "real" balance, which is only updated when the user attempts an assertion on a real account. The virtual account's balance is updated the way it always was.
* fix macports dependencies on 10.14+Andy Clayton2020-04-041-8/+8
| | | | | | | | | | 10.14+ does not support universal builds: Error: python27 cannot be installed for the configured universal_archs 'x86_64 i386' because the arch(s) 'i386' are not supported. From https://trac.macports.org/ticket/57369#comment:6 You just can't install ports universal on Mojave, so don't try to do so. Don't specify +universal on the command line
* Make explicit option a no-opCandyAngel2020-04-037-33/+8
| | | | Fixes #1877
* use built-in cmake precompiled header support when availableAndy Clayton2020-04-022-3/+13
| | | | | | | | | | | | | Ledger supports precompiling headers as a build speed optimization. This is provided via a custom add_pch_rule macro. Similar functionality is now built-in to CMake starting with the 3.16 release in November 2019. Let's use this when available to fix #1774 and start towards not needing to maintain our own implementation. I originally considered removing the macro fallback but in my tests it saves enough build time that I think it is worth keeping for now. Fixes #1774
* Document --average-lot-prices optionMartin Michlmayr2020-03-312-0/+7
|
* Update python-dev dependencyMartin Michlmayr2020-03-281-2/+2
| | | | | Update python-dev dependency, although arguably it could be dropped since libboost-python-dev depends on it already.
* Update default.nix to match more closely what nixpkgs is usingJohn Wiegley2020-03-271-24/+33
|
* Update default.nix to match what nixpkgs is usingJohn Wiegley2020-03-271-19/+23
|
* Look up annotated amounts within balances by their displayed nameJohn Wiegley2020-03-272-2/+35
|
* Compare price annotations using their textual renderingJohn Wiegley2020-03-271-1/+3
|
* Add an assertion to src/xact.ccJohn Wiegley2020-03-271-0/+2
|
* Simple whitespace fixJohn Wiegley2020-03-271-1/+1
|