|
@@ -0,0 +1,54 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<openerp>
|
|
|
+ <data>
|
|
|
+ <template id="report_ticket_ferreteria">
|
|
|
+ <t t-call="report.external_layout">
|
|
|
+ <div class="page" style="width: 78mm; font-size: 12px; font-family: monospace; margin-top: 5px;">
|
|
|
+ <t t-foreach="docs" t-as="doc">
|
|
|
+ <div style="text-align: center;">
|
|
|
+ <strong><t t-esc="doc.company_id.name"/></strong><br/>
|
|
|
+ <t t-esc="doc.company_id.actividad or ''"/><br/>
|
|
|
+ <t t-esc="doc.company_id.street or ''"/><br/>
|
|
|
+ <t t-esc="doc.company_id.street2 or ''"/><br/>
|
|
|
+ Tel: <t t-esc="doc.company_id.phone or ''"/><br/>
|
|
|
+ -------------------------------<br/>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div>
|
|
|
+ <strong>Factura:</strong> <t t-esc="doc.number or doc.name"/><br/>
|
|
|
+ <strong>Cliente:</strong> <t t-esc="doc.partner_id.name or ''"/><br/>
|
|
|
+ -------------------------------<br/>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <table style="width:100%; font-size:11px;">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th style="text-align:left;">Cant</th>
|
|
|
+ <th style="text-align:left;">Descripción</th>
|
|
|
+ <th style="text-align:right;">Total</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr t-foreach="doc.invoice_line" t-as="line">
|
|
|
+
|
|
|
+ <td><t t-esc="'{0:,.0f}'.format(line.quantity)"/></td>
|
|
|
+ <td><t t-esc="line.name"/></td>
|
|
|
+ <td style="text-align:right;"><t t-esc="'{0:,.0f}'.format((line.quantity * line.price_unit))"/></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ <div style="border-top: 1px dashed #000; margin-top: 5px;"></div>
|
|
|
+ <div style="text-align:right;">
|
|
|
+ <strong>Total: </strong><t t-esc="'{0:,.0f}'.format(doc.amount_total)"/>
|
|
|
+ </div>
|
|
|
+ <br/>
|
|
|
+ <div style="text-align: center;">
|
|
|
+ Gracias por su compra
|
|
|
+ </div>
|
|
|
+ </t>
|
|
|
+ </div>
|
|
|
+ </t>
|
|
|
+ </template>
|
|
|
+ </data>
|
|
|
+</openerp>
|