Re: Smooth sailing in 10.8

2012-07-30 Thread John Wiegley
bongoman rich...@infoarts.com.au writes: I'm having trouble installing in 10.8 using Brew. I've reinstalled Brew and the XCode command line tools (but not XCode itself). I hit this error: Warning: inreplace in 'acprep' failed Expected replacement of ''-arch', 'i386', '

Re: Smooth sailing in 10.8

2012-07-26 Thread John Wiegley
Zack Williams zdw...@gmail.com writes: Just a friendly heads up - Ledger 3 works fine in Mac OS X 10.8 (Mountain Lion) with Xcode 4.4 and support libraries built via MacPorts. Great, thanks! I'll probably be upgraded in 1-2 months. John

Re: default values format

2012-07-23 Thread John Wiegley
Alexandre Rademaker aradema...@gmail.com writes: https://github.com/jwiegley/ledger/issues/71 Issue opened! Thanks for that! But I don't use the GitHub issues tracker. It's only there so people who don't know about Bugzilla have a place to send me issues. The real bug tracker is here:

Re: Segmentation fault with --unbudgeted but all account have a budget

2012-07-13 Thread John Wiegley
Qwertyu sch...@gmail.com writes: Segmentation fault with --unbudgeted but all accounts have a budget Thanks! I'll look into this. In future, can you submit bugs and attachments to the Bugzilla tracker at http://bugs.ledger-cli.org? I'll add your bugs there, but if you add them then you get

Re: reflecting only Credit of an account in report

2012-07-12 Thread John Wiegley
Anton Vodonosov avodono...@gmail.com writes: Is it possible to include only Credit of an income account into a ledger report? You can use the --dc report in 3.x to separate credits from debits. John

Re: Setting precision on the command line

2012-07-02 Thread John Wiegley
Martin Michlmayr t...@cyrius.com writes: Is there a way so I can tell ledger - ideally on the command line - to limit precision to 2 digits, so I'll get the same result as what my broker shows? At present there is no trap for this. I'll have to think about it. It may be really easy, or it

Re: selecting by payee

2012-06-25 Thread John Wiegley
rtjmay r...@rtjmay.ca writes: The latest 3.0 documentation on the website reflects the change from -- to payee/@, but the last example in section 4.8 still uses the -- style to filter by payee. Fixed, thanks! John

Re: Commodities and labels in reports

2012-06-14 Thread John Wiegley
pat barta patrickba...@patrickbarta.com writes: This is really a question of appearances, I understand, but is there some other logic at work here? To my eye, the second report is easier to understand or explain. It just ended up being a lot more difficult to do it below than above, that's

Re: acprep issues in origin/next

2012-06-12 Thread John Wiegley
Trent W Buck trentb...@gmail.com writes: File ./acprep, line 402, in products_directory if not self.options.products_dir: AttributeError: Values instance has no attribute 'products_dir' This part is fixed, sorry for the mixup. John

Re: Monthly summary of highest account levels?

2012-06-11 Thread John Wiegley
DougW dwegsch...@gmail.com writes: I am trying to get a month-by-month summary of the highest account level. I just start with ledger-cli 2.61 (Windows) on Saturday, using a consolidation of data created from multiple years of exported GnuCash data. # ledger -M reg ^Income Try adding

Re: Balance Report showing all accounts

2012-06-10 Thread John Wiegley
Siddharth Sharma s...@svs.io writes: Ah, so we agree! There is no way to get a line for just Assets in my example. Just using --empty should do it. John

Re: Getting start with Ledger and Python

2012-06-04 Thread John Wiegley
, AccountXDataDetails, Amount, FileInfo, Journal, PostCollectorWapper, and PostHandler. I guess this is about 25% of the overall work required. Ouch! 8. Depending on any feedback from John Wiegley or other interested parties, update the Python bridge implementation, and modify

Re: Getting start with Ledger and Python

2012-06-04 Thread John Wiegley
Stefan Tunsch stun...@gmail.com writes: Hi! I am a Python developer, also interested in developing a good interface from Python to ledger. I have also taken a look at projects like beancount, who are reimplementations of ledger in Python, but I would prefer to stick to the original

