--
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 beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/2beb84b0-8f10-4c40-b6d5-abfa2b77cda5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/2beb84b0-8f10-4c40-b6d5-abfa2b77cda5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/Qvbcq-Sk5NY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhOkq9PG746Ru2X-VQaZ9BRRTDgm%2B5Z0h2Z2UvLH_nbGbQ%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/2beb84b0-8f10-4c40-b6d5-abfa2b77cda5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/Qvbcq-Sk5NY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhOkq9PG746Ru2X-VQaZ9BRRTDgm%2B5Z0h2Z2UvLH_nbGbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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 beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAHkYY6X5h%2Bo-sVad2QirragiTG_wJEMnbyYDYZ_TbvhPg6n1ug%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/2beb84b0-8f10-4c40-b6d5-abfa2b77cda5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/Qvbcq-Sk5NY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhOkq9PG746Ru2X-VQaZ9BRRTDgm%2B5Z0h2Z2UvLH_nbGbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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 beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAHkYY6X5h%2Bo-sVad2QirragiTG_wJEMnbyYDYZ_TbvhPg6n1ug%40mail.gmail.com.--Best regards,
Daniël Bos
Your government is reading your email. Slow them down with encryption.
My public key: http://goo.gl/gms497 (4096 bit RSA, id EF2D5D91)
Fingerprint : D8D0 9FBE F075 F709 7B52 2F73 326C 2123 EF2D 5D91
--
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/Qvbcq-Sk5NY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CADPdpKbmhTYm_GWriJwZxaGYGYHP2AZT%2BrPH96fQnES37sk1hg%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
Just wanted to alert you to another potential issue and say that this solution worked for me and thank you.
So this worked for me:
2017-06-14 * "Transfer"
Assets:BTC:Coinbase -0.00144853 BTC {}
Expenses:Fees:BTCMining 0.00105853 BTC
Assets:BTC:Jaxx 0.00039 BTC @ USD
But this does not:
2017-06-14 * "Transfer"
Assets:BTC:Coinbase -0.00144853 BTC {}
Expenses:Fees:BTCMining 0.00105853 BTC
Assets:BTC:Jaxx 0.00039 BTC @
And actually raises an error when I run bean-check on it:
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/390dbc28-bb98-4dc9-b6fe-381f451a711a%40googlegroups.com.
2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
Expenses:Fees:BTCMining 0.00105853 BTC @ USD
Assets:BTC:Coinbase -0.00144853 BTC {2661.48 USD}
Assets:BTC:Jaxx 0.00039 BTC {2661.48 USD}
So I tried:
2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
Assets:BTC:Coinbase -0.00144853 BTC {}
Expenses:Fees:BTCMining 0.00105853 BTC @ USD
Assets:BTC:Jaxx 0.00039 BTC @ USD
And to reverse the autofilling of the amount:
2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
Assets:BTC:Coinbase -0.00144853 BTC {}
Expenses:Fees:BTCMining
Assets:BTC:Jaxx 0.00039 BTC @ USD
But I get this error for both:
/home/salotz/tree/personal/studio/projects/index/finance/ledger/ledger.beancount:1163: Too many missing numbers for currency group 'USD'
Not sure what to do at this point except for booking the mining fee in a separate transaction.
--
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 beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/0a916715-69ab-4337-b327-c256aa3e1f3b%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/0a916715-69ab-4337-b327-c256aa3e1f3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/Qvbcq-Sk5NY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhMnx3Yk%3DJKurxaV2ZGNz0Eq87iYYPBYfPoBeX_hwn%3DuLw%40mail.gmail.com.
Hi Martin,Apologies that its not very understandable, I honestly was a little confused myself.Your solution works for me exactly as I want, however, then I am losing the convenience of using the booking method (LIFO in my case). I tried this:2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
Expenses:Fees:BTCMining 0.00105853 BTC @ BTC
Assets:BTC:Coinbase -0.00144853 BTC {}
Assets:BTC:Jaxx 0.00039 BTC {}But I get an error in bean-check.I would imagine that this would have the same effect because the cost basis for the lot would be filled in automatically, but I figured disambiguating would help like this:2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
Expenses:Fees:BTCMining 0.00105853 BTC @ BTC
Assets:BTC:Coinbase -0.00144853 BTC {USD}
Assets:BTC:Jaxx 0.00039 BTC {USD}But it books the cost-basis of the BTC in the Jaxx account as 9885.214421538461538461538462 USD :
--> bean-doctor context ledger.beancount 107
Hash:972251de2efc72a4e7f2a2c4654440cb
Location: /home/salotz/tree/personal/studio/projects/index/troubleshooting.general/beancount/issue_000/ledger.beancount:107
------------ Balances before transaction
Expenses:Fees:BTCMining
Assets:BTC:Coinbase 0.01878653 BTC {2661.48 USD, 2017-06-14}
Assets:BTC:Jaxx
------------ Transaction
2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
Expenses:Fees:BTCMining 0.00105853 BTC @ 0.00000000 BTC ; 0 BTC
Assets:BTC:Jaxx 0.00039000 BTC {9885.21 USD, 2017-06-14} ; 3.855233624400000000000000000 USD
Tolerances: BTC=5E-9
------------ Balances after transaction
* Expenses:Fees:BTCMining 0.00105853 BTC
* Assets:BTC:Coinbase 0.01733800 BTC {2661.48 USD, 2017-06-14}
* Assets:BTC:Jaxx 0.00039 BTC {9885.214421538461538461538462 USD, 2017-06-14}Maybe I am mistaken and this is correct but it doesn't seem to me since then if you sold the position in the Jaxx wallet it wouldn't be booked against the original cost-basis that was calculated when the lot was bought.
I've attached a minimum working example for a lot of test cases and their results written in the comments. It may not be of much use to you though, but when I don't understand something I tend to go for the enumerative brute force and try to understand the results and compare.
Expenses:Fees:Trading 1.99 USD
Assets:BTC:Coinbase 0.01878653 BTC {2661.48 USD}
Assets:Checking -51.99 USD
;; 2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
;; Expenses:Fees:BTCMining 0.00105853 BTC
;; Assets:BTC:Coinbase -0.00144853 BTC {}
;; Assets:BTC:Jaxx 0.00039 BTC
;; RESULT: Bean check error on the directive: no position matches
;; 2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
;; Expenses:Fees:BTCMining 0.00105853 BTC
;; Assets:BTC:Coinbase -0.00144853 BTC {USD}
;; Assets:BTC:Jaxx 0.00039 BTC
;; RESULT: bean-check directive error: does not balance as BTCMining leg is not balanced
;; 2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
;; Expenses:Fees:BTCMining 0.00105853 BTC
;; Assets:BTC:Coinbase -0.00144853 BTC {}
;; Assets:BTC:Jaxx 0.00039 BTC @ BTC
;; RESULT: bean-check syntax error
;; 2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
;; Expenses:Fees:BTCMining 0.00105853 BTC
;; Assets:BTC:Coinbase -0.00144853 BTC {USD}
;; Assets:BTC:Jaxx 0.00039 BTC @ BTC
;; RESULT: bean-check directive error: does not balance
;; 2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
;; Expenses:Fees:BTCMining 0.00105853 BTC
;; Assets:BTC:Coinbase -0.00144853 BTC {}
;; Assets:BTC:Jaxx 0.00039 BTC @ BTC
;; RESULT: bean-check syntax error
;; 2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
;; Expenses:Fees:BTCMining 0.00105853 BTC
;; Assets:BTC:Coinbase -0.00144853 BTC {USD}
;; Assets:BTC:Jaxx 0.00039 BTC @ BTC
;; RESULT: bean-check directive error: doesn't balance
;; 2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
;; Expenses:Fees:BTCMining 0.00105853 BTC @ USD
;; Assets:BTC:Coinbase -0.00144853 BTC {}
;; Assets:BTC:Jaxx 0.00039 BTC @ BTC
;; RESULT: no error. Books no cost-basis BTC to the Jaxx wallet. Books BTC to expenses
;; 2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
;; Expenses:Fees:BTCMining 0.00105853 BTC @ USD
;; Assets:BTC:Coinbase -0.00144853 BTC {USD}
;; Assets:BTC:Jaxx 0.00039 BTC @ BTC
;; RESULT: no error. Books no cost-basis BTC to the Jaxx wallet. Books BTC to expenses
;; 2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
;; Expenses:Fees:BTCMining 0.00105853 BTC @ USD
;; Assets:BTC:Coinbase -0.00144853 BTC {}
;; Assets:BTC:Jaxx 0.00039 BTC {}
;; RESULT: bean-check error
;; 2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
;; Expenses:Fees:BTCMining 0.00105853 BTC @ USD
;; Assets:BTC:Coinbase -0.00144853 BTC {USD}
;; Assets:BTC:Jaxx 0.00039 BTC {}
;; RESULT: bean-check directive error: too many missing numbers for currency group USD
;; 2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
;; Expenses:Fees:BTCMining 0.00105853 BTC @ BTC
;; Assets:BTC:Coinbase -0.00144853 BTC {USD}
;; Assets:BTC:Jaxx 0.00039 BTC {}
;; RESULT: bean-check error
;; 2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
;; Expenses:Fees:BTCMining 0.00105853 BTC @ BTC
;; Assets:BTC:Coinbase -0.00144853 BTC {USD}
;; Assets:BTC:Jaxx 0.00039 BTC {USD}
;; RESULT: no error. Books no cost basis to BTCMining, books correct amount to Jaxx
;; but with a cost-basis of {9885.214421538461538461538462 USD}
My conclusions are that in a single transaction directive it is not possible to automatically (i.e. not specify the position to reduce against) split an inventory reduction into an expense and an asset transfer and keep the original cost-basis.
I tried splitting it into two transactions and this seems to work swimmingly, so this is the way I will do it for now until the booking capabilities are more advanced.I really appreciate your responses.
~Sam
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/0a916715-69ab-4337-b327-c256aa3e1f3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/Qvbcq-Sk5NY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhMnx3Yk%3DJKurxaV2ZGNz0Eq87iYYPBYfPoBeX_hwn%3DuLw%40mail.gmail.com.
--
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 beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAEZ4YMUYkT5Qd1BYmJakw-vf9ivQsTi%2B1e1iAUhZiqHcO52DNg%40mail.gmail.com.
Sorry for the delays, I'm currently traveling and working - in my real job - at the same time.
The third posting's currency is impossible to categorize. What are the units supposed to be? USD? EUR? JPY? Remember there's no constraint in an account that there ought to be a single currency, or even a single cost currency for the same currency. Maybe I could add that further constraint to an account to make the interpolation more powerful, but it's not like that now, accounts can contain a mish-mash of different things (see the one_commodity plugin).
~Sam
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/0a916715-69ab-4337-b327-c256aa3e1f3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/Qvbcq-Sk5NY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhMnx3Yk%3DJKurxaV2ZGNz0Eq87iYYPBYfPoBeX_hwn%3DuLw%40mail.gmail.com.
--
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 beancount+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAEZ4YMUYkT5Qd1BYmJakw-vf9ivQsTi%2B1e1iAUhZiqHcO52DNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/Qvbcq-Sk5NY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhP%2BH7gi3zEpWj1Twgo7A94xz-pMLGD5ahQD-6kq0D6FBA%40mail.gmail.com.
Sorry for the delays, I'm currently traveling and working - in my real job - at the same time.Martin, I'm frankly astonished by the quality, extent, and speed to which you are responding to posts from a non-developer newbish user. I appreciate it and it will take me some time to digest your answer fully, but honestly I feel like I should be paying you for professional support. Hopefully I can find a way to contribute back someday.
The third posting's currency is impossible to categorize. What are the units supposed to be? USD? EUR? JPY? Remember there's no constraint in an account that there ought to be a single currency, or even a single cost currency for the same currency. Maybe I could add that further constraint to an account to make the interpolation more powerful, but it's not like that now, accounts can contain a mish-mash of different things (see the one_commodity plugin).Again I am probably not understanding fully, but if you are using an automatic booking strategy then it could just reduce the next things in the queue/stack whatever they are
and just pass them to the other account as long as the constraints on the other account allow for it.
This is actually what I would want (unless someone can tell me that is a bad idea).
For example if I have an inventory of BTC with both USD and EUR cost-bases and I want transfer them to another wallet (asset account) I don't care what the units of the costs are in. I will have to deal with currency conversion at some point if I sell, but hopefully I can just defer that problem. Is this what the "NONE" booking strategy does?
As for constraints on the accounts, I think that is a great idea. Can't you already enforce valid commodities for an account already without the plugin? E.g.:2018-08-14 open Assets:BTC:Wallet BTCConstraining the cost currencies could be useful too, it might look something like:2018-08-14 open Assets:BTC:Wallet BTC {USD,ETH}
I'll get you the details of what version I am running etc. to figure out why we have differences in the source of errors.
Best,~Sam
~Sam
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/0a916715-69ab-4337-b327-c256aa3e1f3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/Qvbcq-Sk5NY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhMnx3Yk%3DJKurxaV2ZGNz0Eq87iYYPBYfPoBeX_hwn%3DuLw%40mail.gmail.com.
--
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 beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAEZ4YMUYkT5Qd1BYmJakw-vf9ivQsTi%2B1e1iAUhZiqHcO52DNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/Qvbcq-Sk5NY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhP%2BH7gi3zEpWj1Twgo7A94xz-pMLGD5ahQD-6kq0D6FBA%40mail.gmail.com.
--
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 beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAEZ4YMW1m59snz_ujp9_H3hpDvJDv8a5xMAVugwtoq%2BrWVHobQ%40mail.gmail.com.
Best,~Sam
To post to this group, send email to beancount@googl