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