News for hackers. Stuff that matters.
Re:Ledger, a command-line accounting system by peteretep on Wednesday November 04, 2015 @08:46PM (#10511079)
Double-entry refers to the number of accounts related to a transaction, rather than the process of entering it twice.

When you think about it, all transactions have naturally (at least) a from and a to account. In the simplest example, I move $100 from one checking account to another. This is a pain to model in a spreadsheet, where I literally create two entries, but very easy to model in an electronic dual-entry system where I create a single transaction with a from and a to end point, and an amount.

Consider if I decide to buy a stock from my checking account. The from is my checking account, and then there are two "to" accounts - an account which models the value of the stock, and an account for the vendor's charges for the purchase. I might decide to aggregate all such bank charges to a single virtual account for this purpose. In this case, that virtual account would be the same as a "category" in a spreadsheet based model.

It can also make budgeting and cash-flow visualization easier. I have a virtual account called "Holiday Budget", which makes a transaction to another virtual account called "Spent on Holidays" of $x every month. Whenever I spend money on a holiday item from my checking account, the "from" is my checking account, and the "to" is my "Holiday Budget". This keeps my net-worth and budgeting reports very simple - they say I spend the same $x on holidays every month - while accounting for some very lumpy spending. I can easily see if I'm over or under budget by looking at the value of the virtual account "Holiday Budget" at any point.

It makes recording the value of unconventional assets easier. When I buy a laptop, I create a new account for the laptop, and transfer the money from my checking account to the virtual account that represents the value of the laptop. Every month, I draw down money from the laptop account in to an account called "depreciation". This helps me keep my budget reports insulated from lumpy spending too.

A big use-case as well for me is the purchase of expensive refundable plane tickets - essentially, I buy personal futures in plane tickets when I see a good price. The virtual accounts that dual-entry allows means that when I buy a refundable ticket, I treat it as an asset in a virtual account until it's used. Again, this helps me track my spending and budgetting more effectively.

Re:Ledger, a command-line accounting system by zrail on Wednesday November 04, 2015 @09:28PM (#10511247)
> A big use-case as well for me is the purchase of expensive refundable plane tickets - essentially, I buy personal futures in plane tickets when I see a good price. The virtual accounts that dual-entry allows means that when I buy a refundable ticket, I treat it as an asset in a virtual account until it's used. Again, this helps me track my spending and budgetting more effectively.

I would like to hear more about this. Do you have alerts set up? Does this end up saving you money? Do you get to re-schedule the flight an unlimited number of times (pushing the future out) or do you have to cancel and rebuy periodically? Can you use exercise the option early?

Re:Ledger, a command-line accounting system by peteretep on Wednesday November 04, 2015 @11:19PM (#10511615)
It's far less sophisticated than this. A route I take regularly costs ~$2700-$5000. I refuse to pay more than $3000 so I tend to book all the dates I might travel ~6 months in advance, and cancel them if I don't need them, which costs about $50.
Re:Ledger, a command-line accounting system by e12e on Wednesday November 04, 2015 @11:57PM (#10511698)
> Double-entry refers to the number of accounts related to a transaction, rather than the process of entering it twice.

Hm. I guess I didn't know there was such a thing as single-entry :-)

Thank you for clarifying, that makes sense. We actually had a (little too much, or too little) about this in high-school. But it looked a lot more like: https://en.wikipedia.org/wiki/Double-entry_bookkeeping_syste... (debit and credit "accounts").

It struck me as odd to keep the term when handling it somewhat differently (although also somewhat similarly).

I suppose the term is old enough that it covers both "double meta-data" and "double(redundant/check-summed) storage".

Re:Ledger, a command-line accounting system by saaadhu on Wednesday November 04, 2015 @10:13PM (#10511411)
Newbie to ledger here.

Why not move $x from checking to Holiday Budget every month, and then track holiday spending by moving money from Holiday Budget to Spent on Holidays?

Guess it throws off net worth calculations a bit, as you'd have to include the Holiday Budget as well in there. Are there other reasons?

Re:Ledger, a command-line accounting system by sophacles on Wednesday November 04, 2015 @10:24PM (#10511451)
Check out this section and the following section of the ledger docs: http://ledger-cli.org/3.0/doc/ledger3.html#Dealing-with-Pett...
Re:Ledger, a command-line accounting system by dragonwriter on Thursday November 05, 2015 @12:46AM (#10511833)
In outline, that's not wrong, though in detail it might be because the $ are still, presumably, actually in your checking account. But that's correctable, with the right account structure. Instead of just "Checking" and "Holiday Budget", make it "Assets:Checking" and "Assets:Checking:Holiday Budget" (I'd prefer "Holiday Fund").
Re:Ledger, a command-line accounting system by peteretep on Wednesday November 04, 2015 @11:21PM (#10511623)
Because Holiday Budget isn't a real account, and my checking one is. If money didn't leave the checking account, it would show an incorrect budget if I marked that it had.
Re:Ledger, a command-line accounting system by saaadhu on Thursday November 05, 2015 @01:22AM (#10511926)
OK. Just that, I find it a bit odd that money goes into the "budget" when you spend, not when you allocate it, and vice versa :)