| @@ 1049-1076 (lines=28) @@ | ||
| 1046 | $this->pdf->SetTextColor(0, 0, 0); |
|
| 1047 | } |
|
| 1048 | $cStat = $this->pSimpleGetValue($this->cteProc, "cStat"); |
|
| 1049 | if ($cStat == '110' || |
|
| 1050 | $cStat == '301' || |
|
| 1051 | $cStat == '302' || |
|
| 1052 | $this->situacao_externa == self::NFEPHP_SITUACAO_EXTERNA_DENEGADA |
|
| 1053 | ) { |
|
| 1054 | //110 Denegada |
|
| 1055 | $x = 10; |
|
| 1056 | $y = $this->hPrint - 130; |
|
| 1057 | $h = 25; |
|
| 1058 | $w = $maxW - (2 * $x); |
|
| 1059 | $this->pdf->SetTextColor(90, 90, 90); |
|
| 1060 | $texto = "CTe USO DENEGADO"; |
|
| 1061 | $aFont = array( |
|
| 1062 | 'font' => $this->fontePadrao, |
|
| 1063 | 'size' => 48, |
|
| 1064 | 'style' => 'B'); |
|
| 1065 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 1066 | $y += $h; |
|
| 1067 | $h = 5; |
|
| 1068 | $w = $maxW - (2 * $x); |
|
| 1069 | $texto = "SEM VALOR FISCAL"; |
|
| 1070 | $aFont = array( |
|
| 1071 | 'font' => $this->fontePadrao, |
|
| 1072 | 'size' => 48, |
|
| 1073 | 'style' => 'B'); |
|
| 1074 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 1075 | $this->pdf->SetTextColor(0, 0, 0); |
|
| 1076 | } |
|
| 1077 | //indicar sem valor |
|
| 1078 | if ($tpAmb != 1 && $this->preVisualizar=='0') { // caso não seja uma DA de produção |
|
| 1079 | $x = 10; |
|
| @@ 1039-1066 (lines=28) @@ | ||
| 1036 | $this->pdf->SetTextColor(0, 0, 0); |
|
| 1037 | } |
|
| 1038 | $cStat = $this->pSimpleGetValue($this->cteProc, "cStat"); |
|
| 1039 | if ($cStat == '110' || |
|
| 1040 | $cStat == '301' || |
|
| 1041 | $cStat == '302' || |
|
| 1042 | $this->situacao_externa == self::NFEPHP_SITUACAO_EXTERNA_DENEGADA |
|
| 1043 | ) { |
|
| 1044 | //110 Denegada |
|
| 1045 | $x = 10; |
|
| 1046 | $y = $this->hPrint - 130; |
|
| 1047 | $h = 25; |
|
| 1048 | $w = $maxW - (2 * $x); |
|
| 1049 | $this->pdf->SetTextColor(90, 90, 90); |
|
| 1050 | $texto = "CTe USO DENEGADO"; |
|
| 1051 | $aFont = array( |
|
| 1052 | 'font' => $this->fontePadrao, |
|
| 1053 | 'size' => 48, |
|
| 1054 | 'style' => 'B'); |
|
| 1055 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 1056 | $y += $h; |
|
| 1057 | $h = 5; |
|
| 1058 | $w = $maxW - (2 * $x); |
|
| 1059 | $texto = "SEM VALOR FISCAL"; |
|
| 1060 | $aFont = array( |
|
| 1061 | 'font' => $this->fontePadrao, |
|
| 1062 | 'size' => 48, |
|
| 1063 | 'style' => 'B'); |
|
| 1064 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 1065 | $this->pdf->SetTextColor(0, 0, 0); |
|
| 1066 | } |
|
| 1067 | //indicar sem valor |
|
| 1068 | if ($tpAmb != 1 && $this->preVisualizar=='0') { // caso não seja uma DA de produção |
|
| 1069 | $x = 10; |
|