Re: A how to question - -

2023-09-25 Thread Marcin Borkowski


On 2023-09-25, at 17:26, Yuri Khan  wrote:

> On Mon, 25 Sept 2023 at 21:38, o1bigtenor  wrote:
>> On Mon, Sep 25, 2023 at 8:59 AM Enrico Lamperti  wrote:
>> >
>> > I believe it's still income, but you can put it in a different category (I 
>> > use Income:Other, maybe Income:Gifts could work if you believe you'll be 
>> > gifted money often)

Definitely income.

>> As soon as you even think of calling it 'Income' the tax man wants his hunk.

IANAL, and it obviously varies with the country, but in my country
(Poland) a gift is exempt from tax unless it's really valuable, and
there are 3 thresholds above which it becomes taxable - the highest
threshold is for the closest family members and the lowest one for
non-relatives.

I imagine similar laws may exist in other countries.

> There is a specific term “taxable income”, which suggests that not all
> income is taxable.
>
> Depending on local laws, gifts could also be taxable.
>
> Depending on local laws, different sources of income could be taxed at
> different rates.
>
> Therefore, consult the laws and maybe file gifts as tax-exempt income.

Exactly.

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/874jjit69g.fsf%40mbork.pl.


Re: A feature idea: An alternative org-mode input format

2023-02-09 Thread Marcin Borkowski


On 2023-02-10, at 03:31, Alexandre Rademaker  wrote:

> The table would be just a normal content, right? Is the format below more 
> regular for org-mode?
>
> * [2023-01-10 Tue] Adobe Acrobat Pro
>:PROPERTIES:
>:ID:   076497DC-45F7-43EC-BFDA-00177EFC3C0D
>:CREATED:  [2023-01-25 Wed 21:40]
>:END:
>
>  | Expenses:Administrative | $33.59 |
>  | Equity:Admin:Somebody   ||
>
>
> I am curious about the use cases for the benefits you described. 

Another thing you could easily do would be to use org-capture with this.

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87zg9mdnu8.fsf%40mbork.pl.


How do period expressions work with --begin and --end?

2023-01-31 Thread Marcin Borkowski
Hi all,

I was wondering how things like "this month" work with --begin and
--end.  I did some experiments, and it looks like you can give "this
month" or "last month" as an argument to --begin and --end, and their
meaning is "the first day of that period".  So:

--begin "last month" --end "this month"

is apparently equivalent to

--period "last month"

Is that correct?  Also, is it documented somewhere?

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87fsbpkfhv.fsf%40mbork.pl.


Re: Two questions about budgeting

2023-01-29 Thread Marcin Borkowski


On 2023-01-27, at 22:39, John Wiegley  wrote:

>>>>>> "MB" == Marcin Borkowski  writes:
>
>> 1. Why is there no "budget transaction" for groceries for 2022-01-01?
>
> Use this:
>
> ~ Daily from 2022-01-01

Great, thanks!

>> 2. I would assume that after these three days my "books" budget should
>>allow me to spend 155 PLN more on books and my "food" budget would
>>be short of 30 PLN.  Yet I can see neither of these amounts in the
>>report.  How to make Ledger compute them?
>
> Did you try the "budget" report?

No, it looks /very/ good!

I did some experiments, and here is what I came up with.  Can you
confirm that I guessed correctly?

1. I can do

~ Daily from 2022-01-01 to 2023-01-01

~ Daily from 2023-01-01

(the intervals are closed-open, like with -b/-e).  Right?

2. The --invert option does nothing for the `budget` report.  Correct?

3. If I don't provide -b, the default for the budget seems to be what
was in `~ Daily from`, but the transactions from before that date also
count towards the actual expenses.  That probably means that I should
/always/ provide -b to the `budget` report.  Is that right?

4. If I don't provide -e, the default (for the `budget` report) is
--current.  Is that correct?

5. If I don't provide `from` in `~ Daily`, the default seems to be the
date if the /first/ transaction on a given account.  Right?

6. (Almost) last but not least -- the `budget` report gives me a table
with 5 columns:
   - actual expenses
   - budgeted expenses
   - the difference (negative means I spent less than the budget --
 a bit counterintuitive, but makes sense given the order of the
 previous two)
   - what percentage of the budget was spent
   - name of the account

