Re: Simplified Python importing

2012-03-09 Thread John Wiegley
Simon Michael simon-jbxitmbj2llqt0dzr+a...@public.gmane.org writes: Just a little honest feedback, of a kind I never see here, offered in case it might be useful to improve ledger, which I care about, contribute to, and want to thrive. I hoped John knows me well enough to not take offense,

Re: No rounding applied to transactions?

2012-03-09 Thread John Wiegley
Robert Lehmann lehmannro-re5jqeeqqe8avxtiumw...@public.gmane.org writes: The automatic transaction (1%) should generate a post of $0.04 and one of $0.03 (which it does!). Then, when adding those posts for balance/ registers, it instead seems to sum up $0.044 and $0.033 (which is $0.077 and

Re: docs status (Re: consolidate docs?)

2012-03-09 Thread John Wiegley
Simon Michael simon-jbxitmbj2llqt0dzr+a...@public.gmane.org writes: Moving it, perhaps preserving history, requires a bit of git-fu. That type of moving I've done many times. If you're amenable, I already know the git-fu. It will basically be just like having two repos in a single

Understanding transactions

2012-03-09 Thread John Wiegley
The following mini-doc attempts to cover every syntactic corner of the Ledger transaction syntax. If I've missed anything, please let me know. Note that this is a subset of all the syntax allowed in a journal file. I haven't covered directives here or file-level comments. John # Basic format

Complete control over commodity pricing has arrived

2012-03-07 Thread John Wiegley
After more than two years of chewing over the design for this feature, it has finally arrived. If you don't need it, you can ignore this post. But if you've ever wanted to fine tune the results you get from either -V or -X $, there are now several points of interception: You can specify the

Re: Complete control over commodity pricing has arrived

2012-03-07 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Latest upstream next breaks: /opt/local/include/boost/smart_ptr/intrusive_ptr.hpp: In destructor 'boost::intrusive_ptrT::~intrusive_ptr() [with T = ledger::expr_t::op_t]': /Users/cpearls/ledger/src/expr.h:77:   instantiated

Re: Simplified Python importing

2012-03-06 Thread John Wiegley
Alexandre Rademaker arademaker-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I am afraid that Ledger has began to be more complex than necessary! Sure we really need this feature? The manual has now more than 100 pages! Ledger is made up of layers. The core layers are not overly complex,

Re: ledger v3 slower than ledger v2

2012-03-05 Thread John Wiegley
thierry thierry.daucourt-ganu6spq...@public.gmane.org writes: Hello, On below tests, ledger v3 is 21 and 46 times slower that ledger v2. Some specs: - CPU is AMD Athlon(tm) Dual Core Processor 4850e, 2500MHz, 64 bits - RAM is 1790MiB - OS is Ubuntu 9.10 At last, Thierry, this is solved.

About to start commodity valuation overhaul

2012-03-03 Thread John Wiegley
Here are my notes on rewriting many aspects of how commodities are valuated, or appraised, via the -X and -V options. Many things will change, but I think it makes nearly any usage scenario implementable. Comments welcome! This file is the beginnings of my baseline test for this feature. John

Re: Another major change: renamed actual/effective dates

2012-03-03 Thread John Wiegley
Kamal Marhubi kamal-7mlawaoftq1bdgjk7y7...@public.gmane.org writes: Now that is interesting. I had been using the actual date as the date it showed up on the account, ie the transaction date, and the effective date as the date at which I would like the transaction to be effective for

Re: About to start commodity valuation overhaul

2012-03-03 Thread John Wiegley
Martin Michlmayr tbm-r+vwnyxsfmfqt0dzr+a...@public.gmane.org writes: * John Wiegley jwiegley-re5jqeeqqe8avxtiumw...@public.gmane.org [2012-03-03 02:22]: ; Changes to options: ; ; -O --quantity use each posting's amOunt (DEFAULT) -B --cost use each ; posting's cost Basis Can you give

Getting start with Ledger and Python

2012-03-01 Thread John Wiegley
Hello all, I think it's time for a primer on using Python to extend your Ledger experience. But first, a word must be said about Ledger's data model, so that other things make sense later. -- # Basic data traversal

Re: selecting by payee

2012-03-01 Thread John Wiegley
Donald sf.flyboy-re5jqeeqqe8avxtiumw...@public.gmane.org writes: $ ledger -f test2 -w reg exp -- rei The syntax for this has changed to: $ ledger -f test2 -w reg exp @rei John

Re: Segfault on next branch

2012-03-01 Thread John Wiegley
Hyrum K Wright hyrum-krattusis2oizk9zyxr...@public.gmane.org writes: Running the following command on the next branch results in a segfault: $ ./ledger -s bal Checking See if what's on 'next' now fixes your problem. John

Another major change: renamed actual/effective dates

2012-02-28 Thread John Wiegley
It has long been a point of confusion over what actual vs. effective dates are. For example: 2012-02-28=2012-03-01 KFC Expenses:Food$10.00 Assets:Cash In this example, I always considered the first date as the actual date when I bought the chicken, and the second

Re: Record timelog hours on the day of check-in, instead of on the day of check-out?

2012-02-28 Thread John Wiegley
Seppo Sade sepposade1-re5jqeeqqe8avxtiumw...@public.gmane.org writes: For a .timelog entry where the check-in is on one day and the check- out the following day: i 2011/07/20 17:00:00 Work project o 2011/07/21 01:00:00 Done for the day The output of ledger -f .timelog reg (ledger

Re: Having Problems With XML

2012-02-28 Thread John Wiegley
Ryan May ryan-wtxsuusx66j3fq9qlvq...@public.gmane.org writes: But in XML such a relationship should be represented by the structure of the document, i.e. Chequing should be a sub-element of Assets and Bank should be a sub-element of Chequing. When I was preparing the example above I also

Re: Own language

2012-02-28 Thread John Wiegley
Jins renarsgrig-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I'm using ledger 3.0 can I use terminalogy of my language like instead Assets aktīvi and so on. Does ledger can work understand stuff like this? Yes, absolutely, part of Ledger's philosophy is that I never want to force you to

Re: leap day

2012-02-28 Thread John Wiegley
Alan Bram sf.flyboy-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I've finally gotten around to trying the latest version of ledger, from git. (I have been using 2.6.2, from MacPorts.) On this latest version, I get the following error message, running on the attached sample input: While

Re: leap day

2012-02-28 Thread John Wiegley
Alan Bram sf.flyboy-re5jqeeqqe8avxtiumw...@public.gmane.org writes: On this latest version, I get the following error message, running on the attached sample input: While parsing file test1, line 3: While parsing transaction: 2/29 E-trade Bank Error: Day of month is not valid for year

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

2012-02-27 Thread John Wiegley
A long asked-for feature, pre-declarations, has now arrived! This feature comes with some breaking changes, even damaging backwards compatibility with 2.x. I believe it is worth it for the gain in consistency. -- #

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

2012-02-27 Thread John Wiegley
Gabriel Kerneis kerneis-klhgwnj84bud5ynb6aa...@public.gmane.org writes: I don't like when ledger uses hard-coded (English) strings. IIRC, there are a few other places in ledger's code that do the same (something about equity?). Ledger is 100% localized, using the gettext library. You can

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

2012-02-27 Thread John Wiegley
Johann Klähn kljohann-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I would prefer a per-file configuration, too. This would also help with portability. With the current setup a ledger using english account names would not work correctly with the locale set to some other language. Ok, that

Re: Strange print behavior in comments

2012-02-27 Thread John Wiegley
thierry thierry.daucourt-ganu6spq...@public.gmane.org writes: This has introduced a bug filed as http://bugs.ledger-cli.org/show_bug.cgi?id=657It is severe from my point of view. I will fix it right away. John

Re: Cygwin Build Failed early in acprep

2012-02-22 Thread John Wiegley
Will Whatley william.whatley-re5jqeeqqe8avxtiumw...@public.gmane.org writes: REDACTED /cygdrive/c/Home/ledger $ ./acprep update acprep: INFO: Invoking primary phase: update acprep: INFO: Executing phase: update acprep: INFO: Executing phase: pull Already up-to-date. acprep: INFO:

Re: Invert all transactions in a ledger file

2012-02-18 Thread John Wiegley
Zack Williams zdwzdw-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Anyone know of a simple way to invert all the transactions in a ledger file? Preferably without removing comments and other metadata? I do not, sorry. John

Re: Income deductions

2012-02-04 Thread John Wiegley
Jim Robinson jim.robinson-re5jqeeqqe8avxtiumw...@public.gmane.org writes: The '; 403b:...' markers allow me to run a report like this: ledger bal 403b:SCRP --pivot=403b -b 2012 -e 2013 Just a quick note: -b 2012 -e 2013 is the same as -p 2012. :) John

Re: Strange print behavior in comments

2012-02-04 Thread John Wiegley
Hsiu-Khuern Tang tangoh-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Related question: is there a way to specify that ledger should not reformat comments? In other words: This is an excellent suggestion, and would be trivial to implement. I'll add a feature request for Bugzilla. John

Re: Using ledger in emacs shell

2012-02-04 Thread John Wiegley
Ivan ivan.inozemtsev-re5jqeeqqe8avxtiumw...@public.gmane.org writes: However after upgrading ledger does not work in primitive terminal — http://yfrog.com/obkh7kpI've read manual searching for some command line option to simplify output, but with no luck. Probably I am missing something?

Re: commodity flags cleanup

2012-01-30 Thread John Wiegley
Martin Michlmayr t...@cyrius.com writes: Yep, this is something I'd like to see. At the moment, -X implies -V, even though there are a lot of use cases where I want to use -X -B. I agree, and I intend to make changes to support this kind of mix and match reporting. Ledger has always been

Re: periodic reports for expense category groups

2012-01-24 Thread John Wiegley
Peter Keen peter.keen-qpbGg102UtMk+I/owrr...@public.gmane.org writes: You want to use a register report with the -M for monthly and -n for 'total' options. Like this: ledger -Mn -b 2011/01/01 reg expenses There is a --group-by option, which can segregate reports based on the differing

Re: Multiple commodity conversions?

2012-01-20 Thread John Wiegley
Zack Williams zdwzdw-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Is there a way to force a specific ledger to display with a certain set of units, no matter whether another, more compact rate is available? Not yet. Base conversions (--base) are different from commodity price conversions

Re: Multiple commodity conversions?

2012-01-19 Thread John Wiegley
Zack Williams zdwzdw-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Is it possible to perform multiple commodity conversions in order to get output in a specific commodity? I'm trying to abuse Ledger again (this time for calculating the power/cooling budget on a server room), and various

Re: Rounding formula for automatic transactions

2012-01-06 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Unfortunately, round doesn't seem to let you control the precision so you won't notice much since it will round to two digits. I have another request to allow user controlled precision, but maybe John has a different

Re: Rounding formula for automatic transactions

2012-01-06 Thread John Wiegley
André Coelho andrecoelho-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I've seen a floor function, but it seems to actually round to the nearest integer (not a floor as I'm used to). I wonder how do you manage precision, I would think this should be critical, how do you guys deal with

