Skip to content

Commit

Permalink
Merge pull request #597 from robmachado/master
Browse files Browse the repository at this point in the history
danfce formas de pagamento em maiusculas
  • Loading branch information
robmachado authored Apr 6, 2024
2 parents af0e33a + 78e04d0 commit 5a68a6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/nfe/fixtures/NFCeProd1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
<pag>
<detPag>
<indPag>0</indPag>
<tPag>01</tPag>
<tPag>19</tPag>
<vPag>0.94</vPag>
</detPag>
<detPag>
Expand Down
6 changes: 4 additions & 2 deletions src/NFe/Traits/TraitBlocoV.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,17 @@ protected function blocoV($y)
'valor' => $valor
];
}
$aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => ''];
$aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => 'B'];
$texto = "FORMA PAGAMENTO";
$this->pdf->textBox($this->margem, $y, $this->wPrint, 4, $texto, $aFont, 'T', 'L', false, '', false);
$texto = "VALOR PAGO R$";
$y1 = $this->pdf->textBox($this->margem, $y, $this->wPrint, 4, $texto, $aFont, 'T', 'R', false, '', false);

$z = $y + $y1;
foreach ($arpgto as $p) {
$aFont = ['font'=> $this->fontePadrao, 'size' => 6, 'style' => ''];
$this->pdf->textBox($this->margem, $z, $this->wPrint, 3, $p['tipo'], $aFont, 'T', 'L', false, '', false);
$aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => ''];
$y2 = $this->pdf->textBox(
$this->margem,
$z,
Expand Down Expand Up @@ -81,7 +83,7 @@ protected function pagType($type)
16 => 'Depósito Bancário',
17 => 'Pagamento Instantâneo (PIX)',
18 => 'Transferência bancária, Carteira Digital',
19 => 'Programa de fidelidade, Cashback, Crédito Virtual',
19 => 'Programa fidelidade, Cashback, Créd Virt',
90 => 'Sem pagamento',
99 => 'Outros',
];
Expand Down

0 comments on commit 5a68a6d

Please sign in to comment.