| @@ 877-932 (lines=56) @@ | ||
| 874 | * @param stdClass $std |
|
| 875 | * @return DOMElement |
|
| 876 | */ |
|
| 877 | public function tagperi(stdClass $std) |
|
| 878 | { |
|
| 879 | $possible = [ |
|
| 880 | 'nONU', |
|
| 881 | 'xNomeAE', |
|
| 882 | 'xClaRisco', |
|
| 883 | 'grEmb', |
|
| 884 | 'qTotProd', |
|
| 885 | 'qVolTipo' |
|
| 886 | ]; |
|
| 887 | $std = $this->equilizeParameters($std, $possible); |
|
| 888 | $peri = $this->dom->createElement("peri"); |
|
| 889 | $this->dom->addChild( |
|
| 890 | $peri, |
|
| 891 | "nONU", |
|
| 892 | $std->nONU, |
|
| 893 | true, |
|
| 894 | "Número ONU/UN" |
|
| 895 | ); |
|
| 896 | $this->dom->addChild( |
|
| 897 | $peri, |
|
| 898 | "xNomeAE", |
|
| 899 | $std->xNomeAE, |
|
| 900 | true, |
|
| 901 | "Nome apropriado para embarque do produto" |
|
| 902 | ); |
|
| 903 | $this->dom->addChild( |
|
| 904 | $peri, |
|
| 905 | "xClaRisco", |
|
| 906 | $std->xClaRisco, |
|
| 907 | true, |
|
| 908 | "Classe ou subclasse/divisão, e risco subsidiário/risco secundário" |
|
| 909 | ); |
|
| 910 | $this->dom->addChild( |
|
| 911 | $peri, |
|
| 912 | "grEmb", |
|
| 913 | $std->grEmb, |
|
| 914 | true, |
|
| 915 | "Grupo de Embalagem" |
|
| 916 | ); |
|
| 917 | $this->dom->addChild( |
|
| 918 | $peri, |
|
| 919 | "qTotProd", |
|
| 920 | $std->qTotProd, |
|
| 921 | true, |
|
| 922 | "Quantidade total por produto" |
|
| 923 | ); |
|
| 924 | $this->dom->addChild( |
|
| 925 | $peri, |
|
| 926 | "qVolTipo", |
|
| 927 | $std->qVolTipo, |
|
| 928 | true, |
|
| 929 | "Quantidade e Tipo de volumes" |
|
| 930 | ); |
|
| 931 | return $peri; |
|
| 932 | } |
|
| 933 | ||
| 934 | /** |
|
| 935 | * taginfNFe |
|
| @@ 1244-1300 (lines=57) @@ | ||
| 1241 | * @param stdClass $std |
|
| 1242 | * @return DOMElement |
|
| 1243 | */ |
|
| 1244 | public function tagtot(stdClass $std) |
|
| 1245 | { |
|
| 1246 | $possible = [ |
|
| 1247 | 'qCTe', |
|
| 1248 | 'qNFe', |
|
| 1249 | 'qMDFe', |
|
| 1250 | 'vCarga', |
|
| 1251 | 'cUnid', |
|
| 1252 | 'qCarga' |
|
| 1253 | ]; |
|
| 1254 | $std = $this->equilizeParameters($std, $possible); |
|
| 1255 | $tot = $this->dom->createElement("tot"); |
|
| 1256 | $this->dom->addChild( |
|
| 1257 | $tot, |
|
| 1258 | "qCTe", |
|
| 1259 | $std->qCTe, |
|
| 1260 | false, |
|
| 1261 | "Quantidade total de CT-e relacionados no Manifesto" |
|
| 1262 | ); |
|
| 1263 | $this->dom->addChild( |
|
| 1264 | $tot, |
|
| 1265 | "qNFe", |
|
| 1266 | $std->qNFe, |
|
| 1267 | false, |
|
| 1268 | "Quantidade total de NF-e relacionados no Manifesto" |
|
| 1269 | ); |
|
| 1270 | $this->dom->addChild( |
|
| 1271 | $tot, |
|
| 1272 | "qMDFe", |
|
| 1273 | $std->qMDFe, |
|
| 1274 | false, |
|
| 1275 | "Quantidade total de MDF-e relacionados no Manifesto" |
|
| 1276 | ); |
|
| 1277 | $this->dom->addChild( |
|
| 1278 | $tot, |
|
| 1279 | "vCarga", |
|
| 1280 | $std->vCarga, |
|
| 1281 | true, |
|
| 1282 | "Valor total da mercadoria/carga transportada" |
|
| 1283 | ); |
|
| 1284 | $this->dom->addChild( |
|
| 1285 | $tot, |
|
| 1286 | "cUnid", |
|
| 1287 | $std->cUnid, |
|
| 1288 | true, |
|
| 1289 | "Código da unidade de medida do Peso Bruto da Carga / Mercadoria Transportada" |
|
| 1290 | ); |
|
| 1291 | $this->dom->addChild( |
|
| 1292 | $tot, |
|
| 1293 | "qCarga", |
|
| 1294 | $std->qCarga, |
|
| 1295 | true, |
|
| 1296 | "Peso Bruto Total da Carga / Mercadoria Transportada" |
|
| 1297 | ); |
|
| 1298 | $this->tot = $tot; |
|
| 1299 | return $tot; |
|
| 1300 | } |
|
| 1301 | ||
| 1302 | /** |
|
| 1303 | * tagLacres |
|