RicRey Posted June 27, 2014 Share Posted June 27, 2014 Good day I have been struggling to make some changes I need to check in between those is removing the background color that has the subtotal, all discounts, full vat invoice tax base, I attached a link to an invoice in pdf format code bill here invoice.tpl Invoice PDF Link: http://www.sistemasyprogramas.com/imagenes/factura.pdf <!-- CABECERA --> <table style="width: 100%; height: 120px;"> <tr> <td colspan="5"> <div style="line-height: 4pt"> <br /> </div> </td> </tr> <tr> <td width="36%" style="width:33%"><br /><br /> <table> <tr> <td style="font-size: 14pt; font-weight: bold; color: {if Configuration::get('FSPA_titleColor')}{Configuration::get('FSPA_titleColor')}{else}#000000{/if}; text-align: left;">{l s='Invoice' mod='factSpa'}</td> </tr> <tr> <td style="font-size: 11pt; font-weight: bold; color: {if Configuration::get('FSPA_titleColor')}{Configuration::get('FSPA_titleColor')}{else}#000000{/if}; text-align: left;">{l s='Number' mod='factSpa'} {$title|escape:'htmlall':'UTF-8'}</td> </tr> <tr> <td style="font-size: 10pt; font-weight: normal; color: {if Configuration::get('FSPA_titleColor')}{Configuration::get('FSPA_titleColor')}{else}#000000{/if}; text-align: left;">{l s='Date' mod='factSpa'}: {$date}</td> </tr> </table></td> <td width="31%" style="width:34%; position:relative"><!-- {if $logo_path} <img align="left" src="{$logo_path}" /> {/if} --> </td> <td width="33%" style="width: 33%; text-align: right; vertical-align: middle; padding-left: 15pt"><table style="vertical-align: bottom"> {if Configuration::get('FSPA_razonSocial')} <tr> <td style="font-size: 7pt; font-weight: normal; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; text-align:left">{Configuration::get('FSPA_razonSocial')}</td> </tr> {/if} {if Configuration::get('FSPA_nombre')} <tr> <td style="font-size: 7pt; font-weight: normal; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; text-align:left">{Configuration::get('FSPA_nombre')}</td> </tr> {/if} {if Configuration::get('FSPA_cif')} <tr> <td style="font-size: 7pt; font-weight: normal; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; text-align:left">{Configuration::get('FSPA_cif')}</td> </tr> {/if} {if Configuration::get('FSPA_domicilio')} <tr> <td style="font-size: 7pt; font-weight: normal; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; text-align:left">{Configuration::get('FSPA_domicilio')}</td> </tr> {/if} {if Configuration::get('FSPA_localidad') || Configuration::get('FSPA_Provincia')} <tr> <td style="font-size: 7pt; font-weight: normal; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; text-align:left">{Configuration::get('FSPA_localidad')} - {Configuration::get('FSPA_Provincia')}</td> </tr> {/if} {if Configuration::get('FSPA_Pais')} <tr> <td style="font-size: 7pt; font-weight: normal; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; text-align:left">{Configuration::get('FSPA_Pais')}</td> </tr> {/if} {if Configuration::get('FSPA_telefono') || Configuration::get('FSPA_fax')} <tr> <td style="font-size: 7pt; font-weight: normal; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; text-align:left">Tfn: {Configuration::get('FSPA_telefono')} - Fax: {Configuration::get('FSPA_fax')}</td> </tr> {/if} {if Configuration::get('FSPA_mail')} <tr> <td style="font-size: 7pt; font-weight: normal; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; text-align:left">{Configuration::get('FSPA_mail')}</td> </tr> {/if} {if Configuration::get('FSPA_otro')} <tr> <td style="font-size: 7pt; font-weight: normal; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; text-align:left">{Configuration::get('FSPA_otro')}</td> </tr> {/if} </table></td> </tr> </table> <!-- /CABECERA --> <div style="line-height: 1px"> </div> <!-- ADDRESSES --> <table style="width: 100%"> <tr> <td style="width:100%"> {if !empty($delivery_address)} <table style="width: 100%;"> <tr> <td style="width: 46%"><table style="width: 100%"> <tr style="width: 50%; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; line-height: 1.5pt; font-weight: normal; font-size: 11pt; color: #ffffff"> <td style="text-align: left;"><strong>{l s='Invoice address' mod='factSpa'}</strong></td> </tr> <tr style="width: 50%; background-color: #ffffff;"> <td style="text-align: left; font-size: 10pt;"> {$invoice_address} </td> </tr> </table></td> </tr> </table> {else} <table style="width: 100%"> <tr> <td style="width: 46%"><table style="width: 100%"> <tr style="width: 200px; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; line-height: 1.5pt; font-weight: normal; font-size: 11pt; color: {Configuration::get('FSPA_textColor')}; padding-top: 7pt; padding-bottom: 7pt;"> <td style="text-align: left;"><strong>{l s='Invoice address' mod='factSpa'}</strong></td> </tr> <tr style="width: 50%; background-color: #ffffff;"> <td style="text-align: left; font-size: 10pt; color:#000000"><div style="line-height: 0.1pt"> </div> {$invoice_address} </td> </tr> </table></td> </tr> </table> {/if} </td> </tr> </table> <!-- / ADDRESSES --> <div style="line-height: 1px"> </div> <!-- PRODUCTS TAB --> <table style="width: 100%"> <tr style="border-collapse: separate; border-spacing: 1pt;"> <td style="text-align: right"> <table style="width: 100%; font-size: 8pt; vertical-align:central; border-collapse: separate; border-spacing: 1.4pt;"> <tr style="line-height: 1.6pt; font-size: 9pt; text-align:left; vertical-align:top; background-color: #ffffff;"> <td colspan="2" style="padding-top: 7pt; padding-bottom: 7pt; color:#000000;">{l s='Order reference:' mod='factSpa'} {$order->getUniqReference()} | {l s='Order id:' mod='factSpa'}{$order->id}</td> </tr> {foreach from=$order_invoice->getOrderPaymentCollection() item=payment} <tr style="line-height: 1.6pt; font-size: 9pt; text-align:left; vertical-align:top; background-color: #ffffff;"> <td colspan="2" style="padding-top: 7pt; padding-bottom: 7pt; color:#000000;">{l s='Payment method:' mod='factSpa'} {$payment->payment_method}</td> </tr> {foreachelse} <tr style="line-height: 1.6pt; font-size: 9pt; text-align:left; vertical-align:top; background-color: #ffffff;"> <td colspan="2">{l s='No payment' pdf='true'}</td> </tr> {/foreach} <tr style="line-height: 0.5pt"> </tr> <tr style="background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; line-height: 1.7pt; font-size: 12pt; color: {Configuration::get('FSPA_textColor')}; text-align:center"> <td {if Configuration::get('FSPA_details') == 1}colspan="7"{else}colspan="5"{/if}><strong>{l s='Order Details' mod='factSpa'}</strong></td> </tr> <tr style="line-height:4px;"> <td style="background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; text-align: center;font-size: 9pt; width: {if Configuration::get('FSPA_details') == 1}10%{else}15%{/if}"><strong>{l s='Reference' mod='factSpa'}</strong></td> <td style="text-align: left; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; padding-left: 10px;font-size: 9pt; width: {if Configuration::get('FSPA_details') == 1}37%{else}47%{/if}"><strong>{l s='Product' mod='factSpa'}</strong></td> <!-- unit price tax excluded is mandatory --> {if Configuration::get('FSPA_details') == 1} <td style="text-align: center; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; padding-left: 10px;font-size: 7pt; width: 10%"><strong>{l s='Price without discount' mod='factSpa'}</strong></td> <td style="text-align: center; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; padding-left: 10px;font-size: 7pt; width: 10%"><strong>{l s='Discount' mod='factSpa'}</strong></td> {/if} <td style="background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; text-align: center; width: {if Configuration::get('FSPA_details') == 1}10%{else}13%{/if}"><strong>{l s='Price' mod='factSpa'}</strong></td> <td style="text-align: center; background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; padding-left: 10px;font-size: 9pt; width: 10%"><strong>{l s='Qty' mod='factSpa'}</strong></td> <td style="background-color: {if Configuration::get('FSPA_color')}{Configuration::get('FSPA_color')}{else}#000000{/if}; color: {Configuration::get('FSPA_textColor')}; text-align: right; padding-right:2pt;font-size: 9pt; width: {if Configuration::get('FSPA_details') == 1}13%{else}15%{/if}"><strong> {l s='Total' mod='factSpa'}</strong></td> </tr> <!-- PRODUCTS --> {foreach $order_details as $order_detail} {cycle values='#FFFFFF,#FFFFFF' assign=bgcolor} <tr style="line-height:5px;background-color:{$bgcolor};"> <td style="text-align: center; width: {if Configuration::get('FSPA_details') == 1}10%{else}15%{/if}; font-size:{if Configuration::get('FSPA_details') == 1}7pt{else}9pt{/if}; color:#000000"> {if empty($order_detail.product_reference)} no ref. {else} {$order_detail.product_reference} {/if} </td> <td style="text-align: left; width: {if Configuration::get('FSPA_details') == 1}37%{else}47%{/if}; font-size:{if Configuration::get('FSPA_details') == 1}7pt{else}9pt{/if}; color:#000000">{$order_detail.product_name}</td> {if Configuration::get('FSPA_details') == 1} <td style="text-align: center; width: 10%; font-size:9pt; color:#000000">{displayPrice currency=$order->id_currency price=$order_detail.original_product_price}</td> <td style="text-align: center; width: 10%; font-size:9pt; color:#000000"> {if (isset($order_detail.reduction_amount) && $order_detail.reduction_amount > 0)} -{displayPrice currency=$order->id_currency price=$order_detail.reduction_amount} {else if (isset($order_detail.reduction_percent) && $order_detail.reduction_percent > 0)} -{$order_detail.reduction_percent}% {else} -- {/if} </td> {/if} <!-- unit price tax excluded is mandatory --> <td style="text-align: right; width: {if Configuration::get('FSPA_details') == 1}10%{else}13%{/if}; font-size:9pt; color:#000000">{displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_excl} </td> <td style="text-align: right; width: 10%"> {$order_detail.product_quantity} </td> <td style="width: 15%; text-align: right; width: {if Configuration::get('FSPA_details') == 1}13%{else}15%{/if}; font-size:9pt; color:#000000"> {displayPrice currency=$order->id_currency price=$order_detail.total_price_tax_excl} </td> </tr> {/foreach} <!-- END PRODUCTS --> </table> </td> </tr> </table> <!-- / PRODUCTS TAB --> <div style="line-height: 1px"> </div> <!-- DESCUENTO Y ENVÍOS --> <table style="width:100%; color:#000000"> <!-- CART RULES --> {if ($order_invoice->total_discount_tax_excl) > 0} {assign var="shipping_discount_tax_incl" value="0"} {foreach $cart_rules as $cart_rule} {cycle values='#FFF,#FFF' assign=bgcolor} <tr style="line-height:4px;background-color:#FFF; text-align=left; width:100%"> <td style=" font-size:9pt; color:#000000; text-align:right; width:75%;">{$cart_rule.name}</td> <td style="width:10%"></td> <td style="font-size:9pt; color:#000000; text-align:right; width:15%;"> {if $cart_rule.free_shipping} {assign var="shipping_discount_tax_excl" value=$order_invoice->total_shipping_tax_excl} {/if} {if $tax_excluded_display} - {displayPrice currency=$order->id_currency price=($cart_rule.value_tax_excl)} {else} - {displayPrice currency=$order->id_currency price=($cart_rule.value_tax_excl)} {/if} </td> </tr> {/foreach} <tr style="border-collapse:separate; border-spacing: 4.5pt; font-size:10pt; color:#000000; line-height:2pt"> <td style="width:75%; text-align:right">{l s='Total Vouchers' pdf='true'}</td> <td style="width:10%"></td> <td style="width:15%; text-align:right">-{displayPrice currency=$order->id_currency price=($order_invoice->total_discount_tax_excl)}</td> </tr> {/if} {if $order_invoice->total_wrapping_tax_excl > 0} <tr style="border-collapse:separate; border-spacing: 4.5pt; font-size:10pt; color:#000000; line-height:2pt"> <td style="text-align: right; width:75%">{l s='Wrapping Cost' pdf='true'}</td> <td style="width:10%"></td> <td style="width: 15%; text-align: right;"> {if $tax_excluded_display} {displayPrice currency=$order->id_currency price=$order_invoice->total_wrapping_tax_excl} {else} {displayPrice currency=$order->id_currency price=$order_invoice->total_wrapping_tax_incl} {/if} </td> </tr> {/if} <!-- END CART RULES --> <!-- <tr style="border-collapse:separate; border-spacing: 4.5pt; font-size:10pt; color:#000000; line-height:2pt"> <td style="width:75%; text-align:right">{l s='Shipping Cost' pdf='true'} {l s='IVA Incl.' mod='factSpa'} - {l s='Carrier:' pdf='true'} {$order_invoice->getCarrier($order_invoice->id)->name}</td> <td style="width:10%"></td> <td style="width:15%; text-align:right"> {displayPrice currency=$order->id_currency price=$order_invoice->total_shipping_tax_incl} </td> </tr> --> </table> <!-- / DESCUENTO Y ENVÍOS --> <!-- / DETALLES COMPLEMENTARIOS --> <!-- <div style="line-height: 1pt"> </div> {$tax_tab} {if isset($order_invoice->note) && $order_invoice->note} <table style="width: 100%"> <tr> <td style="width: 15%"></td> <td style="width: 85%">{$order_invoice->note|nl2br}</td> </tr> </table> {/if} {if isset($HOOK_DISPLAY_PDF)} <div style="line-height: 1pt"> </div> <table style="width: 100%"> <tr> <td style="width: 15%"></td> <td style="width: 85%">{$HOOK_DISPLAY_PDF}</td> </tr> </table> {/if} Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now