Yeah, it was a problem with multiple lots, so that's why it wouldn't 
balance if I put the price in the new lot (because of the gains) or that no 
lots match if I put the price in lots being sold.

I was able to simply do:

2004-12-21 * "Autodesk stock splits" 
Assets:US:MSSB:ADSK -100 ADSK {}
Assets:US:MSSB:ADSK 200 ADSK {} 
  
And added an old date to the new lot to track long term vs short term.  
Thanks all.
On Saturday, March 12, 2022 at 1:43:56 PM UTC-5 [email protected] wrote:

> OP: I perhaps missed your question. I assumed it was about having multiple 
> lots, but it might've been about balancing in the single example you 
> posted. Anyway, Martin covered that.
>
> On Saturday, March 12, 2022 at 10:27:28 AM UTC-8 [email protected] wrote:
>
>> To the OP: it will balance because you're matching the closing leg (-100) 
>> against existing lots but the opening leg (+200) doesn't need to match 
>> anything.
>>
>> On Sat, Mar 12, 2022 at 12:04 PM [email protected] <[email protected]> 
>> wrote:
>>
>>> You're correct, for STRICT, FIFO, LIFO cost basis booking methods. You'd 
>>> have to do what you posted for each individual lot in your inventory. 
>>> Search this group for how to do it efficiently with bean-doctor context to 
>>> list your lots.
>>>
>>> For the NONE method, beancount will let you do the above, but doesn't 
>>> keep track of the lots.
>>>
>>>
>>>
>>> On Saturday, March 12, 2022 at 6:10:55 AM UTC-8 Desi Mas wrote:
>>>
>>>> The documentation says to do this:
>>>>
>>>> 2004-12-21 * "Autodesk stock splits" 
>>>> Assets:US:MSSB:ADSK -100 ADSK {66.30 USD}
>>>> Assets:US:MSSB:ADSK 200 ADSK {33.15 USD} 
>>>>
>>>> But how does this balance if the lots presumably have a different cost 
>>>> basis?  The error will either be that it doesn't balance, or there are no 
>>>> lots at that (updated) price...
>>>>
>>> -- 
>>> 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/4c6f7b60-ed88-47f6-a3e3-0fcc199a765fn%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/beancount/4c6f7b60-ed88-47f6-a3e3-0fcc199a765fn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
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/478d77d8-f900-4c73-b4f5-58f925aa82cbn%40googlegroups.com.

Reply via email to