* Nate <
nate...@gmail.com> [2019-08-12 15:57]:
> But then "ledger bal ^Expenses ^Income --invert"
> (
https://devhints.io/ledger) doesn't answer the question "how much did I
> spend and earn this month?"
>
> Is this the wrong way to pay the credit card or is the report wrong?
It's the right way.
But you have to change your thinking. You didn't "spend" $300 in
January. You must have spent them in December (in fact, $500 -
because that's the balance of your credit card). That's when you used
your credit card and when you had Expenses:...
When you pay your credit card, obviously your bank balance goes down
by $300 -- but really this isn't spending money; it's just paying down
your credit card.
The concept here is cash flows. You can spend money without your cash
balance going down (by putting it on a credit card) and you can have a
cash flow without an expense (e.g. paying your credit card).
So you should ask yourself what question you want to answer: if you
want to know about income vs expenses, your query is correct. If you
want to know income vs cash flows, you'll need another query (although
I'm not sure what that query would look like).
--
Martin Michlmayr
https://www.cyrius.com/