| @@ 752-774 (lines=23) @@ | ||
| 749 | $this->dom->appChild($valePed, $disp, 'Falta tag "disp"'); |
|
| 750 | $this->dom->appChild($infANTT, $valePed, 'Falta tag "valePed"'); |
|
| 751 | } |
|
| 752 | if ($std->infContratante != null) { |
|
| 753 | $possible = [ |
|
| 754 | 'CPF', |
|
| 755 | 'CNPJ' |
|
| 756 | ]; |
|
| 757 | $stdinfContratante = $this->equilizeParameters($std->infContratante, $possible); |
|
| 758 | $infContratante = $this->dom->createElement("infContratante"); |
|
| 759 | $this->dom->addChild( |
|
| 760 | $infContratante, |
|
| 761 | "CPF", |
|
| 762 | $stdinfContratante->CPF, |
|
| 763 | false, |
|
| 764 | "CPF" |
|
| 765 | ); |
|
| 766 | $this->dom->addChild( |
|
| 767 | $infContratante, |
|
| 768 | "CNPJ", |
|
| 769 | $stdinfContratante->CNPJ, |
|
| 770 | false, |
|
| 771 | "CNPJ" |
|
| 772 | ); |
|
| 773 | $this->dom->appChild($infANTT, $infContratante, 'Falta tag "infContratante"'); |
|
| 774 | } |
|
| 775 | ||
| 776 | $this->dom->appChild($rodo, $infANTT, 'Falta tag "ide"'); |
|
| 777 | $this->rodo = $rodo; |
|
| @@ 835-857 (lines=23) @@ | ||
| 832 | $peri = $this->tagperi($std->peri); |
|
| 833 | $this->dom->appChild($infCTe, $peri, 'Falta tag "$peri"'); |
|
| 834 | } |
|
| 835 | if ($std->infEntregaParcial != null) { |
|
| 836 | $possible = [ |
|
| 837 | 'qtdTotal', |
|
| 838 | 'qtdParcial' |
|
| 839 | ]; |
|
| 840 | $stdinfEntregaParcial = $this->equilizeParameters($std->infEntregaParcial, $possible); |
|
| 841 | $infEntregaParcial = $this->dom->createElement("infEntregaParcial"); |
|
| 842 | $this->dom->addChild( |
|
| 843 | $infEntregaParcial, |
|
| 844 | "qtdTotal", |
|
| 845 | $stdinfEntregaParcial->qtdTotal, |
|
| 846 | true, |
|
| 847 | "Quantidade total de volumes" |
|
| 848 | ); |
|
| 849 | $this->dom->addChild( |
|
| 850 | $infEntregaParcial, |
|
| 851 | "qtdParcial", |
|
| 852 | $stdinfEntregaParcial->qtdParcial, |
|
| 853 | true, |
|
| 854 | "Quantidade de volumes enviados no MDF-e" |
|
| 855 | ); |
|
| 856 | $this->dom->appChild($infCTe, $infEntregaParcial, 'Falta tag "$peri"'); |
|
| 857 | } |
|
| 858 | $this->dom->appChild($this->aInfMunDescarga, $infCTe, 'Falta tag "infCTe"'); |
|
| 859 | return $infCTe; |
|
| 860 | } |
|
| @@ 1214-1236 (lines=23) @@ | ||
| 1211 | "Número do CPF do responsável pelo seguro" |
|
| 1212 | ); |
|
| 1213 | $this->dom->appChild($seg, $infResp, 'Falta tag "infResp"'); |
|
| 1214 | if ($std->infSeg != null) { |
|
| 1215 | $possible = [ |
|
| 1216 | 'xSeg', |
|
| 1217 | 'CNPJ' |
|
| 1218 | ]; |
|
| 1219 | $stdinfSeg = $this->equilizeParameters($std->infSeg, $possible); |
|
| 1220 | $infSeg = $this->dom->createElement("infSeg"); |
|
| 1221 | $this->dom->addChild( |
|
| 1222 | $infSeg, |
|
| 1223 | "xSeg", |
|
| 1224 | $stdinfSeg->xSeg, |
|
| 1225 | true, |
|
| 1226 | "Nome da Seguradora" |
|
| 1227 | ); |
|
| 1228 | $this->dom->addChild( |
|
| 1229 | $infSeg, |
|
| 1230 | "CNPJ", |
|
| 1231 | $stdinfSeg->CNPJ, |
|
| 1232 | false, |
|
| 1233 | "Número do CNPJ da seguradora" |
|
| 1234 | ); |
|
| 1235 | $this->dom->appChild($seg, $infSeg, 'Falta tag "infSeg"'); |
|
| 1236 | } |
|
| 1237 | $this->dom->addChild( |
|
| 1238 | $seg, |
|
| 1239 | "nApol", |
|
| @@ 1911-1933 (lines=23) @@ | ||
| 1908 | $this->dom->appChild($veicTracao, $prop, 'Falta tag "prop"'); |
|
| 1909 | } |
|
| 1910 | ||
| 1911 | if ($std->condutor != null) { |
|
| 1912 | $possible = [ |
|
| 1913 | 'xNome', |
|
| 1914 | 'CPF' |
|
| 1915 | ]; |
|
| 1916 | $stdcondutor = $this->equilizeParameters($std->condutor, $possible); |
|
| 1917 | $condutor = $this->dom->createElement("condutor"); |
|
| 1918 | $this->dom->addChild( |
|
| 1919 | $condutor, |
|
| 1920 | "xNome", |
|
| 1921 | $stdcondutor->xNome, |
|
| 1922 | true, |
|
| 1923 | "Nome do Condutor " |
|
| 1924 | ); |
|
| 1925 | $this->dom->addChild( |
|
| 1926 | $condutor, |
|
| 1927 | "CPF", |
|
| 1928 | $stdcondutor->CPF, |
|
| 1929 | true, |
|
| 1930 | "CPF do Condutor " |
|
| 1931 | ); |
|
| 1932 | $this->dom->appChild($veicTracao, $condutor, 'Falta tag "condutor"'); |
|
| 1933 | } |
|
| 1934 | $this->dom->addChild( |
|
| 1935 | $veicTracao, |
|
| 1936 | "tpRod", |
|