Re: Setting precision for $

2022-05-22 Thread David Glasser
On Sun, May 22, 2022 at 7:57 PM Martin Michlmayr  wrote:
>
> * David Glasser  [2022-05-22 18:41]:
> > I sold some stock at a price valued in half-cents. I modeled this in ledger
> > like
> >
> > 2022-05-13 Buyer
> >   Bank  $100.50
> >   Shares  -100 STOCK @ $1.005
> >
> > This means that Ledger now thinks that it should display every $ value with
> > three digits of precision
>
> No, it doesn't.  Price info (@ $...) is not used for precision.
>
> I don't get 3 digits with your example.  If you really get 3 digits,
> it's because of another reason.  Maybe you specified 3 digits in
> another transaction.

You're right. By a strange coincidence I had a typo in another entry
on the same day.


-- 
glas...@davidglasser.net | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAN7QDoJswSXU%3DYr_eBgVQW6J2tFu1Of4tqUeVK1DZA9qDvprGQ%40mail.gmail.com.


Setting precision for $

2022-05-22 Thread David Glasser
I sold some stock at a price valued in half-cents. I modeled this in ledger
like

2022-05-13 Buyer
  Bank  $100.50
  Shares  -100 STOCK @ $1.005

This means that Ledger now thinks that it should display every $ value with
three digits of precision, which I don't like. How can I get $ back to just
two digits?  I see you can specify precision with C when you define a
commodity in terms of another one but I haven't done that for $...

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAN7QDoJYTHzvOftWknEZJHkLFKR6%3DCSvPfUps_iEQ%3DFixrZy9A%40mail.gmail.com.


Re: See amount in an account but no sub-account in bal report?

2020-04-21 Thread David Glasser
Er, sorry, to be more clear: can I get a full tree of all my accounts, and
for any "non-leaf" account that has non-zero balance, also call out its own
balance on its own line?

On Tue, Apr 21, 2020 at 12:21 AM Martin Michlmayr  wrote:

> * David Glasser  [2020-04-21 00:09]:
> > Let's say I have $1000 in A:X, $200 in A:Y, $30 in A:Z, and $4 in just A
> > alone. Is there a way to get that $4 value to show up on a bal report?
>
> A$
>
> You can use reg ex for account names.
>
> --
> Martin Michlmayr
> https://www.cyrius.com/
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ledger-cli/20200421072052.GI4706%40jirafa.cyrius.com
> .
>


-- 
glas...@davidglasser.net | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAN7QDo%2BHx-ohV1-ETJxfv4MB6XXWF2k62rfcre%3DyH__Zb7aH6A%40mail.gmail.com.


See amount in an account but no sub-account in bal report?

2020-04-21 Thread David Glasser
Let's say I have $1000 in A:X, $200 in A:Y, $30 in A:Z, and $4 in just A
alone. Is there a way to get that $4 value to show up on a bal report?

-- 
glas...@davidglasser.net | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAN7QDoJsorJfxWPcorbUYcC9CLFc6%2BfM-oDG6V-K%2BYnb5Ww5rQ%40mail.gmail.com.


Re: Syntax Highlighting for VSCode and Sublime Text 3

2019-10-23 Thread David Glasser
Neat!

I've recently started using VSCode more for TypeScript/TSX as even with
lsp-mode it's a lot better than Emacs, but it's difficult to live in
multiple editing environments (not to mention needing IntelliJ for JVM
work), so I've considered trying to just entirely move off Emacs, and
ledger-mode is one of the big things I'd lose. I've see
https://github.com/mariosangiorgio/vscode-ledger but it's not maintained;
it does look pretty straightforward to extend to add more autocompletion
etc though.  I am also worried about missing ledger-mode's reconcile mode,
but it looks like your ledgerbil does something like that.  (One addition I
might make if I try it out: a version of the "mark" command that lets me
type an amount and, if there's a unique unreconciled transaction with that
amount, marks it.  Would make running down a long credit card bill
easier... just type the numbers as they come!)

--dave

On Wed, Oct 23, 2019 at 11:16 AM Scott Carpenter 
wrote:

> I recently switched from Sublime Text to VSCode and created a plugin for
> the textmate language grammar for journal files (.ledger and .ldg). I'm
> still maintaining the sublime syntax file, too. All the things are here:
>
> https://github.com/scarpent/ledgerbil/tree/master/syntax
>
> The rules are targeted at standard account roots: expenses, assets,
> liabilities, income, and equity. (Or one letter aliases of same, except for
> equity.)
>
> I think it looks nice and colorful:
>
> [image: ledger-syntax-highlighting-0.png]
>
> In Sublime Text, I originally used scopes that had these colors with a
> Monokai Dark theme, but there are settings included in repo for both ST3
> and vscode to match what is shown here and in the syntax readme.
>
> It handles tags, balance assertions, balance assignments, and virtual
> postings. I don't use a lot of ledger features and make no promises on how
> it does for more complicated journal files, but I'd be open to attempting
> updates if given examples.
>
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ledger-cli/725d0f46-484c-49c4-acba-84c5815973bb%40googlegroups.com
> 
> .
>


-- 
glas...@davidglasser.net | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAN7QDoL-zJ2BQ0Qa7GVoMZoJ5UsXQbaANRg8m-uZ%3Du-8FvV18g%40mail.gmail.com.


Re: shortcuts for entering dates in emacs?

2017-09-20 Thread David Glasser
Now that I'm trying to switch away from my old habits of MM/DD with the Y
command, is there a way to make ledger error out if I accidentally leave
off a year?

On Mon, Aug 7, 2017 at 1:10 AM, David Glasser <glas...@davidglasser.net>
wrote:

> On Tue, Aug 1, 2017 at 3:18 PM, David Glasser <glas...@davidglasser.net>
> wrote:
> > - automatically adding years to all my existing transactions (I can write
> > some scripts to do it for sure, but if somebody already did then that's
> nice
> > :) )
>
> Handled that part myself:
>
> $ perl -pi -e '/^Y (\d\d\d\d)/ and $y = $1; s!^(\d\d?[-/]\d\d?
> )!$y/$1!' personal.ledger
>
> (You have to be careful with includes, but that wasn't relevant for me.)
>
> --
> glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/
>



-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: shortcuts for entering dates in emacs?

2017-08-02 Thread David Glasser
Ooh, I'd definitely use that!

On Tue, Aug 1, 2017 at 10:13 PM, Yuri Khan <yuri.v.k...@gmail.com> wrote:

> On Wed, Aug 2, 2017 at 5:18 AM, David Glasser <glas...@davidglasser.net>
> wrote:
>
> > Anybody have advice on either:
> >
> > - making it faster in emacs to enter dates (other than today, I already
> have
> > an insert current date keybinding)?
>
> I think I might like Tab to autocomplete and canonicalize dates. The
> idea is that if you typed a single number at the beginning of line and
> pressed Tab, it would expand to the date in the current or last month;
> two numbers with a separator would expand to the date in the current
> or last year; and separators would be normalized according to
> ledger-default-date-format. (The “current or last” in both cases would
> resolve to yield a date that is not in the future.)
>
> Example: On 2018-01-03, you enter "30" at the start of line, press
> Tab, and it expands to 2017-12-30.
>
> I will try implementing that if anyone else thinks it would be a good idea.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: shortcuts for entering dates in emacs?

2017-08-01 Thread David Glasser
Hmm, doesn't look like print --raw adds years to dates, and it also drops a
lot of my comments.

On Tue, Aug 1, 2017 at 3:23 PM, John Wiegley <jo...@newartisans.com> wrote:

> >>>>> "DG" == David Glasser <glas...@davidglasser.net> writes:
>
> GD> - automatically adding years to all my existing transactions (I can
> write
> GD> some scripts to do it for sure, but if somebody already did then that's
> GD> nice :) )
>
> ledger print --raw is designed to reproduce your input file as closely as
> possible (minus placement of automated transactions and such).
>
> --
> John Wiegley  GPG fingerprint = 4710 CF98 AF9B 327B B80F
> http://newartisans.com  60E1 46C4 BD1A 7AC1 4BA2
>