Re: How to represent loans to other parties

2012-01-03 Thread John Wiegley
Matt Seburn mattseburn-re5jqeeqqe8avxtiumw...@public.gmane.org writes: How do I represent the situation where I loan someone else money? The specific situation I have in mind involves buying someone for something out of my chequing account, and then receiving cash as repayment. How do I (a)

Re: A web-based reporting system for Ledger

2012-01-03 Thread John Wiegley
Peter Keen peter.keen-qpbGg102UtMk+I/owrr...@public.gmane.org writes: The 0.937 VISGX comes out just fine as display_amount and commodity, but for the life of me I can't figure out how to get the $21.54. What's the format command for that? That's the cost. To get the per-unit cost, you'll

Re: A web-based reporting system for Ledger

2012-01-02 Thread John Wiegley
Peter Keen peter.keen-re5jqeeqqe8avxtiumw...@public.gmane.org writes: To answer the obvious question, I feel that the SQL+HTML combo allows quite a bit more flexibility than raw ledger with respect to the kinds of reports I can write and how they can be presented. Things that would require

Re: slightly OT: inventory system w/ledger integration

2011-12-30 Thread John Wiegley
Zack Williams zdwzdw-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Every once in a while it comes up that ledger's commodity system isn't suited for managing an inventory of items, for example, widgets being sold at a retail store, as there's no unique tracking of individual items in the

