Yes, there's extensive documentation:

https://beancount.github.io/docs/how_inventories_work.html
https://beancount.github.io/docs/trading_with_beancount.html

I suggest reading and understanding those, and avoiding the @@ and {{ 
notations, at least at the beginning. Use @ and {} instead.

If you have specific problems, send us an output of your query, what you 
expect, and what you get.

Hope that helps!

On Monday, September 13, 2021 at 2:37:53 AM UTC-7 Toby wrote:

> 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
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/264352ff-9a6b-4511-a685-d0ba7cacd6b7n%40googlegroups.com.

Reply via email to