Re: RESTful web service API to Ledger

2012-06-04 Thread John Wiegley
Tim Crews t...@code-affinity.com writes: I've been thinking of the role of the APIs (both REST and Python) within the context of the organizational problems that some Ledger users need help with, especially the requirement to provide accountants with a graphical user interface other than

Re: building recent git src with --prefix

2012-06-04 Thread John Wiegley
Andreas Reuleaux reule...@web.de writes: OK, here it is (and I don't see any -DCMAKE_PREFIX_PATH=/opt/ledger): Hmm.. that sounds like our problem. acprep should have printed out: Installation prefix = /opt/ledger Can you try --prefix /opt/ledger, without the =? Thanks, John

Re: building recent git src with --prefix

2012-05-30 Thread John Wiegley
Andreas Reuleaux reuleaux-S0/gaf8t...@public.gmane.org writes: My commands for building ledger (3.0) from git used to be: [...] i. e. I passed the --prefix option to configure, because I wanted the resulting ledger executable and all its accompanying support files to live in /opt/ledger.

Re: Getting start with Ledger and Python

2012-05-30 Thread John Wiegley
Tim Crews tim-QJ3Fn9itRil4wfmgmkLWVgC/g2k4z...@public.gmane.org writes: I've been reviewing the entire Python API with an eye towards putting together an equivalent RESTful web API (see other post), and in the process I think I see a few other functions that might be more Pythonic if they

Re: Ledger has switched to CMake

2012-05-28 Thread John Wiegley
Philip Rooke phil-en7ojfye3rc1qrn1bg8...@public.gmane.org writes: (As an aside, I am not quite sure what ./acprep proof does. Would you expect me to be able to run it? I did try it and got a cmake error, followed this failure with ./acprep gitclean which then failed with a git error. But

Re: Ledger has switched to CMake

2012-05-28 Thread John Wiegley
Tim Crews tim-QJ3Fn9itRil4wfmgmkLWVgC/g2k4z...@public.gmane.org writes: Since the intent of BOOST_PYTHON appears to be that it will be python if USE_PYTHON is enabled and the Python libraries are found, and blank otherwise, I simply commented out the OPTIONAL_COMPONENTS argument of

Re: Ledger has switched to CMake

2012-05-24 Thread John Wiegley
Hyrum K Wright hyrum-krattusis2oizk9zyxr...@public.gmane.org writes: It also appears the minimum required version of the Boost libraries has been bumped, and those libraries aren't yet part of the standard Ubuntu distribution (as of 12.04). Yes, the oldest tested-and-working Boost so far is

Re: Ledger has switched to CMake

2012-05-23 Thread John Wiegley
Philip Rooke phil-en7ojfye3rc1qrn1bg8...@public.gmane.org writes: Thanks, yes that change does work. The libraries under their 'libboost_regex-mt' variant are now found. OK, I'll remove that restriction. Just for the record the build then failed when looking for gettext. Bah, I haven't

Re: Wacky MPFR error with latest build

2012-05-22 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: This was a local problem. I don't really understand what was going on but I finally ditched macports (again) and built mpfr, gmp, and boost from source then ledger worked as it always has. That is really super odd! I had

Re: Build error: new clone on OS X

2012-05-22 Thread John Wiegley
ed ed.temp.01-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Still don't understand how this new scheme works, do I need to rerun cmake after each update or will acprep do that for me? CMake is supposed to be run automatically as necessary by acprep. There are known issues with using the

Re: Build error: new clone on OS X

2012-05-22 Thread John Wiegley
ed ed.temp.01-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Oh, and it builds MUCH more quickly. Yeah, I fixed pre-compiled headers. S much easier to get working with CMake than with autoconf. John

Re: Build error: new clone on OS X

2012-05-22 Thread John Wiegley
Hyrum K Wright hyrum-krattusis2oizk9zyxr...@public.gmane.org writes: I have also seen this error, on an old clone after running 'git clean -dfx'. Were you able to finally get it working? John

Re: Build Failure OS X (version.m4 missing)

2012-05-22 Thread John Wiegley
ed ed.temp.01-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I'll start a new thread, I deleted my ledger directory and started with a new clone, now got a python error. What is the error you're getting? John

Re: Ledger has switched to CMake

2012-05-22 Thread John Wiegley
~ Mitchell Surface ~ msurface-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I respect your decision to switch to CMake, it's your baby, right? But I just wanted to let you know, not everyone can use the latest version. Ubuntu 11.10 uses 2.85 and and 12.04 uses 2.87. So if ledger really

Re: Compile-time warnings

2012-05-22 Thread John Wiegley
Hyrum K Wright hyrum-krattusis2oizk9zyxr...@public.gmane.org writes: My lastest build results in the following compile-time warnings. Many of them are duplicates, but are included here for completeness. Sorry I don't have time right now to look into them personally. Just a data point: I'm

Re: Ledger has switched to CMake

2012-05-21 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Anyway, this looks like a local problem. I am still not sure how to deconflict the mpfr I have in /usr/local/lib with the macports mpfr in opt/local/lib/ I renamed the /usr/local/lib libraries just to see if I could get

Re: Ledger has switched to CMake

2012-05-21 Thread John Wiegley
Philip Rooke phil-en7ojfye3rc1qrn1bg8...@public.gmane.org writes: Have to admit I am not making much progress at the moment. Basically I can't get Cmake to admit that I really do have boost installed. The following variable settings might help: cmake -DBOOST_ROOT=/usr/local

Ledger has switched to CMake

2012-05-20 Thread John Wiegley
Hey everyone, Ledger's build system has just switched to CMake. My reason for doing it now: 1. Maintenance is no longer a nightmare! Easier to maintain means fewer bugs, and it should be easier to track down user issues. 2. acprep is *much* smaller; it's just a thin wrapper now. 3.

Re: Build failure

2012-05-20 Thread John Wiegley
Peter Keen peter.keen-qpbGg102UtMk+I/owrr...@public.gmane.org writes: I'm getting this error as well: src/ptree.cc: In member function 'virtual void ledger::format_ptree::flush()': src/ptree.cc:71: error: expected initializer before '*' token src/ptree.cc:72: error: 'post' was not declared

Re: Ledger has switched to CMake

2012-05-20 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: 05:59:12 ~/ledger (next) ./acprep opt update acprep: INFO: Invoking primary phase: update acprep: INFO: Executing phase: update acprep: INFO: Executing phase: pull Already up-to-date. acprep: INFO: Executing phase:

Re: Ledger has switched to CMake

2012-05-20 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Went drastic, still won't build At least that bug should be fixed now. John

Re: Ledger has switched to CMake

2012-05-20 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Linking CXX executable ../ledger ld: warning: ignoring file /usr/local/lib/libmpfr.a, file was built for archive which is not the architecture being linked (x86_64) This is the problem. Can you run file on that archive?

Re: Link broken

2012-05-15 Thread John Wiegley
Pier-Luc Caron St-Pierre pierluc.caronstpierre-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Hey, The link to download the OS X distribution [1] for ledger on the ledger-cli web page [2] seems broken. 550 error :( You can now download this:

Re: Getting start with Ledger and Python

2012-05-15 Thread John Wiegley
henry atting me.henryatting-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Traceback (most recent call last): File scr.py, line 4, in module for xact in ledger.read_journal(ledger.dat).xacts: AttributeError: 'module' object has no attribute 'read_journal' Ah, try this instead:

Re: Conservancy, Ledger discussion of external tools for more complete accounting systems.

2012-05-14 Thread John Wiegley
Russell Adams RLAdams-oD4XmFtju8vuCfmLQ01/GwC/g2k4z...@public.gmane.org writes: So what I hear is: We need a way to build business logic on top of Ledger. Would that be a fair summary of both of our issues? Given what we have today, I think the path of last resistance to getting something

Re: Conservancy, Ledger discussion of external tools for more complete accounting systems.

2012-05-14 Thread John Wiegley
Russell Adams RLAdams-oD4XmFtju8vuCfmLQ01/GwC/g2k4z...@public.gmane.org writes: I'm all for it! What's the chance of using Python3? If it gets you involved, I can add support for that. :) But it all depends on what Boost.Python supports. John

Re: Conservancy, Ledger discussion of external tools for more complete accounting systems.

2012-05-14 Thread John Wiegley
Zack Williams zdwzdw-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I'm assuming you can add/remove data into an already parsed ledger document via the python interface, and run multiple queries on it without having to reparse? Yep. John

Re: Printing notes in register/csv

2012-05-12 Thread John Wiegley
Tom Usher 4dmm.tom-re5jqeeqqe8avxtiumw...@public.gmane.org writes: The report looks like: 012-Apr-02 John Smith (Busine:TaxDeductible) £90.00 £90.00 (note the 0 at the start) I'll have to take a look at this. Thanks for bringing it to my attention. John

Re: Printing notes in register/csv

2012-05-11 Thread John Wiegley
Tom Usher 4dmm.tom-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Quick related question, now I know how useful that --meta option is, can I use the 'amount' variable from an automated transaction in meta data? Something like: = Expenses:Home:Rent (Business:TaxDeductible) (amount*0.15)

Re: Printing notes in register/csv

2012-05-11 Thread John Wiegley
Tom Usher 4dmm.tom-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Quick related question, now I know how useful that --meta option is, can I use the 'amount' variable from an automated transaction in meta data? Something like: = Expenses:Home:Rent (Business:TaxDeductible) (amount*0.15)

Re: Printing notes in register/csv

2012-05-11 Thread John Wiegley
rubén gómez ruben.gomez-+v4srtnygr7zyswlnxi...@public.gmane.org writes: I saw in the manual that the expression should be: ; total:: [amount] Could you explain the difference without the square braquets? Thanks. The manual is wrong in this case. [] in a value expression introduces a

Re: Getting start with Ledger and Python

2012-05-11 Thread John Wiegley
henry atting me.henryatting-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Just out of curiousity... I never managed to get any small python script running, ledger built with/or without python or whatsoever. My current version is a build from today: Ledger 3.0.0-20110325; with --python

Re: Printing notes in register/csv

2012-05-10 Thread John Wiegley
Tom Usher 4dmm.tom-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Cheers for the reply John. I can't get either of those to work unfortunately (using version 3.0.0-20120217). Adding --meta=foo ('foo' I assume being a tag?) returns: While calculating format expression: tag(shared) While

Re: Getting start with Ledger and Python

2012-05-08 Thread John Wiegley
Chris Rossi chris-nf+wzpsdgwelmaghn9gi760brtrcj...@public.gmane.org writes: The result is: Error: Unrecognized command 'python' I don't notice any errors during the build process. Any idea what I'm doing wrong? v2.6.3 never had a Python command. Could you try building the 'master'

Re: Printing notes in register/csv

2012-05-08 Thread John Wiegley
John Wiegley jwiegley-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Try --meta=foo. This should work for all reports. Use --prepend=note for regular comments (and also see --prepend-width). John

Re: Ledger command does not return

2012-04-11 Thread John Wiegley
Stefan Tunsch stunsch-re5jqeeqqe8avxtiumw...@public.gmane.org writes: What is the standard way to do this? I know I can call ledger with python and execute a script on it. I know I can use the xml option that will output the data in xml format, without the cropping. Try using

Re: Ledger command does not return

2012-04-11 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: If you want something easy to parse you could use some like this: ledger reg --format |%(date)  |%(payee) |%(account) |%(amount) \n%/|%\$3| %\$4 \n That's essentially the same as using the org report instead of the register

Re: Register output formatting question...

2012-04-09 Thread John Wiegley
Doug Philips douglas.philips-re5jqeeqqe8avxtiumw...@public.gmane.org writes: What I would like to see is a way to produce register output that is a fusion of the normal ledger register output and the same result with '-n' used. That is, I would like to see the total of the transactions in

Re: Problem using --invert with --monthly

2012-04-05 Thread John Wiegley
Janne jruuttun-re5jqeeqqe8avxtiumw...@public.gmane.org writes: These are as I expected. With --monthly *and* --invert, however, I don't get inverted values: Is it a bug, or am I not supposed to mix --invert with -D/-W/-M/-Y? Or, as usual, am I missing something else? I ran into this when

Re: Ledger command does not return

2012-04-04 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I should add that if you redirect ledgers output to a file it doesn't page.  It only does that when printing to stdout. Or a bit more accurately: it only does that when displaying to a tty. If you pipe the output to another

Re: Error Loading Shared Library on Arch

2012-04-02 Thread John Wiegley
Ian Barton ian-7pvjUo7bQWnqlBn2x/y...@public.gmane.org writes: I have just updated via ./acprep update. Now when I run Ledger I get the following error: ledger: error while loading shared libraries: libboost_iostreams.so.1.48.0: cannot open shared object file: No such file or directory

Deskzilla Lite 3.2 is out!

2012-03-30 Thread John Wiegley
For anyone who was using Deskzilla to interface with Ledger's Bugzilla, they have upgraded to version 3.1, which supports the version of Bugzilla that I'm using on the server, 4.2. Download here: http://almworks.com/deskzilla/download.html John

Re: Basic organization question about where to put bank name, store name, etc.

2012-03-29 Thread John Wiegley
Hsiu-Khuern Tang tangoh-re5jqeeqqe8avxtiumw...@public.gmane.org writes: If I have two credit cards, is it better to distinguish them using the account name, e.g., I use: Liabilities:BANK-NAME:CARD-TYPE or by using a metadata tag? If the latter, should I use the payee tag so that I can

Re: Virtual transactions and the equity command

2012-03-27 Thread John Wiegley
John Rakestraw johnr-hdTKlMK9g6hNu5YjidvPyAC/g2k4z...@public.gmane.org writes: Note that there's an equity:opening balances line that balances the total of the two virtual accounts. (I realize that this could be my error rather than yours.) I've reopened #686 and will look into this,

Re: New feature: pre-declaring accounts, payees, commodities and tags

2012-03-25 Thread John Wiegley
Martin Michlmayr tbm-r+vwnyxsfmfqt0dzr+a...@public.gmane.org writes: I interpreted your *only* to mean that this would also apply to cleared transactions. --explicit means that knownness is *only* from pre-declarations, not from cleared transactions. John

Re: New feature: pre-declaring accounts, payees, commodities and tags

2012-03-25 Thread John Wiegley
Martin Michlmayr tbm-r+vwnyxsfmfqt0dzr+a...@public.gmane.org writes: --explicit means that knownness is *only* from pre-declarations, not from cleared transactions. Right, this is what I expected based on your email, but this is not what ledger actually does afaict. That would be a bug

Re: change in '=' evaluation?

2012-03-23 Thread John Wiegley
Jim Robinson jim.robinson-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Hi, Perhaps I always had the syntax wrong but the latest build of 'next' is telling me it does not like: = expr tag use-tax and note ca-2012 and expr account=~/^Expenses/ Correct, this is invalid syntax. 'expr'

Re: Build error on mingw/msys

2012-03-22 Thread John Wiegley
Max Erickson maxerickson-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Apparently attempting to send something coherent helped me gain a little clarity; the problem shown in my paste is probably because one of the mingw system headers contains #define VOID void Would it be a problem to

Re: Build error on mingw/msys

2012-03-22 Thread John Wiegley
Max Erickson maxerickson-re5jqeeqqe8avxtiumw...@public.gmane.org writes: More broadly, I wonder if this 'should' work? I guess in the sense, do you expect that minimal changes should be enough to successfully compile with mingw32? I have no reason off-hand to believe that it shouldn't work.

Re: Virtual transactions and the equity command

2012-03-22 Thread John Wiegley
John, it has been fixed. John

Re: Ledger library, building on top of ledger?

2012-03-21 Thread John Wiegley
Seppo Sade sepposade1-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Ledger's command-line interface and plain text storage are great. But as my ledger usage grows and becomes ever more complex and integrated with external tools, I would prefer a programmatic library interface to ledger.

Re: Virtual transactions and the equity command

2012-03-19 Thread John Wiegley
John Rakestraw johnr-hdTKlMK9g6hNu5YjidvPyAC/g2k4z...@public.gmane.org writes: I have what I think is a large ledger file, with personal finances dating back to 1988. I'd like to archive the earlier years so that ledger will generate reports more quickly. (I think it's slower than I'd

New valexpr function: curr_offset

2012-03-19 Thread John Wiegley
For all you format string writers out there: oh, I mean, yeah -- you. A value expression within a format string now has access to a new function, curr_offset. The value is always an integer giving the column where the string will be interpolated. Example: 12345%(curr_offset) = 123456 This

Re: Virtual transactions and the equity command

2012-03-19 Thread John Wiegley
John Rakestraw johnr-hdTKlMK9g6hNu5YjidvPyAC/g2k4z...@public.gmane.org writes: However, I do see an error message, and I see what's going on. The archived amounts include the totals for the virtual transactions, appropriately enclosed in parentheses. That would suggest (to me) that the

Re: ledger.el won't reconcile

2012-03-18 Thread John Wiegley
John Rakestraw johnr-hdTKlMK9g6hNu5YjidvPyAC/g2k4z...@public.gmane.org writes: The problem could well be related to the fact that I'm still using the ledger.el for version 2.6 or so. I've not been able to make the newer one work. Unless I've missed something (entirely possible), the code

New option: --day-break

2012-03-17 Thread John Wiegley
There is a new option for time reporting: --day-break. Sorry to violate the feature freeze, but I needed this one for some data analysis. Ordinarily, if you have a timelog entry which spans multiple days, all the time is accrued to the starting day. For example, if I have this timelog entry:

Re: ledger re-write rules (aka ledger views)

2012-03-17 Thread John Wiegley
Martin Michlmayr tbm-r+vwnyxsfmfqt0dzr+a...@public.gmane.org writes: I think such a feature would be very powerful and I can think of many use cases for such a feature. John, how difficult would this be to implement and does this fit into your plans for ledger? This sounds like a fantastic

Re: Automatic Transaction Help

2012-03-17 Thread John Wiegley
Paul Lathrop paul-rb2b2ncu2mk6lbifqvfbzv6hyfs7n...@public.gmane.org writes: ; This automated transaction will compute the cash back on my ; Capital One rewards card. = /Liabilities:Capital One/   Assets:Capital One Rewards                               -0.01   * Income:Miscellaneous      

Re: Automatic Transaction Help

2012-03-17 Thread John Wiegley
Paul Lathrop paul-rb2b2ncu2mk6lbifqvfbzv6hyfs7n...@public.gmane.org writes: That totally looks like it should work. Unfortunately what I actually end up with is it matching everything where amount 0, irregardless of the regular expression. Bug? Absolutely. Are you using the very latest

Re: ledger re-write rules (aka ledger views)

2012-03-17 Thread John Wiegley
Martin Michlmayr tbm-r+vwnyxsfmfqt0dzr+a...@public.gmane.org writes: This results in: While evaluating value expression: expr Error: Unknown identifier 'expr' Oh, my mistake, -l take a full value expression, not a report query. John

Re: Confusion about cost vs price

2012-03-17 Thread John Wiegley
Martin Michlmayr tbm-r+vwnyxsfmfqt0dzr+a...@public.gmane.org writes: I can fix this up by accounting for the capital loss made when buying something worth $100 for $200: 2012-03-17 * Test A 10 AAPL {$10} @ $20 B -$200 Expenses:Capital loss $100 Yes, this is the current behavior. The

Re: Wishlist: accounts and payees list, account signs and subtotal in transactions.

2012-03-16 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: The use of 'account' below seems to conflict with a rpevious incarnation in which 'account' set the root of all upcoming accounts.  Is the old behavior gone? Correct. That command is now apply account, and is paired by

Re: Ledger causing Mac OS Terminal problems?

2012-03-16 Thread John Wiegley
Sam Stuck sam.stuck-hu7q0hik4otegwrt2xg...@public.gmane.org writes: This is more or less a confirmed bug with ledger exiting before the pager. Try using --pager=cat or piping to less. Ah, I think I know what's causing this. Should be an easy fix. I'll look into it today. John

Re: Wishlist: accounts and payees list, account signs and subtotal in transactions.

2012-03-16 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: So, is that apply NEW-ACCOUNT-ROOT ... end or apply account NEW-ACCOUNT-ROOT ... end The latter. There are several keywords accepted after the apply keyword now (and more to come in future); account is just one of

Re: Trouble using the python interface

2012-03-16 Thread John Wiegley
Jim Robinson jim.robinson-re5jqeeqqe8avxtiumw...@public.gmane.org writes: On Friday, March 16, 2012 4:52:35 PM UTC-7, thierry wrote: I am on Ubuntu 11.10, and I got seg fault. How I can help digging into this? Thierry $ ledger python ./python/demo.py Welcome to the

Re: Calculating Asset Allocation

2012-03-15 Thread John Wiegley
Jim Robinson jim.robinson-re5jqeeqqe8avxtiumw...@public.gmane.org writes: But the format example doesn't like parent.total: $ ledger -f test.txt balance Allocation --current --format \ %-17((depth_spacer)+(partial_account))\

Re: Automatic Transactions Question

2012-03-14 Thread John Wiegley
Will Goodwin shadowcoder83-re5jqeeqqe8avxtiumw...@public.gmane.org writes: However, I'm wondering if there's a way to create an automatic transaction that will recognize the (DC) (all the examples I've seen trigger the transactions based on account, not codes) and automatically do the right

Re: A word on Ledger structure

2012-03-14 Thread John Wiegley
Alexandre Rademaker arademaker-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Many thanks for this email. Does cl-ledger (lisp version) has similar architecture? What are the differences? I don't know how many of the ledger's users are programmers but making Ledger's architecture more

Re: Girlfriends budget?

2012-03-14 Thread John Wiegley
Raphael Lorenzeto raphael.lorenzeto-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Actually, let me rephrase that: Is there any way to do tag-based budget? Yes, but not with a simple tag like :girlfriend:. You'd have to do this: ; Girlfriend: Expenses:Movies Then use

Re: Calculating Asset Allocation

2012-03-14 Thread John Wiegley
Jim Robinson jim.robinson-re5jqeeqqe8avxtiumw...@public.gmane.org writes: This is awesome, thanks for writing it up. I tried it out and found that ledger 3.0.0-20120217 complaints about not understanding the format string: While calculating format expression:

Re: Metadata on commodity level

2012-03-14 Thread John Wiegley
Raphael Lorenzeto raphael.lorenzeto-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Wow! That really helped! I would use the = expr ( commodity == 'SYMBOL' ) to propagate the commodity tags to all related postings. It would be nice tough if this could be achieved using the simple tag

Re: Understanding transactions

2012-03-14 Thread John Wiegley
thierry thierry.daucourt-ganu6spq...@public.gmane.org writes: Is that really important? I have 10% of my transactions with top posting as source, and final posting as target. And IMHO, I do prefer that source is first, and target is last. Can I safely ignore this ledger convention? I

Re: Having Ledger calculate a commodity / exchange rates by telling it an entry balances

2012-03-14 Thread John Wiegley
Kamal Marhubi kamal-7mlawaoftq1bdgjk7y7...@public.gmane.org writes: Hi, Is it possible to tell Ledger an entry with transactions in two commodities / currencies balances, so that it can calculate the exchange rate? 2012-03-12 * Withdrawal Assets:Cash USD

Re: Experimental feature: SELECT-ish style queries

2012-03-13 Thread John Wiegley
Peter Keen peter.keen-re5jqeeqqe8avxtiumw...@public.gmane.org writes: John, this is awesome! Well done. Now add joins ;) Haha, I will keep tying up some of the ledger options to easier select options, but that will happen in a lazy fashion until 3.0 is out. John

Re: New option: --time-report

2012-03-13 Thread John Wiegley
John Wiegley jwiegley-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I've added option --time-report, which at the moment just rewrites the --balance-format so that you can see balance reports like this: I'm going to remove this option, since I can achieve the exact same thing with select

Re: Getting ready for releasing 3.0

2012-03-13 Thread John Wiegley
Zack Williams zdwzdw-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Could the example code in the docs be testable against ledger? This would be a bit of trouble to get going, but could pay dividends in the long run - if a test were to fail it would either be a bug in ledger, or a

A word on Ledger structure

2012-03-13 Thread John Wiegley
Ledger is developed as a tiered set of functionality, where lower tiers no nothing about the higher tiers. In fact, I build multiple libraries during the process, and link unit tests to these libraries, so that it is a link error for a lower tier to violate this modularity. Those tiers are: -

Re: acprep opt producing a debug executable

2012-03-11 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Just grabbed the latest next and acprep opt is building a 14MB executable that runs very slowly.  It produces a file identical to acprep debug I'm not able to reproduce this. What are your steps, starting from a fresh

Re: Getting start with Ledger and Python

2012-03-11 Thread John Wiegley
Raphael Lorenzeto raphael.lorenzeto-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Long story short, I haven't found a way to access this Python interface, my intent is to produce a series of scripts to output HMTL5 files with my reports on a regular basis (probably a cron-job). How can I

Re: Getting start with Ledger and Python

2012-03-11 Thread John Wiegley
Raphael Lorenzeto raphael.lorenzeto-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Thanks! I managed to compile with the --python passed to acprep but I get the following error while trying to execute the examples shown on this post: ./ledger/ledger python ledger-script.py Traceback (most

Re: Understanding transactions

2012-03-10 Thread John Wiegley
Gabriel Kerneis kerneis-klhgwnj84bud5ynb6aa...@public.gmane.org writes: 2012-03-10 * KFC Liabilities:Credit$100.00 * Assets:Checking Is this a spurious * on the first line? Ah, yes, thank you for catching that. Craig, can you incorporate that fix? If you

New option for Debit/Credit reports: --dc

2012-03-10 Thread John Wiegley
If you use --dc with either the register (reg) or balance (bal) commands, you will now get extra columns. The register goes from this: 12-Mar-10 Employer Assets:Cash$100$100 Income:Employer $-100 0

New option: --immediate

2012-03-10 Thread John Wiegley
Normally, Ledger delays any calculation of market values (using -X or -V) until the last possible moment -- that is, only when it is time to display a value to the user. This is done to avoid rounding errors. There is a new option, --immediate, which instructs Ledger to valuate an amount

Re: Segfault on next branch

2012-03-10 Thread John Wiegley
Hyrum K Wright hyrum-krattusis2oizk9zyxr...@public.gmane.org writes: Everything was working just fine until I added a single entry. Running on just that entry doesn't give any problems, and I've yet to find a small reproduction recipe. However, the above problem is reproducible for me on

New feature: virtual costs

2012-03-09 Thread John Wiegley
You can now surround the @ or @@ in a posting with parens to prevent it from being added as a historical price. This means that ask for a -V report will value that posting according to whatever conversion price was seen prior to it. This is useful if you have an exception transaction -- like,

Improved the behavior of -X

2012-03-09 Thread John Wiegley
Up until now, -X support two forms: -X '$'Value everything in dollars, else don't try -X '$,EUR'Value everything in dollars, else Euros This behavior has now been refined. If you say -X '$,EUR', Ledger will no longer revalue EUR amounts into $. If something is

Re: New reporting option: --historical

2012-03-09 Thread John Wiegley
thierry thierry.daucourt-ganu6spq...@public.gmane.org writes: My understanding is that --historical will override the register report way of working described below, by always using the today's value (instead of value of last posting). Is this correct? It will use whatever value was current

<    3   4   5   6   7   8   9   10   11   12   >