Jump to content
thirty bees forum

Recommended Posts

Posted (edited)

How can I add the fiscal identification number, both of the customer and of the shop?

I have in invoice.addresses-tab.tpl

and i will need before the shop address to add the NIE of the shop and before the delivery address the NIE of the customer

<table id="addresses-tab" cellspacing="0" cellpadding="0">
    <tr>
        <td width="33%"><span class="bold"> </span><br/><br/>
            {if isset($order_invoice)}{$order_invoice->shop_address}{/if}
        </td>
        <td width="33%">{if $delivery_address}<span class="bold">{l s='Delivery Address' pdf='true'}</span><br/><br/>
                {$delivery_address}
            {/if}
        </td>
        <td width="33%"><span class="bold">{l s='Billing Address' pdf='true'}</span><br/><br/>
                {$invoice_address}
        </td>
    </tr>
</table>
Edited by netamismb
Posted

I have no idea what NIE is.

The fiscal identification number is usually placed in the footer of the invoice. And as it is always the same you can hardcode it.

The VAT number of the customer is a bit more complicated as it is not standard available in the form. So you will need to make an extra variable in the PHP file that uses the template to create the invoice (\classes\pdf\HTMLTemplateInvoice.php). The VAT number is stored in the tb_address table.

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...