|
@@ -1,293 +1,207 @@
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
-<openerp>
|
|
|
|
-<data>
|
|
|
|
|
|
+ <openerp>
|
|
|
|
+ <data>
|
|
|
|
|
|
- <report id="nota_credito_ferreteria"
|
|
|
|
- model="account.invoice"
|
|
|
|
- string="Nota de crédito"
|
|
|
|
- report_type="qweb-html"
|
|
|
|
- name="factura_venta_ferreteria.report_notacredito_ferreteria"
|
|
|
|
- file="factura_venta_ferreteria.report_notacredito_ferreteria"
|
|
|
|
- />
|
|
|
|
|
|
+ <report id="nota_credito_ferreteria"
|
|
|
|
+ model="account.invoice"
|
|
|
|
+ string="Nota de crédito"
|
|
|
|
+ report_type="qweb-html"
|
|
|
|
+ name="factura_venta_ferreteria.report_notacredito_ferreteria"
|
|
|
|
+ file="factura_venta_ferreteria.report_notacredito_ferreteria"
|
|
|
|
+ />
|
|
|
|
|
|
- <template id="report_header_custom" inherit_id="report.external_layout_header">
|
|
|
|
- <xpath expr="//div[@class='header']" position="replace">
|
|
|
|
- <div class ="header">
|
|
|
|
- </div>
|
|
|
|
- </xpath>
|
|
|
|
- </template>
|
|
|
|
|
|
|
|
- <template id="external_layout_footer" inherit_id="report.external_layout_footer">
|
|
|
|
- <xpath expr="//div[@class='footer']" position="replace">
|
|
|
|
- <div class ="footer">
|
|
|
|
- </div>
|
|
|
|
- </xpath>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <template id="report_notacredito_ferreteria">
|
|
|
|
+ <t t-call="report.html_container">
|
|
|
|
+ <t t-call="report.external_layout">
|
|
|
|
+ <t t-foreach="[1]" t-as="i">
|
|
|
|
+ <div class="page" style="width: 21cm; min-height: 29.7cm; padding: 0.2cm;font-size: 2.60mm;font-family: Arial, Helvetica, sans-serif;">
|
|
|
|
+ <t t-foreach="docs" t-as="o">
|
|
|
|
+ <!-- <div class="pagina"> -->
|
|
|
|
+ <!-- Cabecera -->
|
|
|
|
+ <div class="row" style="display: flex; align-items: stretch; margin-top: -25px; border-top: 1px solid #ddd;">
|
|
|
|
+ <div class="col-xs-3" style="border-radius: 10px 0 0 10px; border: 2px solid #ddd; display: flex; flex-direction: column; justify-content: center; padding: 10px;">
|
|
|
|
+ <div class="logo-container">
|
|
|
|
+ <img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 125px;" />
|
|
|
|
+ </div>
|
|
|
|
+ <div style="margin-top: 0.3cm;"></div>
|
|
|
|
+ <t><center><strong>INNOVACIÓN, TECNOLOGÍA Y SEGURIDAD</strong></center></t>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-xs-5" style="padding-left: 0.01mm; padding-top: 0.01mm; padding-bottom: 0.15mm; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
|
|
|
|
+ <h3><center><strong><i><span t-field="o.company_id.name" /></i></strong></center></h3>
|
|
|
|
+ <t><center><b>de </b><i><span t-field="o.company_id.representante_legal"/></i></center></t>
|
|
|
|
+ <t><center><b><span t-field="o.company_id.actividad" /></b></center></t>
|
|
|
|
+ <t><center><b><span t-field="o.company_id.street" /></b></center></t>
|
|
|
|
+ <t><center><b><span t-field="o.company_id.street2" /></b></center></t>
|
|
|
|
+ <t><center><b><span t-field="o.company_id.phone" /></b></center></t>
|
|
|
|
+ </div>
|
|
|
|
|
|
- <template id="report_notacredito_ferreteria">
|
|
|
|
- <t t-call="report.html_container">
|
|
|
|
- <t t-call="report.external_layout">
|
|
|
|
- <t t-foreach="[1,2,3]" t-as="i">
|
|
|
|
- <div class="page">
|
|
|
|
- <style type="text/css">
|
|
|
|
- body{
|
|
|
|
- font-size: 2.67mm;
|
|
|
|
- font-family: Arial, Helvetica, sans-serif;
|
|
|
|
- }
|
|
|
|
- div{
|
|
|
|
- padding: 0px;
|
|
|
|
- }
|
|
|
|
- .pagina{
|
|
|
|
- width:19.3cm;
|
|
|
|
- }
|
|
|
|
- .logo{
|
|
|
|
- height: 0.4cm;
|
|
|
|
- width: 100%;
|
|
|
|
- top: 0px;
|
|
|
|
- }
|
|
|
|
- .fecha_emision_data{
|
|
|
|
- width: 11cm;
|
|
|
|
- padding-left: 9cm;
|
|
|
|
- float: left;
|
|
|
|
- min-height: 0.6cm;
|
|
|
|
- }
|
|
|
|
- .contado_x{
|
|
|
|
- width: 0.5cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 1.8cm;
|
|
|
|
- min-height: 0.6cm;
|
|
|
|
- }
|
|
|
|
- .credito_x{
|
|
|
|
- width: 0.5cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 1.3cm;
|
|
|
|
- min-height: 0.6cm;
|
|
|
|
- }
|
|
|
|
- .linea2{
|
|
|
|
- position: relative;
|
|
|
|
- top: -0.12cm;
|
|
|
|
- min-height: 0.4cm;
|
|
|
|
- }
|
|
|
|
- .razon_data{
|
|
|
|
- width: 15cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 9.9cm;
|
|
|
|
- min-height: 0.5cm;
|
|
|
|
- }
|
|
|
|
- .linea3{
|
|
|
|
- position: relative;
|
|
|
|
- top: -0.12cm;
|
|
|
|
- min-height: 0.4cm;
|
|
|
|
- }
|
|
|
|
- .direccion_data{
|
|
|
|
- width: 14cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 9.5cm;
|
|
|
|
- min-height: 0.5cm;
|
|
|
|
- }
|
|
|
|
- .linea4{
|
|
|
|
- position: relative;
|
|
|
|
- top: -0.12cm;
|
|
|
|
- min-height: 0.4cm;
|
|
|
|
- }
|
|
|
|
- .ruc_data{
|
|
|
|
- width: 10.7cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 9.1cm;
|
|
|
|
- min-height: 0.4cm;
|
|
|
|
- }
|
|
|
|
- .telefono_data{
|
|
|
|
- width: 6.8cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 2.3cm;
|
|
|
|
- min-height: 0.5cm;
|
|
|
|
- }
|
|
|
|
- .linea5{
|
|
|
|
- position: relative;
|
|
|
|
- top: -0.12cm;
|
|
|
|
- min-height: 0.4cm;
|
|
|
|
- }
|
|
|
|
- .nota_remision_data{
|
|
|
|
- width: 8.3cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 2.5cm;
|
|
|
|
- min-height: 0.5cm;
|
|
|
|
- }
|
|
|
|
|
|
+ <div class="col-xs-4 pull-right" style="border-top-right-radius: 10px; padding-bottom: 0.19cm; border-bottom-right-radius: 10px;padding-left: 0.01mm; padding-top: 0.01mm; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
|
|
|
|
+ <t></t>
|
|
|
|
+ <div style="margin-top: 0.3cm;"> </div>
|
|
|
|
+ <t>
|
|
|
|
+ <div>
|
|
|
|
+ <!-- <center><strong>TIMBRADO Nº</strong><span t-field="o.timbrado" /></center> -->
|
|
|
|
+ <center><strong>TIMBRADO Nº</strong><span t-field="o.talonario_id" /></center>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ <t>
|
|
|
|
+ <div>
|
|
|
|
+ <!-- <center><strong>Fecha Inicio Vigencia:</strong><span t-field="o.talonario.fecha_inicio" /></center> -->
|
|
|
|
+ <center><strong>Fecha Inicio Vigencia:</strong><span t-field="o.talonario_id.fecha_inicio"/></center>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ <t>
|
|
|
|
+ <div>
|
|
|
|
+ <!-- <center><strong>Fecha Fin Vigencia:</strong><span t-field="o.fecha_final"/></center> -->
|
|
|
|
+ <center><strong>Fecha Fin Vigencia:</strong><span t-field="o.fecha_final"/></center>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ <t>
|
|
|
|
+ <div>
|
|
|
|
+ <center><strong>RUC:</strong><span t-field="o.company_id.vat" /></center>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ <t>
|
|
|
|
+ <div>
|
|
|
|
+ <h3><center><strong>NOTA DE CREDITO</strong></center></h3>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ <t>
|
|
|
|
+ <div>
|
|
|
|
+ <h4><center><strong><span t-field="o.name" /></strong></center></h4>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
|
|
- .cab-articulos{
|
|
|
|
- height: 0.7cm;
|
|
|
|
- clear: both;
|
|
|
|
- }
|
|
|
|
- .articulos{
|
|
|
|
- height: 3.65cm;
|
|
|
|
- }
|
|
|
|
- .art-col1{
|
|
|
|
- width:0.9cm;
|
|
|
|
- text-align: center;
|
|
|
|
- }
|
|
|
|
- .art-col2{
|
|
|
|
- padding-left: 0.8cm;
|
|
|
|
- width:1cm;
|
|
|
|
- text-align: center;
|
|
|
|
- }
|
|
|
|
- .art-col3{
|
|
|
|
- padding-left: 1cm;
|
|
|
|
- width:9.4cm;
|
|
|
|
- }
|
|
|
|
- .art-col4{
|
|
|
|
- width:1.9cm;
|
|
|
|
- text-align: right;
|
|
|
|
- }
|
|
|
|
- .art-col5{
|
|
|
|
- width:2.2cm;
|
|
|
|
- text-align: right;
|
|
|
|
- }
|
|
|
|
- .art-col6{
|
|
|
|
- width:2.5cm;
|
|
|
|
- text-align: right;
|
|
|
|
- }
|
|
|
|
- .art-col7{
|
|
|
|
- width:1.9cm;
|
|
|
|
- text-align: right;
|
|
|
|
- }
|
|
|
|
- .logo1{
|
|
|
|
- height: 3.83cm;
|
|
|
|
- width: 100%;
|
|
|
|
- top: 0px;
|
|
|
|
- }
|
|
|
|
- .subtotal_data{
|
|
|
|
- width: 6cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-top: 0.002cm;
|
|
|
|
- padding-left: 2.3cm;
|
|
|
|
- min-height: 0.2cm;
|
|
|
|
- }
|
|
|
|
- .subtotal_excentas{
|
|
|
|
- width: 1.8cm;
|
|
|
|
- float: left;
|
|
|
|
- text-align: right;
|
|
|
|
- padding-left: 10cm;
|
|
|
|
- padding-top: 0.7cm;
|
|
|
|
- min-height: 0.2cm;
|
|
|
|
- }
|
|
|
|
- .subtotal_5{
|
|
|
|
- width: 1cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 1cm;
|
|
|
|
- text-align: right;
|
|
|
|
- padding-top: 0.7cm;
|
|
|
|
- min-height: 0.2cm;
|
|
|
|
- }
|
|
|
|
- .subtotal_10{
|
|
|
|
- width: 2.3cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 0.8cm;
|
|
|
|
- text-align: left;
|
|
|
|
- padding-top: 0.7cm;
|
|
|
|
- min-height: 0.2cm;
|
|
|
|
- }
|
|
|
|
- .total_pagar_data{
|
|
|
|
- width: 16.4cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-top: 0.01mm;
|
|
|
|
- padding-left: 4.8cm;
|
|
|
|
- min-height: 0.3cm;
|
|
|
|
- }
|
|
|
|
- .total_pagar{
|
|
|
|
- width: 2.3cm;
|
|
|
|
- float: right;
|
|
|
|
- padding-top: 0.01mm;
|
|
|
|
- padding-left: 0.8cm;
|
|
|
|
- min-height: 0.3cm;
|
|
|
|
- }
|
|
|
|
- .iva_5_data{
|
|
|
|
- width: 5cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 4.7cm;
|
|
|
|
- min-height: 0.25cm;
|
|
|
|
- }
|
|
|
|
- .iva_10_data{
|
|
|
|
- width: 5cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 3.8cm;
|
|
|
|
- min-height: 0.25cm;
|
|
|
|
- }
|
|
|
|
- .iva_total_data{
|
|
|
|
- width: 7cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 3.6cm;
|
|
|
|
- min-height: 0.25cm;
|
|
|
|
- }
|
|
|
|
|
|
+ <div style="margin-top: 0.1cm;"></div>
|
|
|
|
+ <!-- <div class="client"> -->
|
|
|
|
|
|
- </style>
|
|
|
|
- <t t-foreach="docs" t-as="o">
|
|
|
|
- <div class="pagina">
|
|
|
|
- <div class="logo"> </div>
|
|
|
|
- <div class="linea1">
|
|
|
|
- <div class="fecha_emision_data"><span t-field="o.date_invoice" t-field-options='{"format": "dd MMM yyyy"}'/></div>
|
|
|
|
- <div class="contado_x">
|
|
|
|
- <t t-if="o.contado == True">x</t>
|
|
|
|
- <t t-if="o.contado == False"></t>
|
|
|
|
- </div>
|
|
|
|
- <div class="credito_x">
|
|
|
|
- <t t-if="o.credito == True">x</t>
|
|
|
|
- <t t-if="o.credito == False"></t>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <table style="border-collapse: collapse; width: 100%;">
|
|
|
|
+ <tr>
|
|
|
|
+ <td style="padding: 5px; padding-left: 0.2cm; padding-top: 0.2cm; border-top: 3px solid #ddd; border-bottom: 2px solid #ddd; border-left: 3px solid #ddd; border-right: 2px solid #ddd; width: 30%;"><strong>Fecha: </strong><span t-field="o.date_invoice" t-field-options='{"format": "dd MMM yyyy"}'/></td>
|
|
|
|
+ <td style="padding: 5px; border-top: 3px solid #ddd; padding-top: 0.2cm; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 3px solid #ddd; width: 30%;">
|
|
|
|
+ <strong>Condición de Venta:</strong>
|
|
|
|
+ <t t-if="o.contado == True">Contado</t>
|
|
|
|
+ <t t-if="o.contado == False">Crédito</t>
|
|
|
|
+ </td>
|
|
|
|
+ <td style="padding: 5px; border-top: 3px solid #ddd; padding-top: 0.2cm; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 3px solid #ddd; width: 30%;">
|
|
|
|
+ <strong>Vencimiento:</strong><span t-field="o.date_due"/>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+ <table style="border-collapse: collapse; width: 100%;">
|
|
|
|
+ <tr>
|
|
|
|
+ <td style="padding: 5px; padding-left: 0.2cm; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 3px solid #ddd; border-right: 3px solid #ddd; width: 100%;"><strong>Cliente: </strong><span t-field="o.partner_id.name"/></td>
|
|
|
|
+ <!-- <td style="border: none;">Celda 4</td> -->
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+ <table style="border-collapse: collapse; width: 100%;">
|
|
|
|
+ <tr>
|
|
|
|
+ <td style="padding: 5px; padding-left: 0.2cm; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd;; border-left: 3px solid #ddd; border-right: 3px solid #ddd; width: 70%;"><strong>Dirección: </strong><t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
|
|
|
|
+ <t t-f="not o.partner_id.street"> </t></td>
|
|
|
|
+ <td style="padding: 5px; padding-left: 0.2cm; padding-bottom: 0.2cm; border-top: 3px solid #ddd; border-bottom: 3px solid #ddd; border-left: 2px solid #ddd; border-right: 3px solid #ddd; width: 30%;"><strong>RUC Nº: </strong><span t-field="o.partner_id.ruc"/></td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+ <table style="border-collapse: collapse; width: 100%;">
|
|
|
|
+ <tr>
|
|
|
|
+ <td style="padding: 5px; padding-left: 0.2cm; padding-top: 0.2cm; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd;; border-left: 3px solid #ddd; border-right: 2px solid #ddd; width: 50%;"><strong>Pedido por: </strong><span t-field="o.pedido_por" t-field-options='{"format": "dd MMM yyyy"}'/></td>
|
|
|
|
+ <td style="padding: 5px; border-top: 2px solid #ddd; padding-top: 0.2cm; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd;; border-right: 3px solid #ddd; width: 25%;"><strong>Ficha Nº: </strong><span t-field="o.ficha_nro"/></td>
|
|
|
|
+ <td style="padding: 5px; border-top: 2px solid #ddd; padding-bottom: 0.2cm; border-bottom: 3px solid #ddd; border-left: 2px solid #ddd; border-right: 3px solid #ddd; width: 25%;"><strong>Método de pago: </strong><span t-field="o.metodo_pago"/></td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+ <table style="border-collapse: collapse; width: 100%;">
|
|
|
|
+ <tr>
|
|
|
|
+ <td style="padding: 5px; padding-left: 0.2cm; padding-bottom: 0.2cm; border-top: 3px solid #ddd; border-bottom: 3px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd; width: 70%;"><strong>Local: </strong><span t-field="o.comment"/></td>
|
|
|
|
+ <td style="padding: 5px; border-top: 2px solid #ddd; padding-bottom: 0.2cm; border-bottom: 3px solid #ddd; border-left: 2px solid #ddd; border-right: 3px solid #ddd; width: 30%;"><strong>Vendedor: </strong><span t-field="o.user_id.name"/></td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
|
|
- <div class="linea2">
|
|
|
|
- <div class="razon_data"><span t-field="o.partner_id.name"/></div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div style="margin-top: 0.2cm;"></div>
|
|
|
|
|
|
- <div class="linea3">
|
|
|
|
- <div class="direccion_data">
|
|
|
|
- <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
|
|
|
|
- <t t-f="not o.partner_id.street"> </t>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <table style="border-collapse: collapse; width: 100%;" class="product">
|
|
|
|
+ <!-- <thead> -->
|
|
|
|
+ <tr>
|
|
|
|
+ <th style="text-align: center; padding: 0.05cm; width:4%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">Código</th>
|
|
|
|
+ <th style="text-align: center; padding: 0.05cm; width:5%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">Cant.</th>
|
|
|
|
+ <th style="text-align: center; padding: 0.05cm; width:57%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">Descripción</th>
|
|
|
|
+ <th style="text-align: center; padding: 0.05cm; width:8%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">Marca</th>
|
|
|
|
+ <th style="text-align: center; padding: 0.05cm; width:9%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">Precio Unit.</th>
|
|
|
|
+ <th style="padding: 0.05cm; width:8%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">IVA 5%</th>
|
|
|
|
+ <th style="padding: 0.05cm; width:18%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">IVA 10%</th>
|
|
|
|
+ </tr>
|
|
|
|
+ <!-- </thead> -->
|
|
|
|
+ </table>
|
|
|
|
+ <div style="height: 11.60cm;border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
|
|
|
|
+ <table style="border-collapse: collapse; width: 100%; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
|
|
|
|
+ <tr t-foreach="o.invoice_line" t-as="l">
|
|
|
|
+ <td style="text-align: center; padding: 0.05cm; width: 4%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"><span t-esc="l.product_id.default_code"/></td>
|
|
|
|
+ <td style="text-align: center; padding: 0.05cm; width: 5%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"><span t-esc="'{0:,.0f}'.format(l.quantity)"/></td>
|
|
|
|
+ <td style="text-align: left; padding: 0.05cm; width:57%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"><span t-field="l.product_id.name"/></td>
|
|
|
|
+ <td style="text-align: left; padding: 0.05cm; width:8%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"><span t-field="l.product_id.product_brand_id.name"/></td>
|
|
|
|
+ <td style="text-align: right; padding: 0.05cm; width:9%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
|
|
|
|
+ <td style="text-align: right; padding: 0.05cm; width:8%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"></td>
|
|
|
|
+ <td style="text-align: right; padding: 0.05cm; width:18%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"><span t-esc="'{0:,.0f}'.format((l.quantity * l.price_unit))"/></td>
|
|
|
|
+ </tr>
|
|
|
|
+ <!-- Inserta más filas aquí -->
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="margin-top: 0.2cm;"></div>
|
|
|
|
+ <table style="border-collapse: collapse; width: 100%; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
|
|
|
|
+
|
|
|
|
+ <td colspan="3" style="text-align: left;"><strong>Subtotales:</strong></td>
|
|
|
|
+ <td></td>
|
|
|
|
+ <td></td>
|
|
|
|
+ <td></td>
|
|
|
|
+ <td style="text-align: right;"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></td>
|
|
|
|
+ </table>
|
|
|
|
|
|
- <div class="linea4">
|
|
|
|
- <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div>
|
|
|
|
- <div class="telefono_data"><span t-field="o.partner_id.phone"/></div>
|
|
|
|
- </div>
|
|
|
|
- <div class="linea5">
|
|
|
|
- <div class="nota_remision_data"> </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="cab-articulos"> </div>
|
|
|
|
- <div class="articulos">
|
|
|
|
- <table class="tab-articulos">
|
|
|
|
- <tr t-foreach="o.invoice_line" t-as="l">
|
|
|
|
- <td class="art-col1"><span t-field="l.product_id.default_code"/></td>
|
|
|
|
- <td class="art-col2"><span t-esc="'{0:,.0f}'.format(l.quantity)"/></td>
|
|
|
|
- <td class="art-col3"><span t-field="l.product_id.name"/></td>
|
|
|
|
- <td class="art-col4"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
|
|
|
|
- <td class="art-col5"> </td>
|
|
|
|
- <td class="art-col6"> </td>
|
|
|
|
- <td class="art-col7"><span t-esc="'{0:,.0f}'.format(l.price_unit*l.quantity)"/></td>
|
|
|
|
- </tr>
|
|
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
|
|
|
|
- <div class="subtotal_data"> </div>
|
|
|
|
- <div class="subtotal_excentas"> </div>
|
|
|
|
- <div class="subtotal_5"> </div>
|
|
|
|
- <td style="font-size:7.0px;">
|
|
|
|
- <div class="subtotal_10"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
|
|
|
|
- </td>
|
|
|
|
- <div class="total_pagar_data">Gs.: <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
|
|
|
|
- <div class="total_pagar"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
|
|
|
|
|
|
+ <!-- <div class="sumas"> -->
|
|
|
|
+ <div style="margin-top: 0.2cm;"></div> <!-- Separación de 0,5 cm -->
|
|
|
|
+ <table style="width: 100%;">
|
|
|
|
+ <tbody>
|
|
|
|
+ <tr>
|
|
|
|
+ <td style="width: 75%; padding: 10px; border: 1px solid #ccc;">
|
|
|
|
+ <div><strong>TOTAL A PAGAR (en letras) Gs.: </strong><span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
|
|
|
|
+ </td>
|
|
|
|
+ <td style="width: 25%; padding: 10px; border: 1px solid #ccc; text-align: right;">
|
|
|
|
+ <div><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
|
|
- <div class="iva_5_data"> </div>
|
|
|
|
- <div class="iva_10_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
|
|
|
|
- <div class="iva_total_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
|
|
|
|
- </div>
|
|
|
|
- <div class="logo1"> </div>
|
|
|
|
- </t>
|
|
|
|
- </div>
|
|
|
|
- </t>
|
|
|
|
- </t>
|
|
|
|
- </t>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <div style="margin-top: 0.2cm;"></div> <!-- Separación de 0,5 cm -->
|
|
|
|
+ <table style="width: 100%;">
|
|
|
|
+ <tbody>
|
|
|
|
+ <tr>
|
|
|
|
+ <td style="width: 50%; padding: 10px; border: 1px solid #ccc;">
|
|
|
|
+ <div><strong>Liquidación del IVA:(5%)</strong></div>
|
|
|
|
+ </td>
|
|
|
|
+ <td style="width: 20%; padding: 10px; border: 1px solid #ccc;">
|
|
|
|
+ <div class="iva_10_data"><strong>(10%) </strong><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
|
|
|
|
+ </td>
|
|
|
|
+ <td style="width: 30%; padding: 10px; border: 1px solid #ccc;">
|
|
|
|
+ <div class="iva_total_data"><strong>Total del IVA: </strong><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+
|
|
|
|
+ <t t-if="i == 1">
|
|
|
|
+ <div class="logo2"> </div>
|
|
|
|
+ </t>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <!-- </div> -->
|
|
|
|
+ </t>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ </t>
|
|
|
|
+ </t>
|
|
|
|
+ </template>
|
|
|
|
|
|
-</data>
|
|
|
|
-</openerp>
|
|
|
|
|
|
+ </data>
|
|
|
|
+ </openerp>
|