summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Merge branch 'next'John Wiegley2009-11-1233-552/+914
|\ \ \ \ \ \
| * | | | | | Added a Journal.collect method to PythonJohn Wiegley2009-11-121-0/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lets you run standard report queries against a Ledger journal and get back a collection of postings, for example: import ledger journal = ledger.Journal("sample.dat") posts = journal.collect("-M assets") for post in posts: print post.account However, this code is not really working yet for a large variety of reasons, having to do with object life-time, shallow copying, and lack of reference counting where it should be. For instance, calling ledger.Journal().collect() fails because the temporary journal object is destroyed and the collection now has a host of bad pointers. Using "for post in journal.collect()" fails too with other bad pointers. And the whole lot of it crashes on exit at the moment.
| * | | | | | Removed unnecessary codeJohn Wiegley2009-11-121-1/+1
| | | | | | |
| * | | | | | Set call policies for accessing post.xdata.accountJohn Wiegley2009-11-121-2/+4
| | | | | | |
| * | | | | | Added a collect_posts handlerJohn Wiegley2009-11-121-0/+29
| | | | | | |
| * | | | | | Reordered the export_ calls in pyinterp.ccJohn Wiegley2009-11-121-6/+6
| | | | | | |
| * | | | | | Reorganized a bit of the reporting codeJohn Wiegley2009-11-122-48/+55
| | | | | | |
| * | | | | | Added has_xdata() methods for journal_t and xact_tJohn Wiegley2009-11-128-2/+45
| | | | | | |
| * | | | | | Made ~post_t virtualJohn Wiegley2009-11-121-1/+1
| | | | | | |
| * | | | | | session_t now holds a std::auto_prt<journal_t>John Wiegley2009-11-124-19/+19
| | | | | | |
| * | | | | | Moved report normalization into report.ccJohn Wiegley2009-11-124-174/+174
| | | | | | |
| * | | | | | All commands are now documented in the man pageJohn Wiegley2009-11-121-37/+261
| | | | | | |
| * | | | | | Removed unused codeJohn Wiegley2009-11-121-2/+0
| | | | | | |
| * | | | | | Renamed the pricesdb command to pricedbJohn Wiegley2009-11-123-8/+8
| | | | | | |
| * | | | | | Added new value expressions for value conversionJohn Wiegley2009-11-112-0/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They are: to_boolean to_int to_datetime to_date to_amount to_balance to_string to_mask to_sequence
| * | | | | | Transactions now verified after applying auto xactsJohn Wiegley2009-11-112-1/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This way you cannot violate the balancing rules, not even by adding a stray posting via an automated transaction.
| * | | | | | Added --date, similar to --account and --payeeJohn Wiegley2009-11-117-5/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lets you do things like store a date as the value of a tag, then run: ledger --date='has_tag("Foo") ? to_date(tag("Foo")) : date' reg
| * | | | | | Did away with the "finalizer" abstractionJohn Wiegley2009-11-118-246/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was from an earlier time, when it was intended to be used by Python. But it's not needed anymore.
| * | | | | | Use ledger::string only if VERIFY_ON or BOOST_PYTHONJohn Wiegley2009-11-112-0/+12
| | | | | | |
| * | | | | | Restore the Doxygen documentation buildJohn Wiegley2009-11-113-6/+8
|/ / / / / /
* | | | | | Merge branch 'next'John Wiegley2009-11-1141-434/+849
|\ \ \ \ \ \
| * | | | | | Value.to_sequence returns a valid Python sequenceJohn Wiegley2009-11-112-0/+5
| | | | | | |
| * | | | | | Added some missing calls to add_postJohn Wiegley2009-11-112-0/+3
| | | | | | |
| * | | | | | Added floor() value expression functionJohn Wiegley2009-11-112-0/+9
| | | | | | |
| * | | | | | Automated postings defer amount expression calculationJohn Wiegley2009-11-119-73/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows for value expressions to be used which reference the incoming posting, for example: = Income:Clients: (Liabilities:Taxes:VAT1) (floor(amount) * 1) (Liabilities:Taxes:VAT2) 0.19 2009/07/27 * Invoice Assets:Bank:Checking $1,190.45 Income:Clients:ACME_Inc The automated posting for VAT1 will use the floored amount multiplied by a factor, while the posting for VAT2 multiples the whole amount as before.
| * | | | | | Added floored() and in_place_floor() methodsJohn Wiegley2009-11-118-93/+169
| | | | | | |
| * | | | | | Value.basetype in Python returns a Value's base typeJohn Wiegley2009-11-111-0/+18
| | | | | | |
| * | | | | | Timeclock events now record their file positionJohn Wiegley2009-11-113-56/+64
| | | | | | |
| * | | | | | Added a --prepend-format optionJohn Wiegley2009-11-114-14/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lets you, for example, debug registers that cull data from many different sources, without having to change the basic formatting string. You can locate each posting's location with this: ledger reg --prepend-format='%-25(filename + ":" + beg_line)'
| * | | | | | Timeclock entries can now have notesJohn Wiegley2009-11-113-18/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example of a tagged entry: i 2009/11/01 12:00:00 Account Payee ; :Foo: o 2009/11/01 13:00:00 Two spaces or a tab must separate account from payee, and payee from note.
| * | | | | | Removed "account" as a report query keywordJohn Wiegley2009-11-111-2/+0
| | | | | | |
| * | | | | | Added a few missing explicit instantiationsJohn Wiegley2009-11-101-2/+9
| | | | | | |
| * | | | | | Fixed automated posts not appearing in bal reportsJohn Wiegley2009-11-101-0/+1
| | | | | | |
| * | | | | | Added implicit Python conversion of time_duration_tJohn Wiegley2009-11-101-12/+86
| | | | | | |
| * | | | | | Added a --no-git flag to acprepJohn Wiegley2009-11-101-10/+15
| | | | | | |
| * | | | | | All strings passed to Python are now Unicode objectsJohn Wiegley2009-11-105-103/+132
| | | | | | |
| * | | | | | Fixed an erroneous use of operator>> in textual.ccJohn Wiegley2009-11-101-1/+1
| | | | | | |
| * | | | | | Moving the #include of unistring.h into format.hJohn Wiegley2009-11-105-4/+2
| | | | | | |
| * | | | | | Python Unicode objects are now handledJohn Wiegley2009-11-102-10/+69
| | | | | | |
| * | | | | | Fixes to Python importing; removed "hello" precommandJohn Wiegley2009-11-107-115/+142
|/ / / / / /
* | | | | | Merge branch 'next'John Wiegley2009-11-1024-245/+398
|\ \ \ \ \ \
| * | | | | | In tools/push, run acprep upload from masterJohn Wiegley2009-11-101-0/+2
| | | | | | |
| * | | | | | Moved automatic acprep upload call to tools/pushJohn Wiegley2009-11-102-2/+1
| | | | | | |
| * | | | | | Added new file relating to query_t -> predicate_tJohn Wiegley2009-11-101-0/+46
| | | | | | |
| * | | | | | Automated transactions now use report query syntaxJohn Wiegley2009-11-105-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This returns their behavior back very close to what 2.x accepts.
| * | | | | | query_t objects are now convertible to predicate_tJohn Wiegley2009-11-103-2/+14
| | | | | | |
| * | | | | | Whitespace fixJohn Wiegley2009-11-101-4/+4
| | | | | | |
| * | | | | | Corrected the parsing of data file directivesJohn Wiegley2009-11-101-9/+15
| | | | | | |
| * | | | | | Fixes to the value expression parser and evaluatorJohn Wiegley2009-11-106-74/+81
| | | | | | |
| * | | | | | If -v is used, valexpr errors are more informativeJohn Wiegley2009-11-101-0/+23
| | | | | | |