From 1c8f245cb9b37d2034a6ced21ddf5dd614db088b Mon Sep 17 00:00:00 2001 From: Cleiton Date: Thu, 17 Oct 2024 13:30:11 -0300 Subject: [PATCH] Ajustes na geracao da danfe etiqueta. --- src/NFe/DanfeEtiqueta.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NFe/DanfeEtiqueta.php b/src/NFe/DanfeEtiqueta.php index f62fee7e..22779d52 100644 --- a/src/NFe/DanfeEtiqueta.php +++ b/src/NFe/DanfeEtiqueta.php @@ -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, "(##) #####-####"); @@ -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);