Using classical spreadsheet column names: C = A - B and D = A/B (as
percentage).  Do I guess correctly?

If so, this means that the web app I wrote to present this exact
information is mostly irrelevant. %-P  Still, it draws a nice chart
which is accessible from a smartphone.  I have a post-commit hook which
scp's the file to my VPS, and the web app there serves the chart -
that's a very useful arrangement I plan to blog about one day.

Now, my final question is this.  Much of what we discuss here is
apparently undocumented in the Ledger manual.  My book is my book, and
it contains examples and such, but I think it is fair to have these
options at least mentioned in the manual.  I have just fetched the
ledger repo, and I can see that the last commit in
`ledger/doc/ledger3.texi` was 7 years ago...  Would you accept a PR with
a small manual update?  (One minor issue with that idea is that I don't
speak texinfo, so you'd have to check every my edit very carefully.)

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/877cx4ef47.fsf%40mbork.pl.


Re: Two questions about budgeting

2023-01-25 Thread Marcin Borkowski


On 2023-01-25, at 21:14, Ihor Radchenko  wrote:

> Marcin Borkowski  writes:
>
>>> But isn't it already the case? The balance with budget already provides
>>> this info.
>>
>> What it doesn't do (or at least I can't do it) is to tell me that
>> (sticking to the example above) my food budget /for Jan 25/ is ~484 PLN,
>> so if I already spent 480 PLN, I'm good.  Ledger can only tell me that
>> I can still spend 120 PLN /until the end of the month/, which is the
>> same mathematically -- but doing these calculations in your head is not
>> always easy.
>
> I see. Why don't just use daily budget then?
> The daily budget gets applied progressively, and I know how much I can
> spend each day.

That's what I wanted to do.  But since the daily budget apparently does
not kick in on days when I spent nothing on e.g. food, this is of little
use for me...  If my daily budget is 20 PLN and I spend nothing on
a particular day, I expect to be "allowed" to spend 40 PLN on the next
day.

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87cz71onpl.fsf%40mbork.pl.


Re: Two questions about budgeting

2023-01-25 Thread Marcin Borkowski


On 2023-01-25, at 18:58, Ihor Radchenko  wrote:

> I meant
>
> ~ Daily from 2023/01/01
> Expenses:Food  ...
> Assets:Checking
>
> Not sure about global "from".

Ah, I see.

>> Also, daily budget makes /a lot/ of practical sense.  If my monthly food
>> budget is, say, 600 PLN, it's Jan 25 and I've spent 480 PLN on food,
>> I can't immediately tell if I'm overspending or not.  For the record,
>> I wrote myself a very simple web app which gets data from Ledger and
>> displays my spending this month against budget computed /for today/ (so
>> in the above case it would tell me that I'm ahead of my budget).
>
> Yup, I totally agree that it is useful. I have such thing too :)
> https://github.com/yantar92/emacs-config/blob/master/system-config.org#continuous-monitoring-of-budget
> Displayed right at my status bar.
>
>> It
>> would be cool if Ledger could provide such information, too...
>
> But isn't it already the case? The balance with budget already provides
> this info.

What it doesn't do (or at least I can't do it) is to tell me that
(sticking to the example above) my food budget /for Jan 25/ is ~484 PLN,
so if I already spent 480 PLN, I'm good.  Ledger can only tell me that
I can still spend 120 PLN /until the end of the month/, which is the
same mathematically -- but doing these calculations in your head is not
always easy.

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87h6weo0jw.fsf%40mbork.pl.


Re: Two questions about budgeting

2023-01-25 Thread Marcin Borkowski


On 2023-01-25, at 14:29, Ihor Radchenko  wrote:

> Marcin Borkowski  writes:
>
>>... Still, it looks like
>> there's a bug with ~Daily~ periodic transactions: if I have a ~Daily~
>> ~Food~ expense of 30 PLN, it is only counted towards my budget on days
>> an actual ~Food~ expense was made.
>
> I think that ~ Daily alone is ambiguous. When should it start? Infinite
> years back? You need to specify at least "from" in addition. Otherwise,
> what ledger does kind of makes sense - budget only when you actually
> spend. Anything else would be insane.

Well, yes and no -- I took care to supply `--begin` in my Ledger
invocation.

