<td class="address" colspan="2" style="padding-left: 0px;">
<#if record.billingaddress.attention?has_content>${record.billingaddress.attention}<br/></#if>
<#if record.billingaddress.addressee?has_content>${record.billingaddress.addressee}<br/></#if>
<#if record.billingaddress.addr1?has_content>${record.billingaddress.addr1}<br/></#if>
<#if record.billingaddress.addr2?has_content>${record.billingaddress.addr2}<br/></#if>
<#if record.billingaddress.city?has_content>${record.billingaddress.city}</#if>
<#if record.billingaddress.state?has_content>${record.billingaddress.state}</#if>
<#if record.billingaddress.zip?has_content>${record.billingaddress.zip}<br/></#if>
<#if record.billingaddress.country?has_content>${record.billingaddress.country}<br/></#if>
</td>
The provided code can retrieve the address line by line from the billing address in the invoice record. To retrieve the billing address as a whole, we can utilize the additional code below.
<td class="address" colspan="2" style="padding-left: 0px;">${record.billaddress}</td>