$client.credit_balance did not result in a number shown in email

I am trying to use the string $client.credit_balance in this simple message in the email body but it produced (as BCC’d to myself) this in the actual email:

image

Hi,

I don’t see that variable in the docs, you may want to create an issue on GitHub to request it.

Hello,

This variable is listed in the client section when customizing email templates:

In that case feel free to create an issue on GitHub to report it as a bug.

@hillel I also got this issue… But can see that other users posted about this variable and they are using it in their invoices:

I have the same issue running in the email template where instead of displaying a value, its displaying the name of the client followed by .credit_balance as reported here.

Any updates about this? @TekWarren

This was corrected after I entered an issue on github. Although, I stopped putting such values directly in emails to encourage clients to actually view the attached PDF so maybe it has resurfaced?