Hi,
I am trying to use Beancount to track inventories and I am a little confused on how to do this correctly. I understand that there is costs and pricing and that @@ is used to denote price (which can change) and {{}} which the cost and can't change.
Let me explain here :-
2021-01-01 * "Purchase Some Supplies"
Assets:Inventory:Banana 10 PCS {{30 USD}}
Assets:Inventory:Apple 2 PCS {{50 USD}}
Assets:inventory:Orange 3 PCS {{20 USD}}
Assets:Cash 100.00 USD
Or :-
2021-01-01 * "Purchase Some Supplies"
Assets:Inventory:Banana 10 PCS @@ 30 USD
Assets:Inventory:Apple 2 PCS @@ 50 USD
Assets:inventory:Orange 3 PCS @@ 20 USD
Assets:Cash 100.00 USD
I often get weird output when working with commodities (they are always getting revalued) and the numbers don't add up. I have tried multiple things such as :-
2021-01-01 * "Purchase Some Supplies"
Assets:Inventory:Banana 30 USD {{10 PCS}}
Assets:Inventory:Apple 50 USD {{2 PCS}}
Assets:inventory:Orange 20 USD {{3 PCS }}
Assets:Cash 100.00 USD
The above seems to fix the valuation problem (commodities don't get revalued) but its a little complicated. Is there any guides on how to work with commodities?
Thanks