By the way, is there a way to supply a starting date /in the Ledger file
itself/?

Also, daily budget makes /a lot/ of practical sense.  If my monthly food
budget is, say, 600 PLN, it's Jan 25 and I've spent 480 PLN on food,
I can't immediately tell if I'm overspending or not.  For the record,
I wrote myself a very simple web app which gets data from Ledger and
displays my spending this month against budget computed /for today/ (so
in the above case it would tell me that I'm ahead of my budget).  It
would be cool if Ledger could provide such information, too...

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87ilguo6gy.fsf%40mbork.pl.


Re: Two questions about budgeting

2023-01-24 Thread Marcin Borkowski


On 2023-01-24, at 08:52, Marcin Borkowski  wrote:

> Hi all,
>
> as I mentioned previously, I finally decided to finish my booklet about
> Ledger, and I really want to show how to do budgeting with it.
>
> However, I myself cannit grok it.  Please help.
>
> [...]

Hi all,

I figured out (a few) things.  First of all, using ~bal~ instead of
~reg~ helped (as did adding ~--monthly~).  Still, it looks like
there's a bug with ~Daily~ periodic transactions: if I have a ~Daily~
~Food~ expense of 30 PLN, it is only counted towards my budget on days
an actual ~Food~ expense was made.

Is this by design?  If so, how do I get the correct budget?  The
problem with using a ~Monthly~ budget amounts is that they don't tell
me /in the middle of the month/ if I'm ahead or behind -- I hoped
~Daily~ periodic transactions could help with that...

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87k01bnsa5.fsf%40mbork.pl.


Two questions about budgeting

2023-01-23 Thread Marcin Borkowski
Hi all,

as I mentioned previously, I finally decided to finish my booklet about
Ledger, and I really want to show how to do budgeting with it.

However, I myself cannit grok it.  Please help.

Here is my example file (totally fake).

--8<---cut here---start->8---
~ Daily
Expenses:Food  30.00 PLN
Assets

~ Monthly
Expenses:Books200.00 PLN
Assets

2022-01-02 Groceries
Expenses:Food  20.00 PLN
Assets:Cash

2022-01-03 C.S.Lewis "That hideous strength"
Expenses:Books 45.00 PLN
Assets:Cash

2022-01-03 Groceries
Expenses:Food  100.00 PLN
Assets:Cash
--8<---cut here---end--->8---

I ran a budgeting command against this file, and I don't know how to
interpret its output.

--8<---cut here---start->8---
$ ledger reg -f budget-example.ledger ^expenses -b 2022-01-01 -e 2022-01-04 -y 
%Y-%m-%d --invert --budget
2022-01-02 Budget transaction  Expenses:Food30.00 PLN   30.00 PLN
2022-01-01 Budget transaction  Expenses:Books  200.00 PLN  230.00 PLN
2022-01-02 Groceries   Expenses:Food   -20.00 PLN  210.00 PLN
2022-01-03 Budget transaction  Expenses:Food30.00 PLN  240.00 PLN
2022-01-03 C.S.Lewis "..." Expenses:Books  -45.00 PLN  195.00 PLN
2022-01-03 Groceries   Expenses:Food  -100.00 PLN   95.00 PLN
--8<---cut here---end--->8---

1. Why is there no "budget transaction" for groceries for 2022-01-01?
2. I would assume that after these three days my "books" budget should
   allow me to spend 155 PLN more on books and my "food" budget would
   be short of 30 PLN.  Yet I can see neither of these amounts in the
   report.  How to make Ledger compute them?

TIA,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87mt68nzd8.fsf%40mbork.pl.


Re: How to compute average monthly expenses?

2023-01-23 Thread Marcin Borkowski


On 2023-01-24, at 01:06, John Wiegley  wrote:

>>>>>> o1bigtenor   writes:
>
>> That - sir - - - -begs the question - - - what is 'average' supposed to do?
>
> Average just takes the number of entries in a group, and divides the total by
> the count. Here's the implementation:
>
>   OPTION_(report_t, average, DO() { // -A
>   OTHER(empty).on(whence);
>   OTHER(display_total_)
> .on(whence, "count>0?(display_total/count):0");
> });
>
> Which means that `--average` is just a short-hand for:
>
>   --empty --display-total "count>0?(display_total/count):0"

Thanks for the answer, but that still does not explain the "450" figure
for me.  Of course, the total is 2700, so I assume Ledger divided it by
6 -- but why 6?

(Also, since I've decided to finally finish my booklet on accounting
with Ledger, expect more questions soon;-) -- hope that's ok with
you...)

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87o7qonzwq.fsf%40mbork.pl.


