NFePHP\NFe\MakeNFe::tagrefNFP PHP Метод

tagrefNFP() публичный Метод

tagrefNFP Informações da NF de produtor rural referenciada BA10 pai BA01 tag NFe/infNFe/ide/NFref/refNFP
public tagrefNFP ( string $cUF = '', string $aamm = '', string $cnpj = '', string $cpf = '', string $numIE = '', string $mod = '', string $serie = '', string $nNF = '' ) : DOMElement
$cUF string
$aamm string
$cnpj string
$cpf string
$numIE string
$mod string
$serie string
$nNF string
Результат DOMElement
    public function tagrefNFP($cUF = '', $aamm = '', $cnpj = '', $cpf = '', $numIE = '', $mod = '', $serie = '', $nNF = '')
    {
        $identificador = 'BA10 <refNFP> - ';
        $num = $this->zTagNFref();
        $refNFP = $this->dom->createElement("refNFP");
        $this->dom->addChild($refNFP, "cUF", $cUF, true, $identificador . "Código da UF do emitente");
        $this->dom->addChild($refNFP, "AAMM", $aamm, true, $identificador . "AAMM da emissão da NF de produtor");
        $this->dom->addChild($refNFP, "CNPJ", $cnpj, false, $identificador . "Informar o CNPJ do emitente da NF de produtor");
        $this->dom->addChild($refNFP, "CPF", $cpf, false, $identificador . "Informar o CPF do emitente da NF de produtor");
        $this->dom->addChild($refNFP, "IE", $numIE, true, $identificador . "Informar a IE do emitente da NF de Produtor ou o literal 'ISENTO'");
        $this->dom->addChild($refNFP, "mod", $mod, true, $identificador . "Modelo do Documento Fiscal");
        $this->dom->addChild($refNFP, "serie", $serie, true, $identificador . "Série do Documento Fiscal");
        $this->dom->addChild($refNFP, "nNF", $nNF, true, $identificador . "Número do Documento Fiscal");
        $this->dom->appChild($this->aNFref[$num - 1], $refNFP);
        return $refNFP;
    }

Usage Example

Пример #1
0
 /**
  * zLinhaB10Entity
  * Cria a tag refNFP
  *
  * @param array $aCampos
  */
 protected function zLinhaBA10Entity($aCampos)
 {
     //BA10xx|cUF|AAMM|IE|mod|serie|nNF|CNPJ|CPF
     $this->make->tagrefNFP($aCampos[1], $aCampos[2], $aCampos[7], $aCampos[8], $aCampos[3], $aCampos[4], $aCampos[5], $aCampos[6]);
 }