Skip to content

Commit

Permalink
[add] l10n_pe_einvoice : se agregó un comportamiento dinamico en el h…
Browse files Browse the repository at this point in the history
…eader del reporte basado en el tipo de documento del diario de la factura
  • Loading branch information
Anniel-Rodriguez-Izquierdo committed Jul 6, 2018
1 parent 9a3657d commit 9b1e77c
Showing 1 changed file with 26 additions and 18 deletions.
44 changes: 26 additions & 18 deletions addons/l10n_pe_einvoice/reports/report_invoice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@
</div>
<div class="col-xs-3" style="border: 1px solid black;">
<table style="width:100%; line-height:20px;">
<tr class="text-center"><td><strong>FACTURA ELECTRONICA</strong></td></tr>
<tr class="text-center"><td><strong>RUC: <span t-field="o.company_id.partner_id.doc_number"/></strong></td></tr>
<tr class="text-center"><td><strong><span t-esc="o.number"/></strong></td></tr>
<tr class="text-center"><td><strong style="text-transform:uppercase;"><span t-field="o.sunat_payment_type"/></strong></td></tr>
<tr class="text-center"><td><strong style="text-transform:uppercase;"><span t-field="o.company_id.partner_id.doc_type_abbr"/>: <span t-field="o.company_id.partner_id.doc_number"/></strong></td></tr>
<tr class="text-center"><td><strong><span t-field="o.number"/></strong></td></tr>
</table>
</div>
</div>

<div class="row" style="padding: 20px 10px 5px 0px">

<div class="col-xs-7">
<table style="width:100%; line-height:20px;">
<tr>
Expand All @@ -47,12 +48,28 @@
<td style="width:50%;">RUC</td>
<td>: <strong><span t-field="o.partner_id.doc_number"/></strong></td>
</tr>
</table>
</div>

<div class="col-xs-5">
<table style="width:100%; line-height:20px;">
<tr>
<td style="width:50%;">Establecimiento del emisor</td>
<td style="width:50%;">GUIA DE REMISION REMITENTE</td>
<td>: <strong><span t-field="o.picking"/></strong></td></tr>
<tr>
<td style="width:50%;">OTROS</td>
<td>: <strong><span t-field="o.other_comment"/></strong></td></tr>
</table>
</div>

<div class="col-xs-12">
<table style="width:100%; line-height:20px;">
<tr>
<td style="width:28.5%;">Establecimiento del emisor</td>
<td>: <strong><span t-field="o.partner_id.street"/> <span t-esc="o.company_id.street2"/> <span t-esc="o.company_id.city"/> - <span t-esc="o.company_id.state_id.name"/> - <span t-esc="o.company_id.country_id.name"/></strong></td>
</tr>
<tr>
<td style="width:50%;">Tipo de moneda</td>
<td style="width:28.5%;">Tipo de moneda</td>
<td>:
<strong>
<t t-if="o.currency_id.long_name"><span t-field="o.currency_id.long_name"/></t>
Expand All @@ -61,20 +78,11 @@
</td>
</tr>
<tr>
<td style="width:50%;">Observación</td>
<td style="width:28.5%;">Observación</td>
<td>: <strong><span t-field="o.comment"/></strong></td></tr>
</table>
</div>
<div class="col-xs-5">
<table style="width:100%; line-height:20px;">
<tr>
<td style="width:50%;">Guía de Remisión Remitente</td>
<td>: <strong><span t-field="o.picking"/></strong></td></tr>
<tr>
<td style="width:50%;">Otros</td>
<td>: <strong><span t-field="o.other_comment"/></strong></td></tr>
</table>
</div>

</div>
<div class="row" style="padding: 10px 10px;">
<table style="width:100%; line-height:20px; border: 1px solid black; padding: 10px 10px;">
Expand All @@ -92,7 +100,7 @@
<td class="text-center" style="padding: 2px"><span t-field="l.quantity"/></td>
<td class="text-center" style="padding: 2px"><span t-field="l.uos_id"/></td>
<td class="text-center" style="padding: 2px"><span t-field="l.product_id.code"/></td>
<td class="text-left" style="padding: 2px"><span t-field="l.product_id.name"/></td>
<td class="text-left" style="padding: 2px"><span t-field="l.name"/></td>
<td class="text-right" style="padding: 2px"><span t-field="l.price_unit"/></td>
</tr>
</tbody>
Expand Down Expand Up @@ -168,4 +176,4 @@
</t>
</template>
</data>
</openerp>
</openerp>

0 comments on commit 9b1e77c

Please sign in to comment.