Re: How to compute average monthly expenses?

2023-01-23 Thread Marcin Borkowski


On 2023-01-23, at 21:12, Stanko Trček  wrote:

> How about this ?
>
> ledger -f data.txt --monthly --average  register Expenses

Ah, I think this works.  I'll perform a few more experiments.  Thanks!

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87r0vlnfdy.fsf%40mbork.pl.


How to compute average monthly expenses?

2023-01-22 Thread Marcin Borkowski
Hi all,

I try to follow the example from the manual and compute average monthly
expenses.  Here is my example journal file:

--8<---cut here---start->8---
2022-01-01 Food
Expenses:Food 930.00 PLN
Assets:Cash

2022-02-01 Food
Expenses:Food 800.00 PLN
Assets:Cash

2022-03-01 Food
Expenses:Food 970.00 PLN
Assets:Cash
--8<---cut here---end--->8---

and here is what I do in command line:

--8<---cut here---start->8---
ledger -b 2022-01-01 -e 2022-04-01 --monthly --average balance -f myfile

 -450.00 PLN  Assets:Cash
  450.00 PLN  Expenses:Food

   0
--8<---cut here---end--->8---

What is going on here?  (Obviously, I expected 900 PLN monthly average.)
Even more unexpectedly, when I use -p "last year", the result is exactly
the same (and I would expect 300 PLN then).

I use Ledger 3.2.1-20200518.

TIA,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87y1pton9k.fsf%40mbork.pl.


I am writing a booklet about double-entry bookkeeping, using Ledger for examples

2022-08-15 Thread Marcin Borkowski
Hello,

as stated in the subject line, I am writing a booklet about accounting
and Ledger.  I briefly explained the motivation here:

http://mbork.pl/2022-08-15_Personal_accounting_in_Ledger

If anyone is interested, the book is available here:
https://leanpub.com/personal-accounting-in-ledger/

Of course, any remarks are welcome!

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87wnbacaev.fsf%40mbork.pl.


Re: I feel like I have too many sub-accounts

2022-03-15 Thread Marcin Borkowski


On 2022-03-15, at 04:21, melb...@gmail.com  wrote:

> Hello,
> I am hoping to understand how other folks setup their accounts/sub-accounts 
> and from it see if I can do something better to layout my accounts. Of 
> course, there is no write or wrong answer and I can do whatever I wish. 
>
> I feel inundated by the number of expense accounts I have and I am 
> wondering if I can do something else - perhaps using tags. Though then I 
> might just be moving the problem from one place to another.
>
> Here is a sampling what just my Expenses account look like today

This doesn't look that bad, I guess I may have only slightly fewer of
them.

With Emacs ledger-mode and autocompletion, I don't think a large number
of accounts is a problem.  OTOH, the question is, how _useful_ are these
"expense categories" to you.  I used to keep much more detailed books
until it dawned on me that I _never_ actually used many of the fine
distinctions...

So the real question is, how do you use Ledger, what reports do you
generate and what information is _really_ valuable to you.

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87czinvj2l.fsf%40mbork.pl.


Re: How to only display subtotals

2021-12-21 Thread Marcin Borkowski


On 2021-12-22, at 05:45, Martin Michlmayr  wrote:

> * Marcin Borkowski  [2021-12-22 05:41]:
>> What do I tell the `bal` report to display both `Expenses:Life:Food`
>> and `Expenses:Life:Phone`, but only the subtotal for
>> `Expenses:Hobbies` (without separating `Books` and `Music`)?
>
> I don't think you can do this in a single query.

Thanks, I was afraid so.  Well, since I'm writing a program to analyze
ledger's output, I'll just output all the accounts and filter them on
the other side.

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87ee65i1j5.fsf%40mbork.pl.


How to only display subtotals

2021-12-21 Thread Marcin Borkowski
Hi all,

