No, this achieves expressing multiple currencies in a single balance statement, but does not achieve verification that only these currencies are present.
- Harpreet "Eli" Sangha On Tue, Jan 6, 2015 at 7:58 PM, Martin Blais <[email protected]> wrote: > Does this also verify that there aren't any other gremlins lying in that > account? > I think that was the desire for the "complete" balance check. > > On Tue, Jan 6, 2015 at 10:13 PM, ELI <[email protected]> wrote: > >> I did this: >> >> 2015/01/01 Balance >> Assets::Stock 0 = 3 AAPL >> Assets::Stock 0 = 5 GOOGL >> Assets::Stock 0 = 3 MSFT >> Assets::Cash 0 = 50.00 USD >> Assets::Cash 0 = 25.00 CHF >> Assets::Cash 0 = 15.00 EUR >> >> >> >> - Harpreet "Eli" Sangha >> >> On Tue, Jan 6, 2015 at 3:13 PM, John West <[email protected]> wrote: >> >>> I go about it like this: >>> >>> 2015/01/01 Balance >>> Assets::Stock = 3 AAPL >>> 2015/01/01 Balance >>> Assets::Stock = 5 GOOGL >>> 2015/01/01 Balance >>> Assets::Stock = 3 MSFT >>> >>> And so on for Assets::Cash. >>> >>> It works for me, without complaints from Ledger. I might be running my >>> reports with different options, though. >>> >>> >>> On Tue, Jan 6, 2015 at 6:00 PM, Pascal Fleury < >>> [email protected]> wrote: >>> >>>> Hello, >>>> >>>> I love the multiple currency/commodity that one can have in the >>>> accounts. It let's me manage e.g. cash in USD, CHF and EUR, or my stock >>>> portfolio with different stock tickers. >>>> >>>> When reconciling, though, I face an issues when I want to write a >>>> balance assertion. Either I'd like to only assert the amount for one >>>> currency/commodity, or all of them. >>>> >>>> I did not find a way to express multiple currencies in a balance >>>> statement, and specifying only a single one will let ledger complain that >>>> there is more in that account (which is correct). Ideally, something like >>>> >>>> 2015/01/01 Balance >>>> Assets::Stock = (3 AAPL + 5 GOOGL + 3 MSFT) >>>> Assets::Cash = (50.00 USD + 25.00 CHF + 15.00 EUR) >>>> >>>> Alas, this is no valid syntax. Is there a way to assert such balance >>>> amounts ? >>>> >>>> thanks, >>>> --paf >>>> >>>> -- >>>> >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "Ledger" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Ledger" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Ledger" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Ledger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
