logoalt Hacker News

probably_wrong • yesterday at 2:08 PM • 4 replies • view on HN

A question I haven't found an answer for yet: how do I enter the food I bought into such a system? Is a hot-dog an asset that depreciates when I eat it later tonight?


Replies

thesuitonym • yesterday at 2:36 PM

If you buy a hotdog for $3.00 (I have no idea how much as street hotdog costs, but that's about the price of a gas station dawg) you record the money as going to your hot dog account. Most people don't get that granular, so you might put it on your Meals & Entertainment account, or Lunches, or just Food.

You do not record the inventory because a hotdog is not an asset. Even if it was, you should record your assets separately.

➕ show 2 replies
PopAlongKid • yesterday at 2:19 PM

The hot dog is more like an inventory item. You might purchase it in one accounting period but not consume it until the next. And you typically do not track each hot dog as a unique item (they are fungible).

➕ show 1 reply
simonmic • yesterday at 9:38 PM

You could record it as an expense when you buy it, and not keep track of uneaten hot dogs.

    2026-12-01 buy a pack of 6 hot dogs
        assets:cash                     -12
        expenses:food                    12
But if you want to keep track of them, you would record them as a prepaid asset. When you eat them, that becomes an expense.

    2026-12-01 buy a pack of 6 hot dogs
        assets:cash                     -12
        assets:prepaid:hot dogs          12

    2026-12-02 eat two
        assets:prepaid:hot dogs          -4
        expenses:food                     4
Depreciation is something different: it would be like the gradual loss of value each day as stored hot dogs lose their freshness. Except it's for long term assets, like a car or office equipment. Hot dogs don't depreciate, they spoil.

    2026-12-10 two hot dogs went bad, thrown out
        assets:prepaid:hot dogs          -4
        expenses:food:spoilage            4
You could also track the hot dogs themselves, and perhaps their location (inventory tracking), in parallel with the money.

    2026-12-01 buy a pack of 6 hot dogs
        assets:cash                     $-12
        expenses:food                    $12
        hotdogs:store             -6 hotdogs
        hotdogs:pantry             6 hotdogs

    2026-12-02 eat two
        hotdogs:pantry            -2 hotdogs
        hotdogs:eaten              2 hotdogs
Or you could mix the two, tracking hot dogs and their money cost, converting between them as appropriate (and using -B at report time for a money report):

    2026-12-01 buy a pack of 6 hot dogs
        assets:cash                     $-12
        assets:pantry              6 hotdogs @ $2

    2026-12-02 eat two
        assets:pantry             -2 hotdogs @ $2
        expenses:food                     $4
which is equivalent to pure double entry bookkeeping entries like these:

    2026-12-01 buy a pack of 6 hot dogs
        assets:pantry              6 hotdogs
        equity:conversion         -6 hotdogs
        equity:conversion        $12
        assets:cash             $-12
    
    2026-12-02 eat two
        assets:pantry             -2 hotdogs
        equity:conversion          2 hotdogs
        equity:conversion        $-4
        expenses:food             $4
Summary:

* Expense at purchase: simplest, with one entry and nothing to track afterwards.

* Prepaid asset: your books show what the uneaten food cost, and each hot dog becomes an expense when you actually eat it.

* Spoilage: waste shows up separately, instead of looking like you ate it.

* Parallel inventory: you know how many you have, and where, without complicating the money accounts.

* Mixed: one set of accounts answers both "how many?" and "what are they worth?". A money-only report needs a report flag.

* Conversion postings: conventional entry which any accounting system understands, and the accounting equation stays balanced. A money-only report needs report flags.