Assume I use this account structure:

Expenses:Hobbies:Books
Expenses:Hobbies:Music
Expenses:Life:Food
Expenses:Life:Phone

What do I tell the `bal` report to display both `Expenses:Life:Food` and
`Expenses:Life:Phone`, but only the subtotal for `Expenses:Hobbies`
(without separating `Books` and `Music`)?

TIA,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/87fsqli73r.fsf%40mbork.pl.


Does anyone have any hints for separating business and provate finances?

2020-07-26 Thread Marcin Borkowski
Hi all,

I've been using Ledger for more than 5 years now (GnuCash earlier), and
I'm pretty happy with it.  However, I have now a challenge.  Instead of
a regular salary, I get payments for invoices, which are not equal each
month.  This is inconvenient from a private budget perspective.  I've
set up a separate business account at my bank and I plan to set up
a constant monthly transfer from that account to my private one, maybe
even called "salary".  (Of course, I will ensure that my average monthly
business income is greater than the "salary".)

I would like to separate these two areas in Ledger, too.  Ideally, I'd
like to be able to see a "private" report, a "business" report or
a "total" report.

Any hints?

TIA,

--
Marcin Borkowski
http://mbork.pl

-- 

--- 
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/878sf6hsdf.fsf%40mbork.pl.


Re: Printing checks with ledger??

2018-06-17 Thread Marcin Borkowski


On 2018-06-18, at 06:12, Matthew Sewell  wrote:

> Thanks for all the feedback.
>
> I've never used LaTex before but it seems like it could be a good solution.
> The problem will be trying to figure out how to format the check correctly.
> My checks are printed on 'VersaCheck Form 1000' which is a 3 section
> perforated page where the check is on top, transaction details in the
> middle, and addresses on the bottom to use with windowed envelopes (see
> image below). I like using these checks because they do not have your
> account numbers pre-printed on the bottom. I have multiple businesses and
> each business has multiple bank accounts. I hate having multiple checkbooks
> and checkstock floating around my office so the VersaCheck 1000's are nice
> for simplicity because I can just print the account I want on there at the
> time of printing.
>
> <https://lh3.googleusercontent.com/-jqcBml_BBek/Wycw2ZohzkI/VeM/jUnK2f6es68pKCxkejlN3_ytvqQn5x1YACLcBGAs/s1600/71dMYEiJGsL._AC_UL320_SR248%252C320_.jpg>
>
>
> Any input on where to start when it comes to formatting these checks with
> Latex would be appreciated.

An easy way would be to use the tikz LaTeX package, which can position
things in arbitrary places on the page.  The downside is that it needs
two LaTeX runs, but with a script that shouldn't be a problem.

I'm sure there are simpler ways, but this is the hammer I know.

BTW, don't forget to say \pagestyle{empty} in your template or else you
end up with a pagenumber at the bottom!

Hth,

--
Marcin Borkowski
http://mbork.pl

-- 

--- 
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: Printing checks with ledger??

2018-06-14 Thread Marcin Borkowski


On 2018-06-14, at 00:00, o1bigtenor  wrote:

> On Wed, Jun 13, 2018 at 3:55 PM, Matthew Sewell  wrote:
>> I'm wondering if anyone has ever used ledger for check printing. I used to
>> use my banks bill pay but then they sent a large American Express payment to
>> the wrong account and I never got the money back. It was an $1,800 payment
>> so I've vowed to never use it again and since then, I've been hand writing
>> all my business checks after I enter the transaction into ledger.
>>
>> Has anyone ever printed checks from entries in ledger? It doesn't seem like
>> it would be too difficult to make a checks report that could be exported in
>> pdf and then printed. This would save me hours of time. Just wondering if
>> anyone has thought of this or done this before?
>>
>> I found this program written in php that does a good job of generating the
>> checks but of course, it doesn't talk to Ledger:
>> https://github.com/aaronpk/checks
>>
>> I'm willing to develop this if needed but thought I'd see if there's any
>> other ideas out there.
>>
>
> I'm thinking if there are any tex gurus out there that use ledger they
> might be able to
> roll something that given fields listed like 'this' and then this
> command were issued
> then your printer could spit out a check.

