Skip to content

Commit

Permalink
set default template
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Jan 23, 2018
1 parent f7ac381 commit caabbd7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Report/HtmlReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class HtmlReport implements ReportInterface
/**
* @var string
*/
private $template;
private $template = 'invoice2.html.twig';

/**
* HtmlReport constructor.
Expand Down
2 changes: 1 addition & 1 deletion src/Report/Templates/invoice.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
<hr>
<div style="margin: 20px 0;width: 100%;text-align: center">
<span>
<b>IMPORTE EN LETRAS</b> {{ legend(doc.legends, '1000') }} {{ doc.tipoMoneda|catalog('021') }}
<b>IMPORTE EN LETRAS</b> {{ legend(doc.legends, '1000') }}
</span>
</div>
<div class="clearfix">
Expand Down
5 changes: 2 additions & 3 deletions src/Report/Templates/invoice2.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
</tr>
</tbody></table>
<div class="tabla_borde">
{% set moneyName = doc.tipoMoneda|catalog('021') %}
{% set cl = doc.client %}
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tbody><tr>
Expand All @@ -94,7 +93,7 @@
</tr>
{% endif %}
<tr>
<td width="60%" height="15" align="left"><strong>Tipo Moneda: </strong> {{ moneyName }} </td>
<td width="60%" height="15" align="left"><strong>Tipo Moneda: </strong> {{ doc.tipoMoneda|catalog('021') }} </td>
<td width="40%" height="15" align="left"> </td>
</tr>
</tbody></table>
Expand Down Expand Up @@ -143,7 +142,7 @@
<td colspan="4">
<br>
<br>
<span style="font-family:Tahoma, Geneva, sans-serif; font-size:12px" text-align="center"><strong>{{ legend(doc.legends, '1000') }} {{ moneyName }}.</strong></span>
<span style="font-family:Tahoma, Geneva, sans-serif; font-size:12px" text-align="center"><strong>{{ legend(doc.legends, '1000') }}.</strong></span>
<br>
<br>
<strong>Información Adicional</strong>
Expand Down
4 changes: 2 additions & 2 deletions tests/Report/HtmlReportTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private function getInvoice()

$legend = new Legend();
$legend->setCode('1000')
->setValue('SON DOSCIENTOS TREINTA Y SEIS CON 00/100');
->setValue('SON DOSCIENTOS TREINTA Y SEIS CON 00/100 SOLES');

$items = array_merge([$detail1, $detail2], $this->getItems($detail1, 6));
$invoice->setDetails($items)
Expand Down Expand Up @@ -133,7 +133,7 @@ private function getNote()

$legend = new Legend();
$legend->setCode('1000')
->setValue('SON DOSCIENTOS TREINTA Y SEIS CON 00/100');
->setValue('SON DOSCIENTOS TREINTA Y SEIS CON 00/100 SOLES');

$items = $this->getItems($detail1, 6);
$note->setDetails($items)
Expand Down

0 comments on commit caabbd7

Please sign in to comment.