Skip to content

Commit

Permalink
Ajustes na geracao da danfe etiqueta.
Browse files Browse the repository at this point in the history
  • Loading branch information
icompsoftcleiton committed Oct 17, 2024
1 parent b82d410 commit 1c8f245
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NFe/DanfeEtiqueta.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ protected function bloco4($y)
$destMun = $this->getTagValue($this->enderDest, "xMun");
$destUF = $this->getTagValue($this->enderDest, "UF");
$destFone = $this->getTagValue($this->enderDest, "fone");
$destCep = $this->getTagValue($this->enderDest, "CEP");
if (strlen($destFone) > 0) {
if (strlen($destFone) == 11) {
$emitFone = $this->formatField($destFone, "(##) #####-####");
Expand All @@ -383,7 +384,7 @@ protected function bloco4($y)
}
}
$aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => ''];
$texto = $destLgr . ", " . $destNro;
$texto = "{$destLgr}, {$destNro} - CEP: {$destCep}";
$y += $this->pdf->textBox($this->margem + 5, $y, $this->wPrint, 3, $texto, $aFont, 'T', 'L', false, '', true);
$texto = $destBairro;
$y += $this->pdf->textBox($this->margem + 5, $y, $this->wPrint, 3, $texto, $aFont, 'T', 'L', false, '', true);
Expand Down

0 comments on commit 1c8f245

Please sign in to comment.