@@ -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 = '', |
@@ -794,15 +794,15 @@ |
||
| 794 | 794 | $this->setDrawColor(0); |
| 795 | 795 | } |
| 796 | 796 | |
| 797 | - /** |
|
| 798 | - * Desenha uma linha vertical tracejada com o FPDF |
|
| 799 | - * @param number $x Posição horizontal inicial, em mm |
|
| 800 | - * @param number $y Posição vertical inicial, em mm |
|
| 801 | - * @param number $w Espessura da linha, em mm |
|
| 802 | - * @param number $yfinal posição final |
|
| 803 | - * @param number $n Numero de traços na seção da linha com o comprimento $w |
|
| 804 | - * @return none |
|
| 805 | - */ |
|
| 797 | + /** |
|
| 798 | + * Desenha uma linha vertical tracejada com o FPDF |
|
| 799 | + * @param number $x Posição horizontal inicial, em mm |
|
| 800 | + * @param number $y Posição vertical inicial, em mm |
|
| 801 | + * @param number $w Espessura da linha, em mm |
|
| 802 | + * @param number $yfinal posição final |
|
| 803 | + * @param number $n Numero de traços na seção da linha com o comprimento $w |
|
| 804 | + * @return none |
|
| 805 | + */ |
|
| 806 | 806 | public function dashedVLine($x, $y, $w, $yfinal, $n) |
| 807 | 807 | { |
| 808 | 808 | $this->setLineWidth($w); |
@@ -27,10 +27,10 @@ discard block |
||
| 27 | 27 | * @var string |
| 28 | 28 | */ |
| 29 | 29 | protected $numero_registro_dpec = ''; |
| 30 | - /** |
|
| 31 | - * Parâmetro para exibir ou ocultar os valores do PIS/COFINS. |
|
| 32 | - * @var boolean |
|
| 33 | - */ |
|
| 30 | + /** |
|
| 31 | + * Parâmetro para exibir ou ocultar os valores do PIS/COFINS. |
|
| 32 | + * @var boolean |
|
| 33 | + */ |
|
| 34 | 34 | protected $qCanhoto = 1; |
| 35 | 35 | /** |
| 36 | 36 | * Define a exbição dos valores de PIS e Cofins |
@@ -481,7 +481,7 @@ discard block |
||
| 481 | 481 | $this->textoAdic .= ". \r\n"; |
| 482 | 482 | } |
| 483 | 483 | $this->textoAdic .= "LOCAL DE ENTREGA : ".$txRetCNPJ.'-'.$txRetxLgr.', '.$txRetnro.' '.$txRetxCpl. |
| 484 | - ' - '.$txRetxBairro.' '.$txRetxMun.' - '.$txRetUF."\r\n"; |
|
| 484 | + ' - '.$txRetxBairro.' '.$txRetxMun.' - '.$txRetUF."\r\n"; |
|
| 485 | 485 | } |
| 486 | 486 | //informações adicionais |
| 487 | 487 | $this->textoAdic .= $this->geraInformacoesDasNotasReferenciadas(); |
@@ -901,7 +901,7 @@ discard block |
||
| 901 | 901 | $oldX = $x; |
| 902 | 902 | $oldY = $y; |
| 903 | 903 | if ($this->orientacao == 'P') { |
| 904 | - $maxW = $this->wPrint; |
|
| 904 | + $maxW = $this->wPrint; |
|
| 905 | 905 | } else { |
| 906 | 906 | if ($pag == 1) { // primeira página |
| 907 | 907 | $maxW = $this->wPrint - $this->wCanhoto; |
@@ -1275,8 +1275,8 @@ discard block |
||
| 1275 | 1275 | $w = $maxW-(2*$x); |
| 1276 | 1276 | $this->pdf->SetTextColor(200, 200, 200); |
| 1277 | 1277 | $texto = "DANFE impresso em contingência -\n". |
| 1278 | - "DPEC regularmente recebido pela Receita\n". |
|
| 1279 | - "Federal do Brasil"; |
|
| 1278 | + "DPEC regularmente recebido pela Receita\n". |
|
| 1279 | + "Federal do Brasil"; |
|
| 1280 | 1280 | $aFont = ['font'=>$this->fontePadrao, 'size'=>48, 'style'=>'B']; |
| 1281 | 1281 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
| 1282 | 1282 | $this->pdf->SetTextColor(0, 0, 0); |
@@ -1880,13 +1880,13 @@ discard block |
||
| 1880 | 1880 | return ($y + $h); |
| 1881 | 1881 | } //fim da função localRetiradaDANFE |
| 1882 | 1882 | |
| 1883 | - /** |
|
| 1884 | - * getTextoFatura |
|
| 1885 | - * Gera a String do Texto da Fatura |
|
| 1886 | - * |
|
| 1887 | - * @name getTextoFatura |
|
| 1888 | - * @return uma String com o texto ou ""; |
|
| 1889 | - */ |
|
| 1883 | + /** |
|
| 1884 | + * getTextoFatura |
|
| 1885 | + * Gera a String do Texto da Fatura |
|
| 1886 | + * |
|
| 1887 | + * @name getTextoFatura |
|
| 1888 | + * @return uma String com o texto ou ""; |
|
| 1889 | + */ |
|
| 1890 | 1890 | protected function getTextoFatura() |
| 1891 | 1891 | { |
| 1892 | 1892 | if (isset($this->cobr)) { |
@@ -1917,13 +1917,13 @@ discard block |
||
| 1917 | 1917 | return ""; |
| 1918 | 1918 | } |
| 1919 | 1919 | |
| 1920 | - /** |
|
| 1921 | - * sizeExtraTextoFatura |
|
| 1922 | - * Calcula o espaço ocupado pelo texto da fatura. Este espaço só é utilizado quando não houver duplicata. |
|
| 1923 | - * |
|
| 1924 | - * @name sizeExtraTextoFatura |
|
| 1925 | - * @return integer |
|
| 1926 | - */ |
|
| 1920 | + /** |
|
| 1921 | + * sizeExtraTextoFatura |
|
| 1922 | + * Calcula o espaço ocupado pelo texto da fatura. Este espaço só é utilizado quando não houver duplicata. |
|
| 1923 | + * |
|
| 1924 | + * @name sizeExtraTextoFatura |
|
| 1925 | + * @return integer |
|
| 1926 | + */ |
|
| 1927 | 1927 | protected function sizeExtraTextoFatura() |
| 1928 | 1928 | { |
| 1929 | 1929 | $textoFatura = $this->getTextoFatura(); |
@@ -2103,7 +2103,7 @@ discard block |
||
| 2103 | 2103 | '11'=>'Vale Refeição','12'=>'Vale Presente','13'=>'Vale Combustível', |
| 2104 | 2104 | '14'=>'Duplicata Mercantil','15'=>'Boleto','90'=>'Sem pagamento','99'=>'Outros']; |
| 2105 | 2105 | $bandeira = ['01'=>'Visa','02'=>'Mastercard','03'=>'American','04'=>'Sorocred','05'=>'Diners', |
| 2106 | - '06'=>'Elo','07'=>'Hipercard','08'=>'Aura','09'=>'Cabal','99'=>'Outros']; |
|
| 2106 | + '06'=>'Elo','07'=>'Hipercard','08'=>'Aura','09'=>'Cabal','99'=>'Outros']; |
|
| 2107 | 2107 | foreach ($this->detPag as $k => $d) { |
| 2108 | 2108 | $fPag = !empty($this->detPag->item($k)->getElementsByTagName('tPag')->item(0)->nodeValue) |
| 2109 | 2109 | ? $this->detPag->item($k)->getElementsByTagName('tPag')->item(0)->nodeValue |
@@ -2756,7 +2756,7 @@ discard block |
||
| 2756 | 2756 | $w4 = round($w*0.05, 0); |
| 2757 | 2757 | $texto = 'O/CSOSN';//Regime do Simples CRT = 1 ou CRT = 2 |
| 2758 | 2758 | if ($this->getTagValue($this->emit, 'CRT') == '3') { |
| 2759 | - $texto = 'O/CST';//Regime Normal |
|
| 2759 | + $texto = 'O/CST';//Regime Normal |
|
| 2760 | 2760 | } |
| 2761 | 2761 | $aFont = ['font'=>$this->fontePadrao, 'size'=>6, 'style'=>'']; |
| 2762 | 2762 | $this->pdf->textBox($x, $y, $w4, $h, $texto, $aFont, 'C', 'C', 0, '', false); |
@@ -3146,7 +3146,7 @@ discard block |
||
| 3146 | 3146 | $this->pdf->textBox($x, $yVeic, $w1+40, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 3147 | 3147 | $yVeic += $h; |
| 3148 | 3148 | $texto = 'Tipo.................: ' . ($renavamTiposVeiculos[intval($veiculoTipo)] ?? $veiculoTipo); |
| 3149 | - $this->pdf->textBox($x, $yVeic, $w1+40, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3149 | + $this->pdf->textBox($x, $yVeic, $w1+40, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3150 | 3150 | $yVeic = $y + $h; |
| 3151 | 3151 | $xVeic = $x + 65; |
| 3152 | 3152 | $texto = 'Nº Motor: .........: ' . $veiculoMotor; |
@@ -3280,9 +3280,9 @@ discard block |
||
| 3280 | 3280 | //DADOS ADICIONAIS |
| 3281 | 3281 | $texto = "DADOS ADICIONAIS"; |
| 3282 | 3282 | if ($this->orientacao == 'P') { |
| 3283 | - $w = $this->wPrint; |
|
| 3283 | + $w = $this->wPrint; |
|
| 3284 | 3284 | } else { |
| 3285 | - $w = $this->wPrint-$this->wCanhoto; |
|
| 3285 | + $w = $this->wPrint-$this->wCanhoto; |
|
| 3286 | 3286 | } |
| 3287 | 3287 | $aFont = ['font'=>$this->fontePadrao, 'size'=>7, 'style'=>'B']; |
| 3288 | 3288 | $this->pdf->textBox($x, $y, $w, 8, $texto, $aFont, 'T', 'L', 0, ''); |
@@ -3363,10 +3363,10 @@ discard block |
||
| 3363 | 3363 | |
| 3364 | 3364 | $y = $this->maxH - 4; |
| 3365 | 3365 | if ($this->orientacao == 'P') { |
| 3366 | - $w = $this->wPrint; |
|
| 3366 | + $w = $this->wPrint; |
|
| 3367 | 3367 | } else { |
| 3368 | - $w = $this->wPrint-$this->wCanhoto; |
|
| 3369 | - $x = $this->wCanhoto; |
|
| 3368 | + $w = $this->wPrint-$this->wCanhoto; |
|
| 3369 | + $x = $this->wCanhoto; |
|
| 3370 | 3370 | } |
| 3371 | 3371 | $aFont = ['font'=>$this->fontePadrao, 'size'=>6, 'style'=>'I']; |
| 3372 | 3372 | $texto = "Impresso em ". date('d/m/Y') . " as " . date('H:i:s') |
@@ -782,14 +782,14 @@ discard block |
||
| 782 | 782 | /** |
| 783 | 783 | * |
| 784 | 784 | * |
| 785 | - * @var \DOMNodeList $veicReboque |
|
| 785 | + * @var \DOMNodeList $veicReboque |
|
| 786 | 786 | */ |
| 787 | 787 | $veicReboque = $this->veicReboque; |
| 788 | 788 | foreach ($veicReboque as $item) { |
| 789 | 789 | /** |
| 790 | 790 | * |
| 791 | 791 | * |
| 792 | - * @var \DOMElement $item |
|
| 792 | + * @var \DOMElement $item |
|
| 793 | 793 | */ |
| 794 | 794 | $altura += 4; |
| 795 | 795 | $texto = $item->getElementsByTagName('placa')->item(0)->nodeValue; |
@@ -810,12 +810,12 @@ discard block |
||
| 810 | 810 | $this->pdf->textBox($x1, $y + 4, $x2, 10, $texto, $aFont, 'T', 'C', 0, '', false); |
| 811 | 811 | $altura = $y + 4; |
| 812 | 812 | /** |
| 813 | - * @var \DOMNodeList $veicTracao |
|
| 813 | + * @var \DOMNodeList $veicTracao |
|
| 814 | 814 | */ |
| 815 | 815 | $veicTracao = $this->veicTracao->getElementsByTagName('prop'); |
| 816 | 816 | foreach ($veicTracao as $item) { |
| 817 | 817 | /** |
| 818 | - * @var \DOMElement $item |
|
| 818 | + * @var \DOMElement $item |
|
| 819 | 819 | */ |
| 820 | 820 | $DOMNodeList = $item->getElementsByTagName('RNTRC'); |
| 821 | 821 | if ($DOMNodeList->length > 0) { |
@@ -827,14 +827,14 @@ discard block |
||
| 827 | 827 | /** |
| 828 | 828 | * |
| 829 | 829 | * |
| 830 | - * @var \DOMNodeList $veicReboque |
|
| 830 | + * @var \DOMNodeList $veicReboque |
|
| 831 | 831 | */ |
| 832 | 832 | $veicReboque = $this->veicReboque; |
| 833 | 833 | foreach ($veicReboque as $item) { |
| 834 | 834 | /** |
| 835 | 835 | * |
| 836 | 836 | * |
| 837 | - * @var \DOMElement $item |
|
| 837 | + * @var \DOMElement $item |
|
| 838 | 838 | */ |
| 839 | 839 | $DOMNodeList = $item->getElementsByTagName('RNTRC'); |
| 840 | 840 | if ($DOMNodeList->length > 0) { |