summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Don't lose commodity when cost is not separated by whitespaceMartin Michlmayr2014-06-051-3/+2
| | | | | | | | When a cost was specified without a whitespace after the @ symbol, as in @$5.01, this was incorrectly parsed as 5.01 (losing the commodity) rather than $5.01. Bug fix for #1050
* Improve backwards compatibility with ledger2Martin Michlmayr2014-05-301-5/+6
| | | | | | | This brings some single character format strings in line with what they actually meant in ledger2. Bug fix for #755
* Recognize --cleared-format optionMartin Michlmayr2014-05-301-0/+1
| | | | Bug fix for #747
* Fix query string for select accountMartin Michlmayr2014-05-301-4/+4
| | | | | | | A wrong query string was generated by "select account": one ansify_if() too much was listed and justify() was called with the wrong parameters. Bug fix for #744
* Move the debug statement to where it makes more senseMartin Michlmayr2014-05-301-2/+1
| | | | | | It's possible to just say "select account" without a "from", so put the debug statement at the end of the block where the variable "formatter" is filled with the query string.
* Handle POST_COST_VIRTUAL in printMartin Michlmayr2014-05-301-2/+10
| | | | Bug fix for #1046
* Check whether a month is followed by a yearMartin Michlmayr2014-05-301-0/+11
| | | | Bug fix for #375
* Cosmetic change - format code consistentlyMartin Michlmayr2014-05-188-25/+25
| | | | | Add a space between if and the opening bracket, between a closing round bracket and the following opening curly bracket, etc.
* Fix bug introduced by commit AA2FF2Bthdox2014-05-171-4/+3
| | | | Correction is to not use uninitialized amount
* Ensure that high-levels directives have arguments if they need oneMartin Michlmayr2014-05-141-0/+8
| | | | | Ensure that high-levels directives, such as account, alias and commodity, have arguments if they need one. Bug fix for #1036
* Ensure that directives have arguments if they need oneMartin Michlmayr2014-05-141-0/+11
| | | | | Ensure that account, commodity and payee directives have arguments if they need one. Bug fix for #785
* Remove trailing whitespace from error messagesMartin Michlmayr2014-05-133-4/+4
| | | | Fix for bug #867
* Merge pull request #289 from csrhodes/payee-uuid-mappingJohn Wiegley2014-05-134-39/+63
|\ | | | | Payee uuid mapping
| * support payee uuid directiveChristophe Rhodes2014-05-132-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | The semantics of this are a little bit tricky: we want, if we come across a transaction with exactly the given UUID, to set the transaction's payee to be the specified one. We need to set that payee before the first post in the transaction is parsed, otherwise that post will inherit the wrong payee; however, we need to do it after the transaction's tags have been parsed. The implementation as it is in this commit is potentially a little wasteful, if there are post-like (non-comment non-assertion) entries in the transaction that don't successfully parse as posts.
| * rename payee_mappings to payee_alias_mappingsChristophe Rhodes2014-05-124-39/+39
| | | | | | | | (and similar renames) in preparation for payee_uuid_mappings
* | Honour date-format for lot datesMartin Michlmayr2014-05-131-1/+1
| | | | | | | | Fixes bug #383
* | Recognize the --no-pager optionMartin Michlmayr2014-05-121-0/+1
|/ | | | Thanks to Johann Klähn.
* Library GMP is not yet ready for GCC 4.9, as described at bottom of pagethdox2014-05-111-0/+1
| | | | | | | | | | | | | | | | | | | | | http://gcc.gnu.org/gcc-4.9/porting_to.html See extract below: The <cstddef> header was updated for C++11 support and this breaks some libraries which misuse macros meant for internal use by GCC only. For instance with GMP versions up to 5.1.3, you may see: /usr/include/c++/4.9.0/cstddef:51:11: error: ‘::max_align_t’ has not been declared using ::max_align_t; ^ Another possible error is: someheader.h:99:13: error: ‘ptrdiff_t’ does not name a type A workaround until libraries get updated is to include <cstddef> or <stddef.h> before any headers from that library.
* Use the POST_COST_VIRTUAL flag when exchange commoditiesJohn Wiegley2014-05-082-4/+5
| | | | Fixes #999
* Fix build for building with g++ 4.8John Wiegley2014-05-072-0/+10
|
* fix debug build for gccJohann Klähn2014-05-071-1/+0
| | | | -ansi ≡ -std=c++98 ;)
* Add the --no-pager optionJohn Wiegley2014-04-271-0/+1
|
* Initialize journal_t::no_aliases to false upon costructionJohn Wiegley2014-04-211-0/+1
| | | | This fixes a bug introduced by ecd5097d515f53703eb5dc6096da80182c452ad9.
* Require the use of C++11John Wiegley2014-04-173-9/+2
|
* Replace sha1.cc with boost::uuid::details::sha1David Bremner2014-04-174-16/+16
| | | | | | | | sha1.cc is not redistributable by Debian because the license doesn't permit redistribution of modified versions. This isn't ideal since the ::details namespace is subject to change, but it avoids adding a dependency to ledger.
* Improve an error message relating to balance assertionsJohn Wiegley2014-04-161-3/+8
|
* Add a safety check when using deferred postingsJohn Wiegley2014-04-151-4/+46
|
* Apply any outstanding deferred postings at the end of parsingJohn Wiegley2014-04-144-0/+20
|
* Add the concept of "deferred postings"John Wiegley2014-04-136-9/+52
| | | | | This is pretty much exclusively for allowing one to use balance assertions with replicated transactions across multiple files.
* The option --permissive now quiets balance assertionsJohn Wiegley2014-04-134-14/+20
|
* use /bin/sh to run the pagerMatthias Lederhofer2014-04-021-10/+2
| | | | | | This allows to specify options on the command-line of the pager, e.g. $ ledger --color --pager='less -R' ...
* Fix a compiler warningJohn Wiegley2014-03-281-1/+2
|
* CMake: Remove installation of third party codeAlexis Hildebrandt2014-03-101-3/+0
|
* Adding option --no-aliases to completely disable alias expansionPeter Feigl2014-02-264-0/+11
|
* Merge pull request #248 from ecraven/fix-warningsJohn Wiegley2014-02-262-3/+6
|\ | | | | Fixing two GCC warnings
| * Fixing two GCC warningsPeter Feigl2014-02-262-3/+6
| |
* | Adding option --recursive-aliases, adding documentation to man-page and manualPeter Feigl2014-02-264-2/+12
| |
* | fixing problem with previous commit if no aliases are registeredPeter Feigl2014-02-261-0/+2
| |
* | Adding support for recursive aliases.Peter Feigl2014-02-253-19/+60
|/ | | | | | | | | | | Alias expansion is now a loop. If you define alias A=B:A alias B=C:B then A will expand to C:B:A. Also added a short section to the manual about this.
* Attempt to convert balances to amounts before failing comparisonsJohn Wiegley2014-02-211-0/+12
|
* Merge pull request #243 from kanru/justify-cjkJohn Wiegley2014-02-164-2/+406
|\ | | | | Correctly justify Unicode characters in terminal
| * Use mk_wcwidth instead mk_wcwidth_cjkKan-Ru Chen (陳侃如)2014-02-131-2/+2
| |
| * Correctly justify Unicode characters in terminalKan-Ru Chen (陳侃如)2014-02-134-2/+406
| | | | | | | | | | | | | | Many Unicode characters take more spaces than one ASCII character. For example, Chinese characters are two characters wide when using monospace font in terminal. This patch use wcwidth of Markus Kuhn to count the correct width for justification.
* | Fix apply_year_directiveAlexis Hildebrandt2014-02-121-2/+2
|/ | | | | | Using the Y 2014 syntax works fine, but using apply year 2014 resulted in the following error: Error: Year is out of valid range: 1400..10000 since part of the given year string was chopped off.
* Correctly set runtime path on Linux on installAlexis Hildebrandt2014-02-031-1/+1
|
* Bump copyright information to 2014Alexis Hildebrandt2014-02-02128-129/+129
|
* initialize member variables of posts_to_org_tableJohann Klähn2014-02-011-1/+2
| | | | This fixes test/baseline/cmd-org.test when built with clang.
* Create default scope from python session only if neededAlexis Hildebrandt2014-02-011-3/+5
| | | | | | Fixes test failures introduced with the commit "Create default scope to read journal" a9078767b8224a223f8942a1cb80d4544024387b
* python module file suffix is platform dependentJohann Klähn2014-02-011-3/+13
|
* Fix shared library and python moduleAlexis Hildebrandt2014-02-011-3/+12
| | | | | Conflicts: src/CMakeLists.txt