Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | fix #2220, bucket transactions ignored with reg --related | Tavis Ormandy | 2023-04-18 | 2 | -1/+2 | |
| | | | | | | | | | | | | This adds a new item flag, `ITEM_INFERRED`, that differentiates generated items from bucket items. This makes them show up as related items in reports. | |||||
* | | Merge pull request #2238 from afh/cleanup-system-defines | Alexis Hildebrandt | 2023-04-19 | 12 | -113/+123 | |
|\ \ | |/ |/| | Cleanup system defines | |||||
| * | Remove unused REVERSE_PREDECESSOR_MAP guarded code | Alexis Hildebrandt | 2023-04-19 | 1 | -23/+0 | |
| | | ||||||
| * | Reorder system.hh includes | Alexis Hildebrandt | 2023-04-19 | 1 | -15/+12 | |
| | | ||||||
| * | Move app defines into ledger.hh.in | Alexis Hildebrandt | 2023-04-19 | 2 | -3/+3 | |
| | | ||||||
| * | Introduce ledger.hh | Alexis Hildebrandt | 2023-04-16 | 5 | -34/+76 | |
| | | ||||||
| * | Move DEBUG_MODE related defines to system.hh.in | Alexis Hildebrandt | 2023-04-15 | 2 | -25/+23 | |
| | | ||||||
| * | Use #cmakedefine01 for system capability checks | Alexis Hildebrandt | 2023-04-15 | 8 | -35/+35 | |
| | | | | | | | | and reply #ifdev HAVE_ with #if HAVE_ | |||||
| * | Modernize system.hh.in | Alexis Hildebrandt | 2023-04-15 | 1 | -5/+1 | |
| | | ||||||
* | | gpgme: Remove obsoleted rewind wrapper function | Alexis Hildebrandt | 2023-04-18 | 1 | -6/+2 | |
| | | | | | | | | kudos to @spacefrogg | |||||
* | | gpgme: Remove code handling versions prior to required version | Alexis Hildebrandt | 2023-04-18 | 1 | -10/+0 | |
| | | ||||||
* | | Clean-up doxygen modules | Alexis Hildebrandt | 2023-04-16 | 7 | -7/+11 | |
|/ | ||||||
* | Refactor python related types into ledger::python namespace | Alexis Hildebrandt | 2023-04-12 | 15 | -54/+65 | |
| | ||||||
* | Refactor basic_flags_t to ledger::flags::basic_t | Alexis Hildebrandt | 2023-04-12 | 13 | -27/+32 | |
| | ||||||
* | Refactor flag and pstream related types into ledger namespace | Alexis Hildebrandt | 2023-04-12 | 3 | -1/+8 | |
| | ||||||
* | Merge branch 'master' into pragma-once | Alexis Hildebrandt | 2023-04-11 | 6 | -5/+62 | |
|\ | ||||||
| * | Merge pull request #2228 from afh/api-documentation | Alexis Hildebrandt | 2023-04-11 | 6 | -4/+63 | |
| |\ | | | | | | | Fix generation of API documentation and prepare for publishing on ledger-cli.org | |||||
| | * | Update api docs | Alexis Hildebrandt | 2023-04-10 | 3 | -1/+41 | |
| | | | ||||||
| | * | doc: Minor clean-up | Alexis Hildebrandt | 2023-04-10 | 3 | -3/+22 | |
| | | | ||||||
| * | | Fix typo | Alexis Hildebrandt | 2023-04-11 | 1 | -1/+1 | |
| |/ | ||||||
* / | Use #pragma once | Alexis Hildebrandt | 2023-04-10 | 57 | -228/+57 | |
|/ | ||||||
* | Bump required Boost version to 1.72 | Alexis Hildebrandt | 2023-03-24 | 4 | -25/+0 | |
| | ||||||
* | Change a use of is_realzero to just is_zero | John Wiegley | 2023-03-23 | 1 | -1/+1 | |
| | | | | This is needed to avoid a possible divide by zero. | |||||
* | Increase string size limit in src/unistring.h assert | John Wiegley | 2023-03-08 | 1 | -1/+2 | |
| | ||||||
* | Do not perform commodity reduction when parsing a format directive | John Wiegley | 2023-03-03 | 1 | -3/+5 | |
| | ||||||
* | Enforce use of non-deprecated boost::filesystem API | Alexis Hildebrandt | 2023-02-20 | 1 | -0/+1 | |
| | | | | For details see https://www.boost.org/doc/libs/1_81_0/libs/filesystem/doc/deprecated.html | |||||
* | Fix compiler warnings | Alexis Hildebrandt | 2023-02-20 | 2 | -1/+5 | |
| | | | | minimizing use of deprecated API where possible. | |||||
* | Remove unused server related code | Alexis Hildebrandt | 2023-02-20 | 2 | -44/+0 | |
| | ||||||
* | Add info about compile features to --version | Alexis Hildebrandt | 2023-02-14 | 1 | -0/+9 | |
| | ||||||
* | When a post has no date at all, default to the current date | John Wiegley | 2023-02-06 | 1 | -2/+4 | |
| | ||||||
* | Update copyright year | Alexis Hildebrandt | 2023-02-02 | 123 | -124/+124 | |
| | | | | [skip ci] | |||||
* | Fix deprecation warnings | Alexis Hildebrandt | 2023-02-01 | 1 | -14/+18 | |
| | | | | Code clean-up | |||||
* | Remove support for Python 2.x | Alexis Hildebrandt | 2023-02-01 | 7 | -353/+7 | |
| | ||||||
* | If the amount-width has not been set, use the old default of 20 | John Wiegley | 2023-01-27 | 2 | -3/+10 | |
| | ||||||
* | Use amount_width for balance report | Vladimir Parfinenko | 2023-01-27 | 1 | -3/+3 | |
| | ||||||
* | Fix python/c++ conversion for boost::optional<T> | David Sklar | 2023-01-27 | 1 | -4/+5 | |
| | | | | | | | | | | | | | | Setters for types wrapped in boost::optional, such as item_t::note were broken, e.g. setting a note on a transaction resulted in garbled data that would cause Python to throw utf-8 errors when retrieving the note. (But setters that accessed strings directly, e.g. "payee" on a transaction worked fine.) This change alters the from-python conversion for optional-wrapped types based on the example at https://stackoverflow.com/questions/36485840/wrap-boostoptional-using-boostpython and a test case to verify the behavior. | |||||
* | Fix IDENT format comment to match recent change 35713fe79 | Donald Lam | 2023-01-27 | 1 | -1/+1 | |
| | ||||||
* | Disallow numbers in function names | John Wiegley | 2023-01-25 | 1 | -1/+1 | |
| | ||||||
* | Rename quoted_rfc4180 to quoted_rfc, to avoid parser quirk | Donald Lam | 2023-01-25 | 2 | -4/+4 | |
| | | | | | | | Ledger's expression parser considers quoted_rfc4180 to be an amount (quantity 4180 of commodity "quoted_rfc"). Fixes #2007. | |||||
* | typo and column alignment | spaette | 2023-01-23 | 1 | -1/+1 | |
| | ||||||
* | Initial fix for #2147 | WY | 2023-01-20 | 1 | -1/+1 | |
| | ||||||
* | Python: Transaction.remove_post should call xact_base_t::remove_post | David Sklar | 2023-01-10 | 1 | -1/+1 | |
| | ||||||
* | Python: test cleanups | David Sklar | 2023-01-09 | 1 | -0/+5 | |
| | | | | | | | | 1. Remove references to modules (exceptions, StringIO) no longer needed for Pythn3 2. Use assertEqual instead of assertEquals 3. Clear journal files with a close_journal_files() function that uses the then-current underlying python_session pointer. Calling session.close_journal_files() sometimes leads to segfaults because python_session has changed after it was injected into the python module (as "session") on module startup. | |||||
* | Add python support for error_context | Adam Wendt | 2022-11-13 | 1 | -0/+7 | |
| | | | | | | Added ledger.session.error_context() to py_session.cc to get the error context message when exceptions are thrown. | |||||
* | Fix balancing commodity with smaller unit. | Maria | 2022-10-11 | 1 | -1/+1 | |
| | ||||||
* | xml: Include posting-specific payee in output | Gwyneth Morgan | 2022-10-10 | 1 | -0/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In `ledger xml` export, include the `<posting>`-specific payee (from the `Payee:` tag) as `<payee>`. This data is already included under `<metadata>` as `<value key="Payee">`, but that is more specific to Ledger's implementation; if in the future there is another way to set the payee (or perhaps an option to have the Payee tag in one's own language), that field wouldn't be a reliable method of getting this info. Example: 2022-01-01 Transaction-level payee a 10 b ; Payee: Posting-level payee Relevant XML output: <transaction> <date>2022-01-01</date> <payee>Transaction-level payee</payee> <postings> <posting> <account ref="0000558defd6f260"> <name>a</name> </account> <post-amount> <amount> <quantity>10</quantity> </amount> </post-amount> <total> <amount> <quantity>10</quantity> </amount> </total> </posting> <posting> <payee>Posting-level payee</payee> <account ref="0000558defd6f960"> <name>b</name> </account> <post-amount> <amount> <quantity>-10</quantity> </amount> </post-amount> <note> Payee: Posting-level payee</note> <metadata> <value key="Payee"> <string>Posting-level payee</string> </value> </metadata> <total> <amount> <quantity>0</quantity> </amount> </total> </posting> </postings> </transaction> | |||||
* | Handle return value of PyUnicode_READY | Alexis Hildebrandt | 2022-10-02 | 1 | -1/+2 | |
| | | | | | | to ensure access macros are only called on "legacy" unicode string objects that are "ready". See https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_READY | |||||
* | Fix handling of UCS-2 encoded strings | Alexis Hildebrandt | 2022-10-02 | 1 | -1/+1 | |
| | | | | | | Add test to python/demo.py Fixes #2132 | |||||
* | Fix handling of UCS-1 encoded strings | Alexis Hildebrandt | 2022-10-02 | 1 | -11/+12 | |
| | | | | Add test to python/demo.py | |||||
* | Properly handle PyUnicode_1BYTE_DATA | Alexis Hildebrandt | 2022-07-20 | 1 | -3/+1 | |
| |