NFePHP\NFe\MakeNFe::tagrefECF PHP Method

tagrefECF() public method

tagrefECF Informações do Cupom Fiscal referenciado BA20 pai BA01 tag NFe/infNFe/ide/NFref/refECF
public tagrefECF ( string $mod = '', string $nECF = '', string $nCOO = '' ) : DOMElement
$mod string
$nECF string
$nCOO string
return DOMElement
    public function tagrefECF($mod = '', $nECF = '', $nCOO = '')
    {
        $identificador = 'BA20 <refECF> - ';
        $num = $this->zTagNFref();
        $refECF = $this->dom->createElement("refECF");
        $this->dom->addChild($refECF, "mod", $mod, true, $identificador . "Modelo do Documento Fiscal");
        $this->dom->addChild($refECF, "nECF", $nECF, true, $identificador . "Número de ordem sequencial do ECF");
        $this->dom->addChild($refECF, "nCOO", $nCOO, true, $identificador . "Número do Contador de Ordem de Operação - COO");
        $this->dom->appChild($this->aNFref[$num - 1], $refECF);
        return $refECF;
    }

Usage Example

Example #1
0
 /**
  * b20Entity
  * Cria a tag refECF
  *
  * @param array $aCampos
  */
 protected function ba20Entity($aCampos)
 {
     //BA20|mod|nECF|nCOO|
     $this->make->tagrefECF($aCampos[1], $aCampos[2], $aCampos[3]);
 }