tagide() public method

tgaide Informações de identificação da NF-e B01 pai A01 tag NFe/infNFe/ide
public tagide ( string $cUF = '', string $cNF = '', string $natOp = '', string $indPag = '', string $mod = '', string $serie = '', string $nNF = '', string $dhEmi = '', string $dhSaiEnt = '', string $tpNF = '', string $idDest = '', string $cMunFG = '', string $tpImp = '', string $tpEmis = '', string $cDV = '', string $tpAmb = '', string $finNFe = '', string $indFinal = '0', string $indPres = '', string $procEmi = '', string $verProc = '', string $dhCont = '', string $xJust = '' ) : DOMElement
$cUF string
$cNF string
$natOp string
$indPag string
$mod string
$serie string
$nNF string
$dhEmi string
$dhSaiEnt string
$tpNF string
$idDest string
$cMunFG string
$tpImp string
$tpEmis string
$cDV string
$tpAmb string
$finNFe string
$indFinal string
$indPres string
$procEmi string
$verProc string
$dhCont string
$xJust string
return DOMElement
示例#1
0
 /**
  * bEntity
  * Cria a tag ide
  *
  * @param array $aCampos
  */
 protected function bEntity($aCampos)
 {
     //B|cUF|cNF|natOp|indPag|mod|serie|nNF|dhEmi
     // |dhSaiEnt|tpNF|idDest|cMunFG|tpImp|tpEmis
     // |cDV|tp Amb|finNFe|indFinal
     // |indPres|procEmi|verProc|dhCont|xJust|
     $this->make->tagide($aCampos[1], $aCampos[2], $aCampos[3], $aCampos[4], $aCampos[5], $aCampos[6], $aCampos[7], $aCampos[8], $aCampos[9], $aCampos[10], $aCampos[11], $aCampos[12], $aCampos[13], $aCampos[14], $aCampos[15], $aCampos[16], $aCampos[17], $aCampos[18], $aCampos[19], $aCampos[20], $aCampos[21], $aCampos[22], $aCampos[23]);
 }
//entrada em contingência AAAA-MM-DDThh:mm:ssTZD
$xJust = '';
//Justificativa da entrada em contingência
//Numero e versão da NFe (infNFe)
//$chave = '35140258716523000119550000000280051760377394';
$tempData = explode("-", $dhEmi);
$ano = $tempData[0] - 2000;
$mes = $tempData[1];
$cnpj = '58716523000119';
$chave = $nfe->montaChave($cUF, $ano, $mes, $cnpj, $mod, $serie, $nNF, $tpEmis, $cNF);
$versao = '3.10';
$resp = $nfe->taginfNFe($chave, $versao);
$cDV = substr($chave, -1);
//digito verificador
//tag IDE
$resp = $nfe->tagide($cUF, $cNF, $natOp, $indPag, $mod, $serie, $nNF, $dhEmi, $dhSaiEnt, $tpNF, $idDest, $cMunFG, $tpImp, $tpEmis, $cDV, $tpAmb, $finNFe, $indFinal, $indPres, $procEmi, $verProc, $dhCont, $xJust);
//refNFe NFe referenciada
//$refNFe = '12345678901234567890123456789012345678901234';
//$resp = $nfe->tagrefNFe($refNFe);
//refNF Nota Fiscal 1A referenciada
//$cUF = '35';
//$AAMM = '1312';
//$CNPJ = '12345678901234';
//$mod = '1A';
//$serie = '0';
//$nNF = '1234';
//$resp = $nfe->tagrefNF($cUF, $AAMM, $CNPJ, $mod, $serie, $nNF);
//NFPref Nota Fiscal Produtor Rural referenciada
//$cUF = '35';
//$AAMM = '1312';
//$CNPJ = '12345678901234';