-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


shortcuts for entering dates in emacs?

2017-08-01 Thread David Glasser
I've been using ledger-mode with ledger for 7 years or so.  I do a lot of
manual entry from paper receipts so I'm often entering dates that are not
today's date.

I use the "Y 2017" command and usually just enter my dates as "8/1" or
whatever. However a recent change to ledger-mode has made it only recognize
dates with years.  I'd rather be lazy, but OK, this isn't the first tool
that works better with full dates.

Anybody have advice on either:

- automatically adding years to all my existing transactions (I can write
some scripts to do it for sure, but if somebody already did then that's
nice :) )

- making it faster in emacs to enter dates (other than today, I already
have an insert current date keybinding)?

--dave

-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Getting started; assigning accounts to bank .csv data

2016-02-03 Thread David Glasser
One downside to doing it this way is that before you enter the check
clearing transaction, Assets:Checking does not actually answer the question
"how much can I take out of my checking account without bouncing a check",
which surely is a very important use case.

--dave
On Feb 3, 2016 8:30 PM, "Michael Norrish"  wrote:

> One way to do two-stage cheques would be something like
>
> 2016/1/25 * My Favourite Shop
>   Expenses:Groceries   $100
>   Liabilities:Unprocessed Checks
>
> 2016/1/31 * Check clearing
>   Liabilities:Unprocessed Checks  $100
>   Assets:Checking Account
>
> You could assuredly add metadata to link the two transactions to be wrt
> some check #.
>
> Michael
>
> > On 4 Feb 2016, at 15:26, John Hendy  wrote:
> >
> > On Tue, Feb 2, 2016 at 10:07 PM, Martin Blais  wrote:
> >> On Tue, Feb 2, 2016 at 10:48 PM, John Hendy  wrote:
> >>>
> >>> On Monday, February 1, 2016 at 10:41:26 PM UTC-6, Martin Blais wrote:
> 
>  On Mon, Feb 1, 2016 at 1:13 PM, John Hendy  wrote:
> >
> > Greetings,
> >
> >
> > [snip]
> >
> >>>
> >>>
> >>> Huh. Yes, I'll definitely have to look into the emacs mode. I assumed
> once
> >>> it was in ledger format it would be *a lot* harder to navigate around
> vs.
> >>> just doing it while it's already in a spreadsheet format.
> >>
> >>
> >> Definitely not, text is there for your pleasure. You typically organize
> your
> >> Ledger input file in the order that makes the most sense for you (minus
> some
> >> constraints: Ledger will report the transactions in the order they
> appear in
> >> the file and the balance assertions are computed as such. Beancount
> sorts
> >> everything by date so order doesn't matter).
> >
> >
> > So, using the demo.ledger file as an example, if I run `convert` on my
> > downloaded bank file, I'm going to get something like this:
> >
> > 2010/12/01 * Checking balance
> >  Expenses:Unknown$1,000.00
> >  Equity:Unknown
> >
> > 2010/12/20 * Organic Co-op
> >  Expenses:Unknown $ 37.50  ; [=2011/01/01]
> >  Equity:Unknown   $ -225.00
> >
> > 2011/01/02 Grocery Store
> >  Expenses:Unknown $ 65.00
> >  Equity:Unknown
> >
> > Would you just go through that and manually change all of those
> > categories in ledger-mode? I still like starting from the bank .csv,
> > as it's got transaction ids and the amounts already in there... all I
> > need to do is add categories. It appears that `convert` defaults to
> > the above. As this is the primary thing of interest to me, I was sort
> > of surprised that ledger mode offered no pop-up minibuffer to edit the
> > account, at least from perusing the manual page. I only see options
> > for reconciling, reports, changing an amount, etc.
> >
> > In any case, `convert` got most of my stuff into ledger format and
> > ledger-mode at least recognizes the blocks, so I'll likely just start
> > from there. I still have *a lot* more reading to do... for example:
> >
> > - I noticed in the demo file, the co-op (which I snipped above)
> > purchases were in one chunk vs. treated as separate transactions. I
> > wouldn't default to this and am guessing it's just a preference thing
> > (compared to having one transaction per payment)?
> >
> > - I still wrestle with deposits and withdrawals. Am I the payee? Is my
> > bank? Does it matter as long as some assets category goes positive and
> > another negative?
> >
> > - I'd love tracking checks *as we write them* vs. just waiting for
> > them to appear. This used to really annoy me in Moneydance, as I'd go
> > through the checkbook once a month to see what was written but not
> > come through. Then I'd have to have these little note entries along
> > the way to remind me what the total of uncashed checks were to-date so
> > that the sums added up. I bet there was a better way in Moneydance I'd
> > missed, and I'm positive there's one in ledger/beancount.
> >
> > Anyway, still taking it slow but feel like I'm starting to get to a
> > usable noob state.
> >
> >
> > Thanks,
> > John
> >
> > --
> >
> > ---
> > You received this message because you are subscribed to the Google
> Groups "Ledger" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to ledger-cli+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.

Re: Getting started; assigning accounts to bank .csv data

2016-02-03 Thread David Glasser
Ah, sure, if there's a 1:1 mapping between unprocessed accounts and
main accounts.  (Perhaps Assets:Checking:Unprocessed Checks?)

On Wed, Feb 3, 2016 at 9:32 PM, Michael Norrish
<michael.norr...@gmail.com> wrote:
> A balance command mentioning those two accounts would sum to the amount you
> want:
>
>ledger bal assets.checking liabilities:unprocessed
>
> Michael
>
> On 4 Feb 2016, at 15:50, David Glasser <glas...@davidglasser.net> wrote:
>
> One downside to doing it this way is that before you enter the check
> clearing transaction, Assets:Checking does not actually answer the question
> "how much can I take out of my checking account without bouncing a check",
> which surely is a very important use case.
>
> --dave
>
> On Feb 3, 2016 8:30 PM, "Michael Norrish" <michael.norr...@gmail.com> wrote:
>>
>> One way to do two-stage cheques would be something like
>>
>> 2016/1/25 * My Favourite Shop
>>   Expenses:Groceries   $100
>>   Liabilities:Unprocessed Checks
>>
>> 2016/1/31 * Check clearing
>>   Liabilities:Unprocessed Checks  $100
>>   Assets:Checking Account
>>
>> You could assuredly add metadata to link the two transactions to be wrt
>> some check #.
>>
>> Michael
>>
>> > On 4 Feb 2016, at 15:26, John Hendy <jw.he...@gmail.com> wrote:
>> >
>> > On Tue, Feb 2, 2016 at 10:07 PM, Martin Blais <bl...@furius.ca> wrote:
>> >> On Tue, Feb 2, 2016 at 10:48 PM, John Hendy <jw.he...@gmail.com> wrote:
>> >>>
>> >>> On Monday, February 1, 2016 at 10:41:26 PM UTC-6, Martin Blais wrote:
>> >>>>
>> >>>> On Mon, Feb 1, 2016 at 1:13 PM, John Hendy <jw.h...@gmail.com> wrote:
>> >>>>>
>> >>>>> Greetings,
>> >>>>>
>> >
>> > [snip]
>> >
>> >>>
>> >>>
>> >>> Huh. Yes, I'll definitely have to look into the emacs mode. I assumed
>> >>> once
>> >>> it was in ledger format it would be *a lot* harder to navigate around
>> >>> vs.
>> >>> just doing it while it's already in a spreadsheet format.
>> >>
>> >>
>> >> Definitely not, text is there for your pleasure. You typically organize
>> >> your
>> >> Ledger input file in the order that makes the most sense for you (minus
>> >> some
>> >> constraints: Ledger will report the transactions in the order they
>> >> appear in
>> >> the file and the balance assertions are computed as such. Beancount
>> >> sorts
>> >> everything by date so order doesn't matter).
>> >
>> >
>> > So, using the demo.ledger file as an example, if I run `convert` on my
>> > downloaded bank file, I'm going to get something like this:
>> >
>> > 2010/12/01 * Checking balance
>> >  Expenses:Unknown$1,000.00
>> >  Equity:Unknown
>> >
>> > 2010/12/20 * Organic Co-op
>> >  Expenses:Unknown $ 37.50  ; [=2011/01/01]
>> >  Equity:Unknown   $ -225.00
>> >
>> > 2011/01/02 Grocery Store
>> >  Expenses:Unknown $ 65.00
>> >  Equity:Unknown
>> >
>> > Would you just go through that and manually change all of those
>> > categories in ledger-mode? I still like starting from the bank .csv,
>> > as it's got transaction ids and the amounts already in there... all I
>> > need to do is add categories. It appears that `convert` defaults to
>> > the above. As this is the primary thing of interest to me, I was sort
>> > of surprised that ledger mode offered no pop-up minibuffer to edit the
>> > account, at least from perusing the manual page. I only see options
>> > for reconciling, reports, changing an amount, etc.
>> >
>> > In any case, `convert` got most of my stuff into ledger format and
>> > ledger-mode at least recognizes the blocks, so I'll likely just start
>> > from there. I still have *a lot* more reading to do... for example:
>> >
>> > - I noticed in the demo file, the co-op (which I snipped above)
>> > purchases were in one chunk vs. treated as separate transactions. I
>> > wouldn't default to this and am guessing it's just a preference thing
>> > (compared to having one transaction per payment)?
>> >
>> > - I still wrestle with deposits and withdrawals. Am I the payee? Is my
>> > bank? 

emacs ledger-reconcile UX question

2015-10-16 Thread David Glasser
ledger-reconcile contains these lines:

(if (> (ledger-reconcile-refresh) 0)
(ledger-reconcile-change-target))

ie, if you are asking to reconcile an account with no uncleared
transactions, it doesn't prompt you for a target amount (and just uses
whatever target is left over from the last time you reconciled).

Is this actually useful to anyone? I personally find it pretty frustrating
that when reconciling a bunch of accounts, I have to take two extra steps
for accounts with no uncleared transactions: run ledger-reconcile-refresh,
hit t to set the target, hit b to show the balance.  (In fact I only just
today taught myself that those commands worked; for literally years I've
been adding a dummy txn to my file and then deleting it after running
ledger-reconcile.)

In addition, I don't understand why you'd ever *not* want to immediately
call ledger-display-balance after manually running
ledger-reconcile-change-target with 't'.

I'm happy to send in a PR to change the UX to what I'd enjoy (run
ledger-reconcile-change-target unconditionally, make
ledger-reconcile-change-target call ledger-display-balance) but before I do
that I'm curious if anyone knows why the current behavior does this so I
know if I should be adding a customization instead of just changing the
behavior.

-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Show your favorite Ledger reports!

2015-08-28 Thread David Glasser
Ah great. And how do you generate the list of rows in your table (ie,
ensure you aren't forgetting some important buckets)? Just make sure to
only use a consistent and fixed set of top level expense categories?

--dave
On Aug 28, 2015 2:35 AM, Alan Schmitt alan.schm...@polytechnique.org
wrote:

 On 2015-08-27 16:58, David Glasser glas...@davidglasser.net writes:

  How do your buckets interact with the actual location of the funds? Ie,
 when
  you say that your income goes to the unallocated bucket, does it not
 also go
  to the actual bank account it is in? Are you using virtual accounts or
 tags or
  something?

 This is my setup (which is copied from many sources):

 --8---cut here---start-8---
 = expr (date=[2014] and account =~ /^Expenses:/)
 Bucket:$account   -1
 Total Buckets  1

 = expr (date=[2014] and account =~ /^Income:/)
 Bucket:Unallocated:EUR-1
 Total Buckets  1
 --8---cut here---end---8---

 So when I enter some expense transaction, it gets:
 - added to the expense account explicitly
 - removed from the bank account explicitly
 - removed from the expense bucket by the rule above
 - added to “Total Buckets” to keep things equal to 0 by the rule

 When I enter some income, it gets:
 - removed from the income bucket explicitly
 - added to the bank account explicitly
 - added to the unallocated bucket by the rule
 - removed from “Total Buckets” by the rule

 The budget transaction moves money from the unallocated bucket to the
 expense buckets.

 So I track my money in three places (I don’t count the “Total Bucket”):
 - bank accounts, that show where the money is
 - expense and income accounts, which show the collated expenses and
 income
 - expense buckets and the unallocated bucket (as well as some savings
 bucket) that show what the money is meant for

 Is it clearer?

 Best,

 Alan

 --
 OpenPGP Key ID : 040D0A3B4ED2E5C7
 Last week athmospheric CO₂ average (Updated August 17, 2015, Mauna Loa
 Obs.):
 398.19 ppm


-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Show your favorite Ledger reports!

2015-08-27 Thread David Glasser
How do your buckets interact with the actual location of the funds? Ie,
when you say that your income goes to the unallocated bucket, does it not
also go to the actual bank account it is in? Are you using virtual accounts
or tags or something?

--dave
On Aug 27, 2015 2:32 AM, Alan Schmitt alan.schm...@polytechnique.org
wrote:

 On 2015-08-14 04:06, Simon Michael si...@joyful.com writes:

  On 7/11/15 9:16 AM, Lifepillar wrote:
  Hi,
  I am sure all of you have some carefully crafted Ledger commands
  up your sleeves, which generate reports you especially like.
  Why not share them in this thread, for the benefit of the newbies
  and the not-so-newbies?
 
  Two reports I like are the cash flow:
 
  ledger bal --collapse --dc --related --real --effective \
  -p 'this month' Cash
 
  (of course you may use other accounts), and this one for sorted
  monthly expenses:
 
  ledger reg --period-sort '(-amount)' --real --effective \
 --monthly -p 'this month' Expenses
 
  What are your favorite ones?
 
  I liked this message a lot - I've had it starred for a month now. :) And
  I'm sorry to see no replies. Why is that ?

 I was not sure the following would apply, but just in case … I wrote
 a small page about how I use orgmode with ledger to build org tables to
 track budgets and expenses:
 http://alan.petitepomme.net/tips/ledger_and_org.html

 Alan

 --
 OpenPGP Key ID : 040D0A3B4ED2E5C7
 Last week athmospheric CO₂ average (Updated August 17, 2015, Mauna Loa
 Obs.):
 398.19 ppm

 --

 ---
 You received this message because you are subscribed to the Google Groups
 Ledger group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to ledger-cli+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Ledger Mobile App

2015-07-23 Thread David Glasser
Yeah, I find todo.txt to be a pretty good way to enter informal receipts on
my Android phone that I later convert into ledger. They get date stamped
automatically, which is nice.

--dave
On Jul 17, 2015 4:16 PM, ivstefn stefanici...@gmail.com wrote:

 I posted a reply over nntp from gmane gateway but it looks it didn't get
 here, so I'll post again from Google Groups interface (the interface...
 lord help me). I apologize to the group if you get two messages.

 On Thursday, July 16, 2015 at 4:32:06 PM UTC+2, Leonardo Melo wrote:

 Hi everyone, not sure this is the best way to post this. Please let me
 know if I'm screwing this up.

 I've been meaning to develop a Ledger CLI front-end hybrid web/mobile app
 to interact with some sort of backend web implementation but could never
 find a Backend implementation for it.

 Looking through this Google groups I noticed that some, could I say,
 sibling projects of Ledger seem to have some sort of web implementation to
 them, eg Haskell Ledger or Beancount.

 So my questions to the group would be: Is Ledger not being actively
 developed anymore? Should I instead choose one of the other projects and
 develop my app using one of those? Is there something like this already in
 the community that I could help improve?


 A program doesn't need to be under heavy breakneck-speed development to be
 alive. Most reliable software I use (and like) is in maintenance mode.

 Any information regarding the matter would be great. My idea is to use the 
 Ionic
 Framework http://ionicframework.com/ to create the app and I was
 between using PHP or NodeJS as the backend (as PHP and Javascript are my
 strongest skills). I can also try some Python or as a last resort Rails
 implementation if that's all there is.

 The features for my app would initially include viewing balances and
 recent postings as well as adding a new posting.

  Why do you jump straight to complicated frameworks and technologies?

 Webapps, as popular as they are now in this day and age are not simple,
 nor they perform well, especially on low end android phones (I have one). I
 don't think they should be first choice.

 Also, I think there is some javascript  webapp frontend for ledger, I
 think I found it on GitHub some time ago. The dependencies were _crazy_ I
 don't think I even got it to work locally. There was a demo online, and I
 really wasn't impressed. It was laggy, as most javascript stuff is, and
 also too underfeatured to be useful.


 My idea (for a normal computer running real OS) is:

 TCK/TK frontent might not be the most popular idea, but I think it would
 be very reasonable. It looks reasonably good to me, I really don't like
 overdesigned software. I like software that uses familiar looking widgets.

 For examples see gitk and git-gui, that are official git GUI clients that
 should be installed if you use git. You can see the code, just
 vi /usr/bin/gitk (or wherever). Also /usr/share/git-gui/lib/* (or
 wherever).

 From Tk wiki: Bindings exist for several other languages, including
 Ada (called TASH), Haskell (called HTk), Perl, Python (called Tkinter),
 Ruby, Rexx, and Common Lisp.  So these languages could be used too.

 TCL and Tk are in all distro repos, and available for OS X and Windows and
 doing a ledger desktop GUI this way would be the most reasonable way.

 As for being able to enter/see stuff on the mobile... I can see there
 might be some
 value in that, but it's too much work just to be able to enter a
 transaction or two a day. I just enter a reminder in my todo app, and
 at the end of the day when I'm at my computer enter it into ledger file.
 It's not the end of the world, and it doesn't make ledger useless.

 As for mobile app implementation:
 You might want to check out http://todotxt.com/
 It is a paid app in the Play Store but it's GPL'd software with source
 available on github.

 It's a todo app, stores notes in a plaintext file on dropbox. I think that
 might be what you're looking for. Dropbox would make it easy to get
 what you want, and not care about auth (Dropbox does that),
 collisions (dropbox 'should :) ' be doing that).

 Sources for the both android and ios apps are on Github and I think
 doing it that way would be a good start. And doing it that way you
 don't need a backend -- Dropbox does that. You only need frontend.

 I hope this was helpful.

 --
 Ivan

 --

 ---
 You received this message because you are subscribed to the Google Groups
 Ledger group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to ledger-cli+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Release 3.1.1?

2015-05-28 Thread David Glasser
Seems like 3.1 has been out for a while there have been no commits to
the release/3.1.1 branch since January.  I ran into
http://bugs.ledger-cli.org/show_bug.cgi?id=1038 today which was fixed
in December.

Of course, I can always build from head, but it's nice to have
official releases that package managers (eg homebrew) can use!

-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Reimbursement tracking

2015-01-12 Thread David Glasser
Thanks. With the example above, though, it does not seem to suppress 0
groups (unless I just need to upgrade ledger or something?)

glasser@perseid 0 /tmp $ ledger -f fsa.ledger bal --group-by tag('FSA')  %FSA
R1234
   $-100  Assets:FSA
$100  Expenses:Healthcare

   0

R2345
 $50  Expenses:Healthcare

On Sat, Jan 10, 2015 at 12:48 AM, Stefano Zacchiroli z...@upsilon.cc wrote:
 On Fri, Jan 09, 2015 at 10:18:57AM -0800, David Glasser wrote:
 Maybe that's the question I'm asking :)  Neither -n or
 --collapse-if-zero do the trick here; they both  just report FSA $50
 which is missing the R2345 part I do care about.

 Try this:

   ledger bal --group-by tag('FSA') %FSA

 I use a slightly different tagging scheme, but when grouping ledger does
 suppress groups that balance to 0 (unless you also pass --empty).

 Cheers.
 --
 Stefano Zacchiroli  . . . . . . .  z...@upsilon.cc . . . . o . . . o . o
 Maître de conférences . . . . . http://upsilon.cc/zack . . . o . . . o o
 Former Debian Project Leader  . . @zack on identi.ca . . o o o . . . o .
 « the first rule of tautology club is the first rule of tautology club »

 --

 ---
 You received this message because you are subscribed to the Google Groups 
 Ledger group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to ledger-cli+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.



-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Reimbursement tracking

2015-01-12 Thread David Glasser
OK, I see what was going on here.  I was tagging the two parts of the
reimbursement that feel to me like they really are abstractly what
the reimbursement are about: the healthcare expense (positive amount),
and the reimbursement from my FSA account (negative amount). Even
though their amounts canceled out, ledger won't add them together
since they are in separate accounts.

If instead I tagged my bank account (which seems to me to be the less
interesting detail) both times, then it would cancel out in
--group-by:

1/1 Doctor
 Expenses:Healthcare   $100
 Assets:Bank
   ; FSA: R1234

1/30 Reimburse from FSA
 Assets:Bank$100
; FSA: R1234
 Assets:FSA

However, this doesn't support the case where there are four different
accounts involved; eg, let's say I pay a healthcare expense with a
credit card, cash, or another bank account from the one that i have
FSA reimbursement set up with.  I really just want to be able to say
show me the sum of all FSA:R1234 postings, no matter what account
they are to.

--dave


On Mon, Jan 12, 2015 at 1:38 PM, Stefano Zacchiroli z...@upsilon.cc wrote:
 On Mon, Jan 12, 2015 at 12:39:14PM -0800, David Glasser wrote:
 Thanks. With the example above, though, it does not seem to suppress 0
 groups (unless I just need to upgrade ledger or something?)

 I think you're not posting your pending reimbursement quite right (or at
 least in a way that is uncommon for double-entry accounting) and that is
 striking back.

 Here is how I do that, for expenses, before reimbursement:

   1/1 * doctor visit
   ; reimbursement-id: id1
   Assets:Checking  -50 EUR
   Assets:Reimbursable   50 EUR

   2/2 * another doctor visit
   ; reimbursement-id: id2
   Assets:Checking  -50 EUR
   Assets:Reimbursable   50 EUR

 When you get reimbursed:

   3/3 * reimbursement - doctor visit
   ; reimbursement-id: id1
   Assets:Checking   50 EUR
   Assets:Reimbursable  -50 EUR

 with such a ledger:

   $ ledger -f foo.ledger --group-by tag('reimbursement-id') bal --empty
   id2
  0  Assets
-50 EURChecking
 50 EURReimbursable
   
  0

 while id1 is not shown, as desired.

 Cheers.
 --
 Stefano Zacchiroli  . . . . . . .  z...@upsilon.cc . . . . o . . . o . o
 Maître de conférences . . . . . http://upsilon.cc/zack . . . o . . . o o
 Former Debian Project Leader  . . @zack on identi.ca . . o o o . . . o .
 « the first rule of tautology club is the first rule of tautology club »

 --

 ---
 You received this message because you are subscribed to the Google Groups 
 Ledger group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to ledger-cli+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.



-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reimbursement tracking

2015-01-09 Thread David Glasser
I'm trying to track reimbursement requests from my FSA using something
based on an old thread here by Russell Adams.

I can do something like this:


1/1 Doctor
 Expenses:Healthcare   $100
   ; FSA: R1234
 Assets:Bank

1/5 Doctor
 Expenses:Healthcare   $50
   ; FSA: R2345
 Assets:Bank

1/30 Reimburse from FSA
 Assets:Bank$100
 Assets:FSA
; FSA: R1234

And run something like

$ ledger -f fsa.ledger --pivot FSA bal %FSA
 $50  FSA
   0R1234
   $-100  Assets:FSA
$100  Expenses:Healthcare
 $50R2345:Expenses:Healthcare

 $50

What I'd really love in this case would be to have the R1234 section
entirely disappear (it's a fully processed reimbursement) and just see
my outstanding reimbursement).  I can't figure out how to do that! Is
this possible?  Is there a better model?


-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Reimbursement tracking

2015-01-09 Thread David Glasser
Maybe that's the question I'm asking :)  Neither -n or
--collapse-if-zero do the trick here; they both  just report FSA $50
which is missing the R2345 part I do care about.

On Fri, Jan 9, 2015 at 10:16 AM, Russell Adams
rlad...@adamsinfoserv.com wrote:
 David,

 On Fri, Jan 09, 2015 at 09:35:30AM -0800, David Glasser wrote:
 I'm trying to track reimbursement requests from my FSA using something
 based on an old thread here by Russell Adams.

 I can do something like this:


 1/1 Doctor
  Expenses:Healthcare   $100
; FSA: R1234
  Assets:Bank

 1/5 Doctor
  Expenses:Healthcare   $50
; FSA: R2345
  Assets:Bank

 1/30 Reimburse from FSA
  Assets:Bank$100
  Assets:FSA
 ; FSA: R1234

 And run something like

 $ ledger -f fsa.ledger --pivot FSA bal %FSA
  $50  FSA
0R1234
$-100  Assets:FSA
 $100  Expenses:Healthcare
  $50R2345:Expenses:Healthcare
 
  $50

 What I'd really love in this case would be to have the R1234 section
 entirely disappear (it's a fully processed reimbursement) and just see
 my outstanding reimbursement).  I can't figure out how to do that! Is
 this possible?  Is there a better model?

 Isn't there a flag to omit $0 accounts in the output?

 I still do tons of this. ;]

 Thanks.



 --
 glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

 --

 ---
 You received this message because you are subscribed to the Google Groups 
 Ledger group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to ledger-cli+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.



 --
 Russell Adamsrlad...@adamsinfoserv.com

 PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

 Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

 --

 ---
 You received this message because you are subscribed to the Google Groups 
 Ledger group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to ledger-cli+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.



-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ledger.el 3.1 destroys syntax

2014-11-02 Thread David Glasser
I've been seeing these symptoms too, but haven't had the time to
investigate or report.

--dave
On Nov 2, 2014 8:45 AM, Stefano Zacchiroli z...@upsilon.cc wrote:

 On Sat, Nov 01, 2014 at 01:25:12PM +1000, Paul W. Rankin wrote:
  The problems are myriad, but I'll try to summarise:

 FWIW, I'm also experiencing several highlighting issues with ledger-mode
 3.1. Some of them which I believe haven't yet been mentioned in this
 thread (for info: I'm using Emacs 24.4, with graphical frames):

 - transient mark mode (AKA selection) has become invisible within
   transactions; it seems it is using the same color pattern used by
   ledger-mode to highlight individual transactions

 - the use of alternate dates (e.g., 2014/01/01=2014/01/02) inhibits the
   proper highlighting of date, payees, and posting. For instance, in the
   attached altdate.ledger, the second transaction has all text in green
   (except the payee and * which are in black), whereas the other
   transactions has the date in red, the payee in green, and the postings
   in blue

   also, the very useful bold red highlighting which is usually
   associated to pending transactions doesn't seem to work on
   transactions with alternate dates

 - the highlighting of files containing only account directives (but
   might actually apply also to check directives) has become bizarre. For
   instance, on the attached accounts.ledger the highlighting seems now
   to follow the cursor, rather than always highlighting a whole account
   directive, including note sub-directives and corresponding comments

   Also, according to conditions I haven't yet narrowed down, the
   directives are either all rendered in green (which seems weird per se,
   as there is no specific highlighting of the account keyword, for
   example), or some in green and some in blank. It seems to depend on
   where the cursor is at the time of a revert-buffer command, which
   makes no sense to me

 Hope this helps, and thanks a lot for maintaining ledger-mode!, I don't
 know what I'd do without it :-)

 Cheers.
 --
 Stefano Zacchiroli  . . . . . . .  z...@upsilon.cc . . . . o . . . o . o
 Maître de conférences . . . . . http://upsilon.cc/zack . . . o . . . o o
 Former Debian Project Leader  . . @zack on identi.ca . . o o o . . . o .
 « the first rule of tautology club is the first rule of tautology club »

 --

 ---
 You received this message because you are subscribed to the Google Groups
 Ledger group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to ledger-cli+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ledger-mode support for other accounting backends?

2014-09-14 Thread David Glasser
ledger-mode is amazing.  I literally cannot imagine how you could use
ledger without it.   (I have some additional customizations such as
the ability to select account names using ido.)

(I use ledger3 though I do not use a lot of the new-in-version-3 stuff.)

--dave

On Sun, Sep 14, 2014 at 10:23 AM, Craig Earls ender...@gmail.com wrote:
 I really have no idea how many people use ledger-mode.  I estimate 3.
 Is there any interest in ledger-mode handling other backends like
 hledger or bean count.  I admit I have not used anything other than
 ledger3.

 --
 Craig, Corona De Tucson, AZ
 enderw88.wordpress.com

 --

 ---
 You received this message because you are subscribed to the Google Groups 
 Ledger group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to ledger-cli+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.



-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ledger-report-redo no longer redo's

2014-09-04 Thread David Glasser
As of 2f9240ae00, hitting 'g' in the report buffer is a no-op.  Was
this intentional?

Auto-refresh is cool, but it doesn't catch changes that occur outside
emacs, or changes to the prices file, etc.

-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Ledger works great with todo.txt!

2014-06-26 Thread David Glasser
I enter all my personal transactions into ledger. Mostly this comes from
saving paper receipts or receiving (and tagging) receipts in email.  But
some transactions have no receipt, especially simple cash transactions.  I
used to write them down in a little notepad I keep in my wallet, but that
was often awkward.

A few months ago, I discovered the todo.txt class of apps:
http://todotxt.com/

It's a very simple class set of programs for many different platforms
(mobile, web, CLI, emacs mode, etc) which revolve around a very simple
one-line-per-task format.  Most of the apps (eg the mobile apps) let you
sync a file via dropbox.

So it turns out that the todo.txt Android app (presumably iOS too) is
really great as a companion to ledger!  One click to open the app, one
click to add a task, type in some text like grocery store $25.50, and
pretty soon a line will appear in the text file in dropbox, helpfully
tagged with the current date.  It's easy to transcribe all these lines into
ledger (one of these days I'll even write a script to convert the formats
directly).  Delete them or check them off (by adding x to the beginning
of a line) once they're processed!

Anyway, just thought other folks might benefit from this advice.

--dave

-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Testing the 3.0 release tarball

2013-06-13 Thread David Glasser
So, I'm still a 2.6 user, because I've been skimming this mailing list
for years but I still have no idea what changes I'll need to make to
my ledger file or the commands I typically run in order to make sure
that my usage is compatible, and I've been told that there does not
exist any text in the docs or anything telling people what to do in
order to upgrade. So I've been scared to even try...

On Thu, Jun 13, 2013 at 6:45 AM, Martin Michlmayr t...@cyrius.com wrote:
 * thierry th...@free.fr [2013-06-01 09:50]:
 There are two types of differences between 2.6 to 3.0
 ...
 Some (single letter value expression, and some env variable) have
 been ported but deprecated.

 Format strings are not compatible.  According to the TODO list,
 backwards compatibility was added but several 2.6 options are missing:
 http://bugs.ledger-cli.org/show_bug.cgi?id=755

 I don't think it's a big deal as there are probably few 2.6 users
 (left), but thought I'd mention it.

 --
 Martin Michlmayr
 http://www.cyrius.com/

 --

 ---
 You received this message because you are subscribed to the Google Groups 
 Ledger group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to ledger-cli+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.





-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Testing the 3.0 release tarball

2013-05-29 Thread David Glasser
The README.md still has stuff in it like If you're reading this file,
you have in your hands the Bleeding Edge.
Is that intentional?

Along those lines, is it intentional to contain all three of README.md
and README-1st and docs/README?

Is it supposed to ship with both ledger.texi and ledger3.texi?

Is there documentation about upgrading from 2.6?  The only thing I can
find is the very short Major Changes from version 2.6 section in
ledger3.texi. Is that up to date? It suggests that the only backwards
incompatible change is the removal of OFX support (and the deprecation
of single-letter value expressions, which should still work for now).
Should I expect to have to make other changes to my files when
upgrading?

On Tue, May 28, 2013 at 11:35 PM, John Wiegley jo...@newartisans.com wrote:
 Hello all!

 I have made a candidate release tarball for 3.0:

 http://ftp.newartisans.com/pub/ledger/ledger-3.0.0-20130529.tar.bz2

 If you could, please download this tarball and bang on it: read the docs,
 build it, etc.  Unless someone can turn up a problem, this will become the
 official 3.0.0 release.

 Thanks much!
   John

 --

 ---
 You received this message because you are subscribed to the Google Groups 
 Ledger group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to ledger-cli+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.





-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Taking notes on smartphones

2012-03-17 Thread David Glasser
I have a tiny moleskine notebook I keep in my wallet for non receipt
transactions, but perhaps that's not high tech enough for you :)
On Mar 17, 2012 7:46 PM, leandroohf leandro...@gmail.com wrote:

 Hi,

 This issues was already asked by me. But I would like to know what
 changes happened since the post:


 http://groups.google.com/group/ledger-cli/browse_thread/thread/490bda665b26644e/35027228fba81d54?lnk=gstq=iphone#35027228fba81d54

 I think is very useful to take daily notes on the go. Nowadays I keep
 my receipts (debit/credit) and then in the night I take the notes in
 my ledger file. But when I pay somethings with cash, it is hard to
 remember to take note. Except  by sims I haven't seen any solution to
 that


 http://groups.google.com/group/ledger-cli/browse_thread/thread/ca1b0a49d7e3/c58d9450378b5c4f?lnk=gstq=iphone#c58d9450378b5c4f

 But I think, because a lack of physical keyboard, it is very important
 avoid extra typing while taking notes.
 So. I am looking for  a solution to that on iphone. But would be
 interest to discuss this in any plataform.

 Any help?




Re: Why don't these two commands produce the same results?

2011-04-16 Thread David Glasser
Did anything interesting happen on 12/31? I can imagine that maybe your -e
is being interpreted as the beginning of the day? Try running reg and
diffing the transactions shown.

--dave
On Apr 16, 2011 7:08 PM, Karl Fogel kfo...@red-bean.com wrote:
 I may be misunderstanding how the '-p' option works... Can anyone
 explain why these two commands don't give exactly the same results? I
 would have thought they both produce simple balance sheets for 2010,
 but apparently they're not doing exactly the same thing:

 prompt ledger -p 2010 -f main.ledger -s bal assets liabilities
 $7,602.75 Assets
 $16,740.70 Checking
 $1,051.60 Google
 $-248.55 PayPal
 $59.00 QCC
 $30,000.00 Receivables
 $-40,000.00 Savings
 $16,455.81 Liabilities
 $1,335.50 Due to/from Karl Fogel
 $13,366.92 Due to/from Nina Paley
 $1,753.39 Due to/from SSTB Musicians
 
 $24,058.56


 prompt ledger -b 2010/01/01 -e 2010/12/31 -f main.ledger -s bal
 assets liabilities
 $7,638.24 Assets
 $16,740.70 Checking
 $1,051.60 Google
 $-213.06 PayPal
 $59.00 QCC
 $30,000.00 Receivables
 $-40,000.00 Savings
 $12,312.81 Liabilities
 $1,335.50 Due to/from Karl Fogel
 $9,458.92 Due to/from Nina Paley
 $1,518.39 Due to/from SSTB Musicians
 
 $19,951.05

 Thanks,
 -Karl


Re: auto-indenting in emacs mode?

2010-10-25 Thread David Glasser
On Tue, Apr 13, 2010 at 1:12 PM, John Wiegley jwieg...@gmail.com wrote:
 On Apr 13, 2010, at 4:10 PM, David Glasser wrote:

 (While on the topic of ledger.el: it seems to only have partial
 support for multi-file-!include setups: there's a ledger-master-file
 but only the report commands use it, not reconcile mode, add-entry, or
 completion. I think I see how to make reconcile mode and add-entry at
 least work with master-file... has anyone else done this yet?)

 I hope to address some of the multi-file issues in the currently-underway 
 rewrite of ledger.el.

I haven't been paying attention to ledger development for a while.
What's the current status of the ledger.el rewrite? Recommend to use
it yet? (Does it work with 2.x or just 3... I still can't build ledger
3 on my 10.5 mac :( )

--dave

-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/


Re: Reconciling and un-journaled transactions

2010-07-23 Thread David Glasser
What do you mean by reconcile? Are you using something like the
emacs reconcile mode that lets you check off unreconciled items
interactively?

On Fri, Jul 23, 2010 at 10:46 AM, spiffytech spiffyt...@gmail.com wrote:
 I'm pretty good about entering transactions into my journal, but
 sometimes an automatic bank withdrawl will occur that I didn't know
 about in advance. I might not notice this until the next time I
 reconcile, and then I have to step through my ledger and bank's
 transaction logs one line at a time until I find the culprit.

 Does anyone have a good way to deal with this? If I have my bank's
 transaction logs in a ledger-friendly format, is there a tool that
 will compare them? Or do I just need to suck it up and step through
 the transaction logs?




-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/


Re: Transferring between two reconcilable accounts

2010-06-25 Thread David Glasser
You can put * on the posting lines too. * on top line is equivalent to * on
all postings I believe.

--dave

On Jun 25, 2010 4:27 PM, Xavier Shay xavier-l...@rhnh.net wrote:

Hello

How do other people transfer between two accounts that the both
reconcile, since you only get one transaction_id/asterix mark per
transaction? I'm currently using two transactions, like this:

2010/06/26 * (FITID12345678) Transfer
 Assets:Checking$-100.0
 Assets:Limbo

2010/06/26 * (FITID12345679) Transfer
 Assets:Savings$100.0
 Assets:Limbo

With a pre-commit check that the Limbo account is 0

Seems unwieldy but I don't have a better idea.

Cheers,
Xavier


elisp to insert an account name with ido completion

2010-04-14 Thread David Glasser
(defun hash-keys (hashtable)
  Return all keys in hashtable.
  (let (allkeys)
(maphash (lambda (kk vv) (setq allkeys (cons kk allkeys))) hashtable)
allkeys))

(defun dsg-ledger-all-accounts ()
  Returns a list of the accounts in this file.
  (let ((origin (point)) (accounts (make-hash-table)))
(save-excursion
  (goto-char (point-min))
  (while (re-search-forward
  ^[ \t]+\\([*!]\\s-+\\)?[[(]?\\(.+?\\)\\(\t\\|\n\\| [ \t]\\) nil 
t)
(unless (and (= origin (match-beginning 0))
 ( origin (match-end 0)))
  (puthash (match-string-no-properties 2) t accounts
(hash-keys accounts)))

(defun on-empty-line ()
  (save-excursion
(beginning-of-line)
(= (line-end-position) (point

(defun dsg-ledger-insert-account ()
  Prompts the user for an account to insert at point.
  (interactive)
  (let ((accounts (dsg-ledger-all-accounts)))
(insert
 (if (on-empty-line)   )
 (ido-completing-read Account:  accounts) )))


-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/


-- 
To unsubscribe, reply using remove me as the subject.


Postings with the same value as each other

2010-04-11 Thread David Glasser
I'm just starting to use ledger to implement finances for an
organization.  The organization is a home with a bunch of folks where
we share costs.  I'm thinking that the virtual transactions will work
great for budgeting; for example I'm thinking of doing something like
this to track utilities bills:

4/1 Pay electric
  Expenses:Utilities:Electric   $100
  Housebills:Dave; because I'm the one who actually paid it
  (Budget:Utilities:2010-04)  $100

4/1 Pay gas for April and May
  Expenses:Utilities:Water   $100
  Housebills:Jane; Maybe she paid the water bill
  (Budget:Utilities:2010-04)  $50
  (Budget:Utilities:2010-05)  $50

; ... etc for all the utilities

; Then when it's time to issue housebill, I can use
;   ledger bal budget:utilities:2010-04
; to find out that the total utilities for the month were $150

4/15 Charge utilities
  Income:Utilities Collected   $-150
  (Budget:Utilities:2010-04)  $-150
  Housebills:Dave  $50
  Housebills:Jane  $50
  Housebills:Alex  $50

splitting the costs evenly among my housemates



So there are two features that would be nice here:

 1: For many instances of the virtual posting (the first and the last,
specifically) I want the posting to the budget to be the exact same as
some real posting.  For example, I'd like to add the exact value I
spent on electricity to the utilities budget and having to type the
same number twice leaves room for error.

 2: There are a bunch of cases where I want to divide a charge evenly
among a bunch of postings.  Both in the Take the utilities budget for
this month and divide it evenly among my housemates case (all
non-virtual) and in the Take the water bill (real charge) and divide
it evenly among virtual budget charges for two months cases.


Maybe these can be implemented by allowing some sort of special syntax
in the amount field?  So I could write something like:


4/1 Pay electric
  Expenses:Utilities:Electric   $100
  (Budget:Utilities:2010-04)  ^=^
  Housebills:Dave; because I'm the one who actually paid it

4/1 Pay gas for April and May
  Expenses:Utilities:Water   $100
  (Budget:Utilities:2010-04)  ^/^
  (Budget:Utilities:2010-05)  ^/^
  Housebills:Jane; Maybe she paid the water bill

4/15 Charge utilities
  Income:Utilities Collected   $-150
  (Budget:Utilities:2010-04)  ^=^
  Housebills:Dave  ^-/^
  Housebills:Jane  ^-/^
  Housebills:Alex  ^-/^

This is not necessarily the best syntax.  The semantics would basically be:

 - When you read a ^=^, interpret it as equal to whatever is written
immediately above it.

 - When you read a ^-=^, interpret it as the negative of whatever is
written immediately above it.

 - When you read a ^/^, hold off on calculating its value and keep
reading until you find a posting that isn't ^/^.  Then take the value
immediately above the first ^/^, divide it by the number of ^/^s, and
assign that it all of them.  ^-/^ is the same but assigns the
negative.

^^ elements perhaps can't be after a posting with an empty amount.  If
you place a ^=^ after a ^/^ it copies the value of the ^/^ not the
total that it was adding up to.

Would something like this be reasonable? I'd be interesting in helping
implement too, although I'll admit that I've had some difficulty
getting a build environment for ledger (I can probably build based on
whatever is in MacPorts but that isn't git master, I think).

--dave

-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/


Re: Postings with the same value as each other

2010-04-11 Thread David Glasser
Hmm, well, other than the fact that I can't use metadata since I don't
know how to get a 3.0 build on Mac 10.5 :)  I think that would work
for the simplest bit of this (if I used a BudgetUtil201004 tag and
tagged postings with it) but that wouldn't work for things like this
bill needs to be split across two months or really any of the split
things.  The advantage of the thing I described is that I could use
the ^^ macros for simple cases, but if I need to do something more
complicated I can still just write numbers... using tags instead of a
virtual account wouldn't give me that escape hatch, would it?

--dave

On Sun, Apr 11, 2010 at 2:23 PM, John Wiegley jwieg...@gmail.com wrote:
 Could you implement something by simply using metadata?

 John

 On Apr 11, 2010, at 5:20 PM, David Glasser wrote:

 I'm just starting to use ledger to implement finances for an
 organization.  The organization is a home with a bunch of folks where
 we share costs.  I'm thinking that the virtual transactions will work
 great for budgeting; for example I'm thinking of doing something like
 this to track utilities bills:

 4/1 Pay electric
  Expenses:Utilities:Electric   $100
  Housebills:Dave    ; because I'm the one who actually paid it
  (Budget:Utilities:2010-04)  $100

 4/1 Pay gas for April and May
  Expenses:Utilities:Water   $100
  Housebills:Jane    ; Maybe she paid the water bill
  (Budget:Utilities:2010-04)  $50
  (Budget:Utilities:2010-05)  $50

 ; ... etc for all the utilities

 ; Then when it's time to issue housebill, I can use
 ;   ledger bal budget:utilities:2010-04
 ; to find out that the total utilities for the month were $150

 4/15 Charge utilities
  Income:Utilities Collected   $-150
  (Budget:Utilities:2010-04)  $-150
  Housebills:Dave  $50
  Housebills:Jane  $50
  Housebills:Alex  $50

 splitting the costs evenly among my housemates



 So there are two features that would be nice here:

 1: For many instances of the virtual posting (the first and the last,
 specifically) I want the posting to the budget to be the exact same as
 some real posting.  For example, I'd like to add the exact value I
 spent on electricity to the utilities budget and having to type the
 same number twice leaves room for error.

 2: There are a bunch of cases where I want to divide a charge evenly
 among a bunch of postings.  Both in the Take the utilities budget for
 this month and divide it evenly among my housemates case (all
 non-virtual) and in the Take the water bill (real charge) and divide
 it evenly among virtual budget charges for two months cases.


 Maybe these can be implemented by allowing some sort of special syntax
 in the amount field?  So I could write something like:


 4/1 Pay electric
  Expenses:Utilities:Electric   $100
  (Budget:Utilities:2010-04)  ^=^
  Housebills:Dave    ; because I'm the one who actually paid it

 4/1 Pay gas for April and May
  Expenses:Utilities:Water   $100
  (Budget:Utilities:2010-04)  ^/^
  (Budget:Utilities:2010-05)  ^/^
  Housebills:Jane    ; Maybe she paid the water bill

 4/15 Charge utilities
  Income:Utilities Collected   $-150
  (Budget:Utilities:2010-04)  ^=^
  Housebills:Dave  ^-/^
  Housebills:Jane  ^-/^
  Housebills:Alex  ^-/^

 This is not necessarily the best syntax.  The semantics would basically be:

 - When you read a ^=^, interpret it as equal to whatever is written
 immediately above it.

 - When you read a ^-=^, interpret it as the negative of whatever is
 written immediately above it.

 - When you read a ^/^, hold off on calculating its value and keep
 reading until you find a posting that isn't ^/^.  Then take the value
 immediately above the first ^/^, divide it by the number of ^/^s, and
 assign that it all of them.  ^-/^ is the same but assigns the
 negative.

 ^^ elements perhaps can't be after a posting with an empty amount.  If
 you place a ^=^ after a ^/^ it copies the value of the ^/^ not the
 total that it was adding up to.

 Would something like this be reasonable? I'd be interesting in helping
 implement too, although I'll admit that I've had some difficulty
 getting a build environment for ledger (I can probably build based on
 whatever is in MacPorts but that isn't git master, I think).

 --dave

 --
 glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/



 --
 To unsubscribe, reply using remove me as the subject.




-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/


Re: Postings with the same value as each other

2010-04-11 Thread David Glasser
On Sun, Apr 11, 2010 at 2:38 PM, John Wiegley jwieg...@gmail.com wrote:
 On Apr 11, 2010, at 5:29 PM, David Glasser wrote:

 Hmm, well, other than the fact that I can't use metadata since I don't
 know how to get a 3.0 build on Mac 10.5 :)  I think that would work
 for the simplest bit of this (if I used a BudgetUtil201004 tag and
 tagged postings with it) but that wouldn't work for things like this
 bill needs to be split across two months or really any of the split
 things.  The advantage of the thing I described is that I could use
 the ^^ macros for simple cases, but if I need to do something more
 complicated I can still just write numbers... using tags instead of a
 virtual account wouldn't give me that escape hatch, would it?

 I think then you best bet is to write a pre-processor to achieve the custom 
 functionality you need.  The ^^ syntax you proposed is a bit too specialized. 
  But a pre-processor could do just what you want, and you could decide the 
 course of its development.

Yeah, that sounds reasonable enough.

--dave

PS: I've been using ledger for all of three days and I can already ask
it the sort of question's about my organization's budget that I had no
way of doing in Moneydance.  (And converting from MD's TSV export was
pretty easy.)  Thanks for making this software; it's great!


-- 
glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/