NFePHP\NFe\MakeNFe::tagprocRef PHP Method

tagprocRef() public method

tagprocRef Grupo Processo referenciado Z10 pai Z01 (NT2012.003) tag NFe/infNFe/procRef (opcional) O método taginfAdic deve ter sido carregado antes
public tagprocRef ( string $nProc = '', string $indProc = '' ) : DOMElement
$nProc string
$indProc string
return DOMElement
    public function tagprocRef($nProc = '', $indProc = '')
    {
        $this->zTaginfAdic();
        $procRef = $this->dom->createElement("procRef");
        $this->dom->addChild($procRef, "nProc", $nProc, true, "Identificador do processo ou ato concessório");
        $this->dom->addChild($procRef, "indProc", $indProc, true, "Indicador da origem do processo");
        $this->aProcRef[] = $procRef;
        $this->dom->appChild($this->infAdic, $procRef, '');
        return $procRef;
    }

Usage Example

Example #1
0
 /**
  * z10Entity
  * Cria a tag prcRef
  *
  * @param array $aCampos
  */
 protected function z10Entity($aCampos)
 {
     //Z10|nProc|indProc|
     $this->make->tagprocRef($aCampos[1], $aCampos[2]);
 }