@@ -441,7 +441,7 @@ |
||
441 | 441 | $this->pTextBox($x, $y, $maxW, $maxH); |
442 | 442 | |
443 | 443 | |
444 | - $aFont = array( |
|
444 | + $aFont = array( |
|
445 | 445 | 'font' => $this->fontePadrao, |
446 | 446 | 'size' => 9, |
447 | 447 | 'style' => 'B' |
@@ -56,18 +56,18 @@ |
||
56 | 56 | private $infCanc; |
57 | 57 | private $retCancCte; |
58 | 58 | |
59 | - /** |
|
60 | - *__construct |
|
61 | - * @param string $docXML Arquivo XML da cce |
|
62 | - * @param string $sOrientacao (Opcional) Orientação da impressão P-retrato L-Paisagem |
|
63 | - * @param string $sPapel Tamanho do papel (Ex. A4) |
|
64 | - * @param string $sPathLogo Caminho para o arquivo do logo |
|
65 | - * @param string $sDestino Estabelece a direção do envio do documento PDF I-browser D-browser com download S- |
|
66 | - * @param string $sDirPDF Caminho para o diretorio de armazenamento dos arquivos PDF |
|
67 | - * @param string $fonteDACTE Nome da fonte alternativa do DActe |
|
68 | - * @param array $aEnd array com o endereço do emitente |
|
69 | - * @param number $mododebug 1-SIM e 0-Não (0 default) |
|
70 | - */ |
|
59 | + /** |
|
60 | + *__construct |
|
61 | + * @param string $docXML Arquivo XML da cce |
|
62 | + * @param string $sOrientacao (Opcional) Orientação da impressão P-retrato L-Paisagem |
|
63 | + * @param string $sPapel Tamanho do papel (Ex. A4) |
|
64 | + * @param string $sPathLogo Caminho para o arquivo do logo |
|
65 | + * @param string $sDestino Estabelece a direção do envio do documento PDF I-browser D-browser com download S- |
|
66 | + * @param string $sDirPDF Caminho para o diretorio de armazenamento dos arquivos PDF |
|
67 | + * @param string $fonteDACTE Nome da fonte alternativa do DActe |
|
68 | + * @param array $aEnd array com o endereço do emitente |
|
69 | + * @param number $mododebug 1-SIM e 0-Não (0 default) |
|
70 | + */ |
|
71 | 71 | public function __construct( |
72 | 72 | $docXML = '', |
73 | 73 | $sOrientacao = '', |
@@ -223,8 +223,8 @@ |
||
223 | 223 | //retorna o ID na NFe |
224 | 224 | if ($classPdf!==false) { |
225 | 225 | $aR = [ |
226 | - 'id'=>str_replace('NFe', '', $this->infNFe->getAttribute("Id")), |
|
227 | - 'classe_PDF'=>$this->pdf |
|
226 | + 'id'=>str_replace('NFe', '', $this->infNFe->getAttribute("Id")), |
|
227 | + 'classe_PDF'=>$this->pdf |
|
228 | 228 | ]; |
229 | 229 | return $aR; |
230 | 230 | } else { |
@@ -597,7 +597,7 @@ discard block |
||
597 | 597 | $this->textoAdic .= ". \r\n"; |
598 | 598 | } |
599 | 599 | $this->textoAdic .= "LOCAL DE ENTREGA : ".$txRetCNPJ.'-'.$txRetxLgr.', '.$txRetnro.' '.$txRetxCpl. |
600 | - ' - '.$txRetxBairro.' '.$txRetxMun.' - '.$txRetUF."\r\n"; |
|
600 | + ' - '.$txRetxBairro.' '.$txRetxMun.' - '.$txRetUF."\r\n"; |
|
601 | 601 | } |
602 | 602 | //informações adicionais |
603 | 603 | $this->textoAdic .= $this->pGeraInformacoesDasNotasReferenciadas(); |
@@ -771,8 +771,8 @@ discard block |
||
771 | 771 | //retorna o ID na NFe |
772 | 772 | if ($classPdf!==false) { |
773 | 773 | $aR = array( |
774 | - 'id'=>str_replace('NFe', '', $this->infNFe->getAttribute("Id")), |
|
775 | - 'classe_PDF'=>$this->pdf); |
|
774 | + 'id'=>str_replace('NFe', '', $this->infNFe->getAttribute("Id")), |
|
775 | + 'classe_PDF'=>$this->pdf); |
|
776 | 776 | return $aR; |
777 | 777 | } else { |
778 | 778 | return str_replace('NFe', '', $this->infNFe->getAttribute("Id")); |
@@ -981,7 +981,7 @@ discard block |
||
981 | 981 | $oldX = $x; |
982 | 982 | $oldY = $y; |
983 | 983 | if ($this->orientacao == 'P') { |
984 | - $maxW = $this->wPrint; |
|
984 | + $maxW = $this->wPrint; |
|
985 | 985 | } else { |
986 | 986 | if ($pag == 1) { // primeira página |
987 | 987 | $maxW = $this->wPrint - $this->wCanhoto; |
@@ -1300,8 +1300,8 @@ discard block |
||
1300 | 1300 | $w = $maxW-(2*$x); |
1301 | 1301 | $this->pdf->SetTextColor(200, 200, 200); |
1302 | 1302 | $texto = "DANFE impresso em contingência -\n". |
1303 | - "DPEC regularmente recebido pela Receita\n". |
|
1304 | - "Federal do Brasil"; |
|
1303 | + "DPEC regularmente recebido pela Receita\n". |
|
1304 | + "Federal do Brasil"; |
|
1305 | 1305 | $aFont = array('font'=>$this->fontePadrao, 'size'=>48, 'style'=>'B'); |
1306 | 1306 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
1307 | 1307 | $this->pdf->SetTextColor(0, 0, 0); |
@@ -1588,13 +1588,13 @@ discard block |
||
1588 | 1588 | return ($y + $h); |
1589 | 1589 | } //fim da função destinatarioDANFE |
1590 | 1590 | |
1591 | - /** |
|
1592 | - * pGetTextoFatura |
|
1593 | - * Gera a String do Texto da Fatura |
|
1594 | - * |
|
1595 | - * @name getTextoFatura |
|
1596 | - * @return a String com o texto ou ""; |
|
1597 | - */ |
|
1591 | + /** |
|
1592 | + * pGetTextoFatura |
|
1593 | + * Gera a String do Texto da Fatura |
|
1594 | + * |
|
1595 | + * @name getTextoFatura |
|
1596 | + * @return a String com o texto ou ""; |
|
1597 | + */ |
|
1598 | 1598 | protected function pGetTextoFatura() |
1599 | 1599 | { |
1600 | 1600 | if (isset($this->cobr)) { |
@@ -1618,13 +1618,13 @@ discard block |
||
1618 | 1618 | return ""; |
1619 | 1619 | } //fim getTextoFatura |
1620 | 1620 | |
1621 | - /** |
|
1622 | - * pSizeExtraTextoFatura |
|
1623 | - * Calcula o espaço ocupado pelo texto da fatura. Este espaço só é utilizado quando não houver duplicata. |
|
1624 | - * |
|
1625 | - * @name pSizeExtraTextoFatura |
|
1626 | - * @return integer |
|
1627 | - */ |
|
1621 | + /** |
|
1622 | + * pSizeExtraTextoFatura |
|
1623 | + * Calcula o espaço ocupado pelo texto da fatura. Este espaço só é utilizado quando não houver duplicata. |
|
1624 | + * |
|
1625 | + * @name pSizeExtraTextoFatura |
|
1626 | + * @return integer |
|
1627 | + */ |
|
1628 | 1628 | protected function pSizeExtraTextoFatura() |
1629 | 1629 | { |
1630 | 1630 | $textoFatura = $this->pGetTextoFatura(); |
@@ -2301,7 +2301,7 @@ discard block |
||
2301 | 2301 | $w4 = round($w*0.05, 0); |
2302 | 2302 | $texto = 'O/CSOSN';//Regime do Simples CRT = 1 ou CRT = 2 |
2303 | 2303 | if ($this->pSimpleGetValue($this->emit, 'CRT') == '3') { |
2304 | - $texto = 'O/CST';//Regime Normal |
|
2304 | + $texto = 'O/CST';//Regime Normal |
|
2305 | 2305 | } |
2306 | 2306 | $aFont = array('font'=>$this->fontePadrao, 'size'=>6, 'style'=>''); |
2307 | 2307 | $this->pTextBox($x, $y, $w4, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
@@ -2619,9 +2619,9 @@ discard block |
||
2619 | 2619 | //DADOS ADICIONAIS |
2620 | 2620 | $texto = "DADOS ADICIONAIS"; |
2621 | 2621 | if ($this->orientacao == 'P') { |
2622 | - $w = $this->wPrint; |
|
2622 | + $w = $this->wPrint; |
|
2623 | 2623 | } else { |
2624 | - $w = $this->wPrint-$this->wCanhoto; |
|
2624 | + $w = $this->wPrint-$this->wCanhoto; |
|
2625 | 2625 | } |
2626 | 2626 | $aFont = array('font'=>$this->fontePadrao, 'size'=>7, 'style'=>'B'); |
2627 | 2627 | $this->pTextBox($x, $y, $w, 8, $texto, $aFont, 'T', 'L', 0, ''); |
@@ -2701,10 +2701,10 @@ discard block |
||
2701 | 2701 | protected function pRodape($x, $y) |
2702 | 2702 | { |
2703 | 2703 | if ($this->orientacao == 'P') { |
2704 | - $w = $this->wPrint; |
|
2704 | + $w = $this->wPrint; |
|
2705 | 2705 | } else { |
2706 | - $w = $this->wPrint-$this->wCanhoto; |
|
2707 | - $x = $this->wCanhoto; |
|
2706 | + $w = $this->wPrint-$this->wCanhoto; |
|
2707 | + $x = $this->wCanhoto; |
|
2708 | 2708 | } |
2709 | 2709 | $aFont = array('font'=>$this->fontePadrao, 'size'=>6, 'style'=>'I'); |
2710 | 2710 | $texto = "Impresso em ". date('d/m/Y') . " as " . date('H:i:s'); |
@@ -795,15 +795,15 @@ |
||
795 | 795 | $this->setDrawColor(0); |
796 | 796 | } |
797 | 797 | |
798 | - /** |
|
799 | - * Desenha uma linha vertical tracejada com o FPDF |
|
800 | - * @param number $x Posição horizontal inicial, em mm |
|
801 | - * @param number $y Posição vertical inicial, em mm |
|
802 | - * @param number $w Comprimento da linha, em mm |
|
803 | - * @param number $yfinal Espessura da linha, em mm |
|
804 | - * @param number $n Numero de traços na seção da linha com o comprimento $w |
|
805 | - * @return none |
|
806 | - */ |
|
798 | + /** |
|
799 | + * Desenha uma linha vertical tracejada com o FPDF |
|
800 | + * @param number $x Posição horizontal inicial, em mm |
|
801 | + * @param number $y Posição vertical inicial, em mm |
|
802 | + * @param number $w Comprimento da linha, em mm |
|
803 | + * @param number $yfinal Espessura da linha, em mm |
|
804 | + * @param number $n Numero de traços na seção da linha com o comprimento $w |
|
805 | + * @return none |
|
806 | + */ |
|
807 | 807 | public function dashedVLine($x, $y, $w, $yfinal, $n) |
808 | 808 | { |
809 | 809 | $this->setLineWidth($w); |