You don't need to be a TeX guru for that.  If you write some code to get
the data from Ledger, I can help with the TeX side of things.

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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: ledger2beancount: ledger to beancount converter

2018-03-30 Thread Marcin Borkowski

On 2018-03-30, at 14:17, Martin Michlmayr <t...@cyrius.com> wrote:

> I'd like to announce ledger2beancount, a script to convert ledger
> files to beancount.  It was developed by Stefano Zacchiroli and
> myself.

That sounds interesting.  I have one question: why would I want to
migrate to beancount?

Actually, one possible answer is the existence of a Web UI - while I'm
perfectly happy with Emacs' ledger-mode, I'm considering teaching some
basics of accounting to my 8-yo daughter, and I'm not sure how she would
react to Emacs. :-P

But I'm curious about a comparison.

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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: Value with a discount

2017-09-11 Thread Marcin Borkowski

On 2017-09-11, at 13:59, Martin Michlmayr <t...@cyrius.com> wrote:

> (I see a mistake and did 6% instead of 0.06%, but the principle is the
> same)

Almost like the "Verizon cents"! ;-P

-- 
Marcin Borkowski

-- 

--- 
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-03 Thread Marcin Borkowski

On 2017-08-02, at 00:18, David Glasser <glas...@davidglasser.net> wrote:

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

How about org-read-date?

> --dave

Hth,

-- 
Marcin Borkowski

-- 

--- 
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: Euro symbol inconvenience... suggestions?

2017-03-15 Thread Marcin Borkowski

On 2017-03-15, at 16:05, mich...@michaelteter.com wrote:

> Hi all.
>
> I'm new to ledger-cli, and I am using Emacs Ledger mode to enter my 
> transactions.  Most of my transactions are in Euros, and while I can use 
> option-shift-2 on my Mac in normal text boxes, Emacs doesn't approve.  
>
> So I followed suggestions somewhere and made a euro function that I have to 
> meta-x call every time I enter a transaction.  This is really a drag on my 
> entry speed, and I'm hoping someone can suggest how I can improve my 
> workflow/tools.
>
> Suggestions?

Hi,

you can of course bind your function to whichever key you like
(e.g. with M-x local-set-key, M-x global-set-key or in your init.el),
but notice that you may also press C-x 8 * E (not that this is an
extremely convenient binding;-) ).

> Thanks in advance!

Best,

-- 
Marcin Borkowski

-- 

--- 
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: question

2017-02-22 Thread Marcin Borkowski

On 2017-02-21, at 18:56, o1bigtenor <o1bigte...@gmail.com> wrote:

> Greetings
>
> Not sure how to phrase the request so apologies if I'm doing a poor job.
>
> I'm finding that I often get a receipt with multiple same items (plus others).
> To create an amount I need to multiply the cost of each item by the
> total number of items and then apply the sales tax to this subtotal.
>
> To date I've being doing this using a calculator on the screen. Today
> tried to use a mathematical expression to achieve the same without
> needing to move back and forth on the system. (Ledger is on a VM that
> is using 1 monitor and the calculator is on a separate monitor.)
> Tried:
>
> =((2.21*6)*1.08)  and
> ((2.21*6)*1.08)
>
> neither of which then display the resultant.
>
> Is there some way to do this in ledger?

Not really what you want, but a similar thing.

I don't like mathematical expressions in my ledger file, so I wrote
a simple Emacs Lisp function which takes everything to the left of the
point (≈cursor in Emacs-speak) consisting of digits, point, operation
signs and parens and having at least 3 characters (I later changed that
to two), feeds this into Emacs Calc and replaces with the result
(formatted with two digits after point), optionally with the currency
symbol added.  I use it on a daily basis and I have to say it's
/extremely/ useful.

Here's the story: http://mbork.pl/2015-06-20_Fast-calc

Hth,

--
Marcin Borkowski

-- 

--- 
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: How many Emacs, Vim, Sublime, Atom.io users here?

2017-02-22 Thread Marcin Borkowski

On 2017-02-21, at 20:00, James <kunal...@gmail.com> wrote:

> Hi, 
> I just want to conduct a quick survey here. Could everyone here advise 
> which is their preferred text editor for ledger input?

Emacs, of course;-).

Best,

-- 
Marcin Borkowski

-- 

--- 
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: How to use ledger in my (unusual) workflow?

