logoalt Hacker News

simonmic • yesterday at 9:38 PM • 0 replies • view on HN

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.