Jump to content

Invoice with Delivery and Billing Address


Recommended Posts

I not able to print PDF invoices where the customers have different addresses (delivery and billing).

 

If I change those addresses to match each other the invoice prints ok, but when I need to use both addresses all I have is a blank invoice.

 

Code bellow to addresses in invoice.tpl

 

<!-- ADDRESSES -->
<table style="width: 100%">
<tr>
<td style="width: 15%"></td>
<td style="width: 85%">
{if !empty($delivery_address)}
<table style="width: 100%">
<tr>
<td style="width: 50%">
<span style="font-weight: bold; font-size: 10pt; color: #9E9F9E">{l s='Delivery Address' pdf='true'}</span><br />
{$delivery_address}
</td>
<td style="width: 50%">
<span style="font-weight: bold; font-size: 10pt; color: #9E9F9E">{l s='Billing Address' pdf='true'}</span><br />
{$invoice_address}
                             </td>
</tr>
</table>
{else}
<table style="width: 100%">
 <tr>
 
<td style="width: 50%">
<span style="font-weight: bold; font-size: 10pt; color: #9E9F9E">{l s='Billing & Delivery Address.' pdf='true'}</span><br />
{$invoice_address}
                            
</td>
<td style="width: 50%"> </td>
 </tr>
</table>
   <p>{/if}        </p>
   </td>
</tr>
</table>
<!-- / ADDRESSES -->
 
PS vs 1.5.4.1
Default theme with minor CSS modifications

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...