2016-08-05 Thread Marcin Borkowski

On 2016-08-05, at 16:37, Alexandre Rademaker <aradema...@gmail.com> wrote:

> Marcin,
>
> http://mbork.pl/Comments_on_2016-07-18_Ledger_–_virtual_postings_aka_envelopes
>
> Thanks for the post ! See my comment.

You're welcome, and good catch.  I'll try to write something tomorrow.

> Alexandre 
> Sent from my iPhone

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

-- 

--- 
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: How to use ledger in my (unusual) workflow?

2016-08-04 Thread Marcin Borkowski

On 2016-08-05, at 02:53, Simon Michael <si...@joyful.com> wrote:

> Would envelope budgeting work ? See
> http://plaintextaccounting.org/#budgeting ->
> envelope budgeting with plain transactions
> for an example of what I mean.

Shameless plug: a simple example on my blog:
http://mbork.pl/2016-07-18_Ledger_%e2%80%93_virtual_postings_aka_envelopes

Hth,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

-- 

--- 
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.


Issue with average expenses

2016-07-29 Thread Marcin Borkowski
Hi all,

I tried to compute my average monthly expenses like shown in the manual,
however, I started to get strange figures.  Here's a kind of "minimal
working example" (or rather, a "minimal non-working example").

Ledger file "average.ledger":

--8<---cut here---start->8---
; Testing average monthly expenses computing

2016/01/01 * Opening balance
Assets:Cash  $2000.00
Equity:Opening balance

2016/01/10 * Food
Expenses:Food$100.00
Assets:Cash

2016/02/10 * Food
Expenses:Food$100.00
Assets:Cash

2016/03/10 * Food
Expenses:Food$100.00
Assets:Cash

2016/04/10 * Food
Expenses:Food$100.00
Assets:Cash

2016/05/10 * Food
Expenses:Food$100.00
Assets:Cash

2016/06/10 * Food
Expenses:Food$100.00
Assets:Cash

2016/07/10 * Food
Expenses:Food$100.00
Assets:Cash

2016/08/10 * Food
Expenses:Food$100.00
Assets:Cash

2016/09/10 * Food
Expenses:Food$100.00
Assets:Cash

2016/10/10 * Food
Expenses:Food$100.00
Assets:Cash

2016/11/10 * Food
Expenses:Food$100.00
Assets:Cash

2016/12/10 * Food
Expenses:Food$100.00
Assets:Cash

--8<---cut here---end--->8---

Commands I tried (with their results):

--8<---cut here---start->8---
$ ledger -p "this year" --monthly --average balance ^expenses --file 
average.ledger 
  $50.00  Expenses:Food
$ ledger -b 2016/01/01 -e 2016/12/31 --monthly --average balance ^expenses 
--file average.ledger 
  $50.00  Expenses:Food
$ ledger -b 2016/01/01 -e 2016/06/30 --monthly --average balance ^expenses 
--file average.ledger 
  $33.33  Expenses:Food
--8<---cut here---end--->8---

Am I doing something wrong or is this a bug?

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

-- 

--- 
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: Problem with compiling Ledger on Arch Linux

2016-05-22 Thread Marcin Borkowski

On 2016-05-13, at 19:15, Markus Teufelberger <markusteufelber...@gmail.com> 
wrote:

