Thanks, Martin. That works exactly as I wanted it to.

Randy

On April 7, 2020 12:59:13 PM GMT+08:00, Martin Michlmayr <t...@cyrius.com> 
wrote:
>* Randy Josleyn <randy.josl...@gmail.com> [2020-04-07 12:47]:
>> I'd like to use the `assert` directive to do a balance assertion of
>> an account after `include`ing a journal file. I can't add the
>> balance assertion to the included journal itself. I tried something
>> like this:
>> 
>> assert amount account(assets:checking) == 27585.33 CNY
>
>Try:
>
>assert account("assets:checking").amount == 27585.33 CNY
>
>-- 
>Martin Michlmayr
>https://www.cyrius.com/
>
>-- 
>
>--- 
>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 ledger-cli+unsubscr...@googlegroups.com.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/ledger-cli/20200407045913.GG21495%40jirafa.cyrius.com.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/2A0040FB-CB24-427F-8622-019065A5D7A9%40gmail.com.

Reply via email to