AngBolt Posted February 15, 2021 Share Posted February 15, 2021 Buenas, Estoy buscando la manera de que en mis facturas de abono aparezca la referencia de la factura que está rectificando y me gustaría saber sí conocéis de algún módulo o alguna manera de poder hacer esto. Agradecería vuestra ayuda, muchas gracias. Link to comment Share on other sites More sharing options...
laurix Posted February 19, 2021 Share Posted February 19, 2021 Hola, yo me lo apañé solita modificando el .tpl Donde quieras que salga el número pones esto: {$order->invoice_number|string_format:"%06d"} En mi caso el archivo que modifiqué es order-slip.summary-tab.tpl, para que salga en la cabecera. Añadiendo una linea para cada fila de la tabla: <table id="summary-tab" width="100%"> <tr> <th class="header small" valign="middle">{l s='Order Reference' d='Shop.Pdf' pdf='true'}</th> <th class="header small" valign="middle">{l s='Order Date' d='Shop.Pdf' pdf='true'}</th> <th class="header small" valign="middle">Factura que rectifica</th> {if $addresses.invoice->vat_number} <th class="header small" valign="middle">{l s='VAT Number' d='Shop.Pdf' pdf='true'}</th> {/if} </tr> <tr> <td class="center small white">{$order->getUniqReference()}</td> <td class="center small white">{dateFormat date=$order->date_add full=0}</td> <td class="center small white">{$order->invoice_number|string_format:"%06d"}</td> {if $addresses.invoice->vat_number} <td class="center small white"> {$addresses.invoice->vat_number} </td> {/if} </tr> </table> Espero que te sirva Link to comment Share on other sites More sharing options...
AngBolt Posted February 21, 2021 Author Share Posted February 21, 2021 Muchísimas gracias me ha sido de gran ayuda 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