> Try with boost 1.61.0-rc2 (
> http://lists.boost.org/Archives/boost/2016/05/229435.php)

Thanks a lot for that tip.  I didn't need to use it, though; after
a system-wide upgrade and using AUR version, everything compiled just
fine.  I'll rememeber it in case something is broken again in the
future.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

-- 

--- 
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: Problem with compiling Ledger on Arch Linux

2016-05-13 Thread Marcin Borkowski
arser.hpp:100:10: note: candidate: void 
boost::property_tree::xml_parser::write_xml(std::basic_ostream&, const Ptree&, const 
boost::property_tree::xml_parser::xml_writer_settings&) [with Ptree = 
boost::property_tree::basic_ptree<std::__cxx11::basic_string, 
std::__cxx11::basic_string >; typename Ptree::key_type::value_type = 
char; typename Ptree::key_type = std::__cxx11::basic_string]
 void write_xml(std::basic_ostream<
  ^
/usr/include/boost/property_tree/xml_parser.hpp:100:10: note:   no known 
conversion for argument 3 from 
‘boost::property_tree::xml_parser::xml_writer_settings’ to ‘const 
boost::property_tree::xml_parser::xml_writer_settings<std::__cxx11::basic_string
 >&’
src/CMakeFiles/libledger.dir/build.make:235: recipe for target 
'src/CMakeFiles/libledger.dir/ptree.cc.o' failed
make[2]: *** [src/CMakeFiles/libledger.dir/ptree.cc.o] Error 1
CMakeFiles/Makefile2:126: recipe for target 'src/CMakeFiles/libledger.dir/all' 
failed
make[1]: *** [src/CMakeFiles/libledger.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
--8<---cut here---end--->8---

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

-- 

--- 
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: Problem with compiling Ledger on Arch Linux

2016-05-12 Thread Marcin Borkowski

On 2016-05-12, at 23:24, Jostein Berntsen <jber...@broadpark.no> wrote:

> On 12.05.16,21:00, Marcin Borkowski wrote:
>>Hi everybody,
>>
>>I tried to compile Ledger on newly installed Arch Linux, but I couldn't.
>>./acprep dependencies says:
>>
>>acprep: INFO: Invoking primary phase: dependencies
>>acprep: INFO: Executing phase: dependencies
>>acprep: INFO: Installing Ledger's build dependencies ...
>>
>>
>>And ./acprep make gives this:
>>
>>acprep: INFO: Invoking primary phase: make
>>acprep: INFO: Executing phase: make
>>acprep: INFO: Executing phase: config
>>acprep: INFO: Executing phase: configure
>>acprep: INFO: System type is => Linux
>>acprep: INFO: Setting up build flavor => debug
>>[  1%] Generating ../system.hh.gch
>>In file included from /usr/include/c++/6.1.1/bits/stl_algo.h:59:0,
>> from /usr/include/c++/6.1.1/algorithm:62,
>> from /home/mbork/others-works/ledger/system.hh:90:
>>/usr/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file
>>or directory
>> #include_next 
>> ^
>>compilation terminated.
>>src/CMakeFiles/libledger.dir/build.make:61: recipe for target
>>'system.hh.gch' failed
>>make[2]: *** [system.hh.gch] Error 1
>>CMakeFiles/Makefile2:124: recipe for target
>>'src/CMakeFiles/libledger.dir/all' failed
>>make[1]: *** [src/CMakeFiles/libledger.dir/all] Error 2
>>Makefile:160: recipe for target 'all' failed
>>make: *** [all] Error 2
>>acprep: ERROR: Execution failed: make
>>
>>
>>Any hints?
>>
>>Best,
>>
>
> Can you run "./acprep update" instead?

I did, the result is the same.

> Jostein

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

-- 

--- 
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.


Problem with compiling Ledger on Arch Linux

2016-05-12 Thread Marcin Borkowski
Hi everybody,

I tried to compile Ledger on newly installed Arch Linux, but I couldn't.
./acprep dependencies says:

acprep: INFO: Invoking primary phase: dependencies
acprep: INFO: Executing phase: dependencies
acprep: INFO: Installing Ledger's build dependencies ...


And ./acprep make gives this:

acprep: INFO: Invoking primary phase: make
acprep: INFO: Executing phase: make
acprep: INFO: Executing phase: config
acprep: INFO: Executing phase: configure
acprep: INFO: System type is => Linux
acprep: INFO: Setting up build flavor => debug
[  1%] Generating ../system.hh.gch
In file included from /usr/include/c++/6.1.1/bits/stl_algo.h:59:0,
 from /usr/include/c++/6.1.1/algorithm:62,
 from /home/mbork/others-works/ledger/system.hh:90:
/usr/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file
or directory
 #include_next 
 ^
compilation terminated.
src/CMakeFiles/libledger.dir/build.make:61: recipe for target
'system.hh.gch' failed
make[2]: *** [system.hh.gch] Error 1
CMakeFiles/Makefile2:124: recipe for target
'src/CMakeFiles/libledger.dir/all' failed
make[1]: *** [src/CMakeFiles/libledger.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
acprep: ERROR: Execution failed: make


Any hints?

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

-- 

--- 
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.