Re: report on income vs expense?

2011-12-21 Thread John Wiegley
Jim Robinson jim.robinson-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Hi folks, Is it possible to generate an income vs expense report in one shot using ledger? You can generate a net income/expense report by month in one go, but to see separated Income and Expense figures by month,

Re: report on income vs expense?

2011-12-21 Thread John Wiegley
Jim Robinson jim.robinson-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I don't think I can use paste to compute the difference between income and expenses, and I don't think I know how to use paste w/o putting the data into files. If you have bash or zsh, this will work: paste (first

Re: [DOCS] various format string

2011-12-17 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Ledger pays attention to a lot of different format strings.  For example: --budget-format --cleared-format --format etc. Are those there to support future growth with users that can have multiple reports per session?

Re: [DOCS] Setting the date format for convert

2011-12-13 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Writing documentation for the 'convert' command.   Can the input date format be set separately  for the convert command? --input-date-format doesn't seem to affect it, nor does --date-format Those should work as expected,

Re: Set first day of the week for --weekly register

2011-12-07 Thread John Wiegley
Felix Geisendoerfer haimuiba-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Since I prefer to think of Monday as the start of the week, is there any way to make Ledger do the same? In this case I'd like my current week to be Dec 5 - 11. --start-of-week=Monday :) John

Re: conditional on tag exisence?

2011-12-01 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Is there a way to check if a tag has been applied to a xact? For example 2011/11/01 Amazon :Arrived: Expenses:Books Assets:Cheking I want to use ?: based on whether the xact has the tag :Arrived: applied. I have

Re: Significance of lot tags

2011-11-30 Thread John Wiegley
Martin Michlmayr tbm-r+vwnyxsfmfqt0dzr+a...@public.gmane.org writes: Well, this is the question I was trying to ask: are commodities with lot tags different commodities or not? My belief so far was that they are *not* different commodities (i.e. the lot tags are just some meta info), but the

Re: Significance of lot tags

2011-11-30 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Does the entire commodity have to be surround by parens? When does ledger distinguish between two lots of the same commodity and two different commodities? No, only the tag is surrounded by parens. The full syntax is:

Re: [DOCS] Different ways Commenting Journals

2011-11-22 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: This may be common knowledge but I haven't seen it written anywhere. While combing through the code (textual.cc instance_t::read_next_directive() to be specific) I found that ledger will allow a few different kinds of

Re: --inject?

2011-11-16 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I am combing bug reports for interesting undocumented features and I ran across --inject.  I spent some time going through the code but can't really see what it is for.  Anyone have any clues? For my paychecks at a previous

Re: building next on ubuntu lucid

2011-11-05 Thread John Wiegley
Dan White etihwnad-re5jqeeqqe8avxtiumw...@public.gmane.org writes: With the appropriate -dev packages, which I should have documented to help better, the current ledger next can't build because the MPFR_RNDx symbols in src/amount.cc are not found. Those symbols are present in mpfr-3.0 but

Re: Controlling the precision displayed in amounts

2011-11-02 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Actually quantity isn't rounding at all, as expected.  It is giving me full precision, sometime 9 or 10 digits.  Here is an example: ledger bal Investments --collapse  --limit commodity=='VIFSX' --format %(quantity(strip

Re: Having Problems With XML

2011-11-02 Thread John Wiegley
Ryan May ryan-wtxsuusx66j3fq9qlvq...@public.gmane.org writes: Hi John, I'm unsure how else an XML reader would build up an accounts tree without additional information. Given the following list of accounts: Oh, I had thought the account tags were nested? If not, then fullname will be

Re: What is the actual --print-format used in 2.6?

2011-11-02 Thread John Wiegley
markscottwright markscottwright-re5jqeeqqe8avxtiumw...@public.gmane.org writes: The one in the manual doesn't seem to be right. It should in the source code, I think in report.h. John

Re: Having Problems With XML

2011-11-01 Thread John Wiegley
Ryan May ryan-wtxsuusx66j3fq9qlvq...@public.gmane.org writes: i.e. The name of an account like Assets:Chequing:Bank is recorded simply as nameBank/bank. The full name of the account does seem to be implied by the ordering of the XML: I believe it's expected that the reader will build up an

Re: Controlling the precision displayed in amounts

2011-11-01 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I am totally mystified at how ledger is determining what to display. Is there a way to control the precision used to display a quantity? e.g.: force --format %(quantity(strip(display_total))) to show only 4 significant

Re: Having Problems With XML

2011-10-27 Thread John Wiegley
Ryan May ryan-wtxsuusx66j3fq9qlvq...@public.gmane.org writes: Is Ledger 3 supposed to support processing XML or just exporting it? Ledger 3 only exports, it does not parse. John

Re: Sort income and expenses report by absolute value of account, largest to smallest.

2011-10-27 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Good, glad i could help. T is the amount reported from the account in the balance report. T is the display_total, which can be modified with -T. This is different from sorting on total, which is not affected by -T. U is

Re: Having Problems With XML

2011-10-24 Thread John Wiegley
rtjmay ryan-wtxsuusx66j3fq9qlvq...@public.gmane.org writes: I'm having an issue with Ledger's XML output. I'm using version 2.6.2 from the Ubuntu 10.10 repo, and when I generate XML (using 'ledger xml') the information on currency type (commodity) is lost. I use CAD and USD to represent

Re: Ledger BETA under Mac OS X Lion using Xcode 4.2?

2011-10-22 Thread John Wiegley
Jim Robinson jim.robinson-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Hi folks, Have any of you successfully built the Ledger 3 beta under Mac OS X Lion using Xcode 4.2? I have, and it passes all tests here, FWIW. John

Re: [DOCS] Arguments to the payees and accounts commands

2011-10-22 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I figured out that ledger requires the @ even when used with the payees command. So,  ledger payees Som.*dy  returns all payees the required syntax is ledger payees @Som.*dy returns Somebody Ah, hmm... There is

Re: timeclock missing?

2011-10-21 Thread John Wiegley
fsiefken fsiefken-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Hi, I want to log my time with timeclock as documented here: /usr/share/doc/ledger/ledger.html/Using-timeclock-to-record-billable- time.html I can't find it in Ledger 2.6.2, I understand that there is a timelog.el available

Re: 'getquote' responsibilities

2011-10-17 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Is getquote supposed to provide ledger with only a price for the specified symbol, or update the pricedb file with all the required information? The included example script only return a price, which seems very limited

Re: Expressing share purchases by total cost, rather than shares

2011-10-14 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I would like to instruct ledger to buy $140.56 shares of @ $10.94 The way I am doing it now is the following: 2011/10/12 401K Buy Assets:Investments:401K Deferred (140.56/10.94 ) Assets:Investments:401K

Re: Possible value expression bug.

2011-10-13 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I was playing around with numerical value expressions in postings and found some interesting behavior. Behavior #1: Assets:401K (1 * 7.456) Results in 7 shares of being reported. Assets:401K (1.0

Re: Ledger 3.0 performance compared with older versions

2011-10-09 Thread John Wiegley
Vinod Kurup vvkurup-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I tried ledger 3.0 after using a combination of ledger 2.5 and 2.6 happily for many years. I've found 3.0 to be too slow for my needs. My ledger file is huge and I use the emacs reconcile mode extensively, which calls ledger

Re: Ledger 3.0 performance compared with older versions

2011-10-09 Thread John Wiegley
Vinod Kurup vinod-46o65aadjccavxtiumw...@public.gmane.org writes: I wonder if those '--enable-debug' lines are what's hurting me. Let me know if I can provide any other info. Oh, yes indeed. The debug build of 3.0 is significantly slower. Please try this: ./acprep opt That should cure

Re: US payroll withholding, or automated transactions on ranges of amounts

2011-10-01 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I was thinking about this more and had a possible (impossible?) suggestion. Can you use value expressions in the posting? Like this: = /Employees:.*:Payroll$/ and expr (amount = X or amount Y) Taxes Owed

Re: US payroll withholding, or automated transactions on ranges of amounts

2011-09-30 Thread John Wiegley
Zack Williams zdwzdw-re5jqeeqqe8avxtiumw...@public.gmane.org writes: From what I can tell, there's no way to have several automated transactions that only happen when an amount is within a certain range, is there? Would this feature be useful to others? Automated transactions can use the

Re: [DOCS] Significance of '%' in tags?

2011-09-29 Thread John Wiegley
Peter Keen peter.keen-qpbGg102UtMk+I/owrr...@public.gmane.org writes: It's part of the filter language. %tag means filter to only transactions marked with 'tag'. Similarly, @string means filter to only transactions where the payee matches 'string'. Someone correct me if I'm wrong, but I

Re: Clearing virtual transactions

2011-09-28 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I have several virtual transaction set up that add multiples of amounts credited to specific accounts. It appears that the transactions are always consider uncleared. Is there a way to tell ledger to give a virtual

Re: Documentation Project

2011-09-24 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Can anyone tell me if the IRC channel is still alive? You bet, about 30 of us are there most of the time. John

Re: ledger error generation

2011-09-22 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I was playing around with the file format today to generate some examples and noticed something. I know there is a requirement for the first line of a transaction to be at the beginning of a line and that the account

Re: report sorting based on tag values

2011-09-20 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Is there a way to produce a register report that lists all the transaction that contain a certain tag, and sort them based on the value of the tag? ledger reg --sort tag('foo') %foo John

Re: report sorting based on tag values

2011-09-20 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: I really need to study the docs, I missed that syntax. It's not there yet, so it's my fault! Right now I'm the Living Manual. John

Re: report sorting based on tag values

2011-09-20 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Now I don't feel so bad. If there is anything I can do to help with the manual I would be happy to. I am comfortable with LaTeX and TeXinfo. If you need someone to start assembling notes etc. Please take a look at

Re: report sorting based on tag values

2011-09-20 Thread John Wiegley
John Rakestraw johnr-hdTKlMK9g6hNu5YjidvPyAC/g2k4z...@public.gmane.org writes: Is it possible to get subtotals for each tag value? In my continuing effort, as the Living Manual, to anticipate your every desire before you even think of it, I see this option before my eyes; ledger

Re: date syntax

2011-08-30 Thread John Wiegley
thierry thierry.dauco...@free.fr writes: Hi, I would like to report monthly data, starting the 1st day of the month, 12 month ago. I can use the period command to see how Ledger parses a given date: $ ./ledger period 12 months ago --- Period expression tokens --- TOK_INT: 12

Re: Using Ledger to track inventory

2011-08-28 Thread John Wiegley
Travis B Hartwell na...@travishartwell.net writes: Is what I want possible with Ledger? I'm thinking I would write an interface to keep track of my dosages and then enter refills, and it would generate the ledger file and call ledger to calculate dates of needed refills, calculate the cost

Re: Format strings 2.6 - 3.0

2011-08-22 Thread John Wiegley
John Rakestraw jo...@johnrakestraw.com writes: I'm embarrassed to say that I don't remember where I found each of these. I got some hints by reading through the forum archives. And I figured out others by trial and error (e.g., I wonder if code will give me my check number). I'd love to see

Re: Ledger Entry

2011-08-12 Thread John Wiegley
Michael Farnbach noble.obl...@gmail.com writes: Now, I see a problem in doing this. Ledger's strengths in my opinion are in its stateless ledger, and by that I mean each entry can be anywhere in the ledger. And to add this to the entry itself in the ledger file would create a state that would

Re: Choosing the commodity in automatic transactions

2011-08-09 Thread John Wiegley
rjc richard+goo...@richardcooper.net writes: = expr account =~ /^Asset:Checking/ payee =~ /^Buying Shares/ (Temp) 1 but that seems to match *everything*. IS that a bug in ledger or me not understanding the syntax? Is the new syntax documented anywhere? Try this: =

Re: Choosing the commodity in automatic transactions

2011-08-09 Thread John Wiegley
rjc richard+goo...@richardcooper.net writes: $ ledger bal -f test.txt While parsing file test.txt, line 1: While parsing automated transaction: = /^Asset:Checking/ expr payee =~ /^Buying Shares/ Error: payee operator not followed by argument $ Ok, I'll try to track this down when I get a

Re: Choosing the commodity in automatic transactions

2011-08-08 Thread John Wiegley
rjc richard+goo...@richardcooper.net writes: If that's not directly possible I think I could live with the workaround: Ah. You can do this with value expressions if you are using the latest version of Ledger from Git: = /^Asset:Checking/p/Buying Shares/ (Virtual Account)

Re: Choosing the commodity in automatic transactions

2011-08-07 Thread John Wiegley
rjc richard+goo...@richardcooper.net writes: I know about the -X and -V command line options, but I don't just want to alter the final display, I want the Virtual Account to actually contain dollars. I would say either use -B or -X '$'. But I'm not sure exactly what you want, since your

Re: Strange cleared report formatting

2011-08-04 Thread John Wiegley
Craig Earls ender...@gmail.com writes: The report seems bit garbled, there are unexpected line feeds. I replaced all numerals with 'X' in below: This is what happens when there are totals which multiple commodities. At the moment, there is no way to collapse the unnecessary whitespace. The

Re: Are automatic transactions working in the latest 3.0.0

2011-07-31 Thread John Wiegley
Craig Earls ender...@gmail.com writes: = expr account =~ /^ Liabilities:test0.5 Use the same query you'd use on the command line: = /(Expenses:(Medical|Clothing))/ The expr version you specified was just missing a final /, but otherwise should have worked. John

Re: Building latest on OS X 10.6.8

2011-07-28 Thread John Wiegley
Craig Earls ender...@gmail.com writes: Xcode 4.0.2. I admit to treating Macports like a black box and I have not really explored it much. I will look into having it build only the intel binaries vice universal. I have yet to try Xcode 4, FWIW. John

Re: Building latest on OS X 10.6.8

2011-07-28 Thread John Wiegley
Craig Earls ender...@gmail.com writes: I just ran make check and it was clean. Not sure if I built debug or optimized. If you used acprep, the default is a debug build. ./acprep opt update builds the fully optimized version. With a debug build, you can use --trace 2, or --debug calc.expr,

Re: Building latest on OS X 10.6.8

2011-07-27 Thread John Wiegley
Craig Earls ender...@gmail.com writes: OS X 10.6.8 Macport 2.0.0 with all dependencies installed git cloned lates revsion and ran ./acprep dependencies which went fine. ./acprep update failed becuase it couldn't find gmp libraries. port installed show gmp @5.0.2_1 and gmp @5.0.2_1+universal

Re: Ledger on Mac

2011-07-26 Thread John Wiegley
rjc richard+goo...@richardcooper.net writes: As a new user of Ledger, the install experience left a lot be be desired. First the DMG download didn't work and then the compile-it- yourself route turns out to need MacPorts. I've opened https://github.com/jwiegley/ledger/issues/32 and

Re: Ledger on Mac

2011-07-22 Thread John Wiegley
On Jul 21, 2011, at 3:21 PM, rjc wrote: I'm trying to run ledger on a Mac (latest Snow Leopard) without much luck. Any help would be much appreciated. Make sure you have gettext installed. If you use MacPorts, just run: ./acprep dependencies John

Re: Format output width to 79 characters by default, instead of 80?

2011-07-13 Thread John Wiegley
Seppo Sade sepposa...@gmail.com writes: Currently Ledger seems to format output to a default width of 80 characters for register output. When generating such output in e.g. an Emacs buffer in a standard 80 character wide terminal, each 80- character line gets wrapped (because Emacs needs to

Re: Trouble using the python interface

2011-07-11 Thread John Wiegley
Hyrum K Wright hy...@hyrumwright.org writes: I don't know if there is a better way to debug this. The first thing to confirm is that Ledger and your boost_python shared library are both linking to the exact same Python library. That's usually the reason for startup crashes when using the

Re: Trouble using the python interface

2011-07-07 Thread John Wiegley
Hyrum K Wright hy...@hyrumwright.org writes: $ python Could you try using ledger python instead of just python? I've seen this problem before, it'll just take a moment to remember. John

Re: Printing monthly balances

2011-06-30 Thread John Wiegley
On Jun 30, 2011, at 11:44 AM, Matthew Harris wrote: So now I get February's value, but I'm still getting two entries for March. Here's another view: ledger -f test2.dat reg -MVnEn account 2010/01/01 - 2010/01/31 Account $1 $1 2010/02/01 -

Re: Automated entries

2011-06-29 Thread John Wiegley
Matthew Palmer mpal...@hezmatt.org writes: When I asked this, several years ago, I was advised that the best way was to use cron (or some other automated task scheduler) to write entries into the ledger file automatically. Whilst it's a fairly big departure from what one might expect, I've

Re: Limiting transacations by related accounts

2011-06-28 Thread John Wiegley
Martin Michlmayr t...@cyrius.com writes: Is it possible to limit transacations shown by 'ledger reg' based on other accounts in the transacation? I receive interest on various bank accounts but some of those are not taxable so I want to exclude them for my tax return. This is what the 'any'

Re: -X without revaluation

2011-06-28 Thread John Wiegley
Martin Michlmayr t...@cyrius.com writes: I'm working on my tax return and I have to convert foreign currency income/expenses transacations at the rate on the date of the transacation. You can use -e DATE to report up to a given date, with valuation done as of that date. Or you can use --now

Re: -X without revaluation

2011-06-28 Thread John Wiegley
Martin Michlmayr t...@cyrius.com writes: Right, but neither of those do what I want. What I need is a list of transactions with the valuation of the date of the transaction (and without any later revaluation). I think this is a pretty common use pattern so it would be nice if ledger would

Re: Timeclock transactions balanced?

2011-06-20 Thread John Wiegley
Seppo Sade sepposa...@gmail.com writes: Currently timeclock entries result in a virtual transaction were the time is just added to that account. But I would instead like to make it a balanced transaction, with both a source and destination account. Any hints on how to accomplish this? This

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