NFePHP\NFe\MakeNFe::tagdetExport PHP Method

tagdetExport() public method

tagdetExport Grupo de informações de exportação para o item I50 pai I01 tag NFe/infNFe/det[]/prod/detExport
public tagdetExport ( string $nItem = '', string $nDraw = '', string $nRE = '', string $chNFe = '', string $qExport = '' ) : DOMElement
$nItem string
$nDraw string
$nRE string
$chNFe string
$qExport string
return DOMElement
    public function tagdetExport($nItem = '', $nDraw = '', $nRE = '', $chNFe = '', $qExport = '')
    {
        $identificador = 'I50 <detExport> - ';
        $detExport = $this->dom->createElement("detExport");
        $this->dom->addChild($detExport, "nDraw", $nDraw, false, $identificador . "[item {$nItem}] Número do ato concessório de Drawback");
        $exportInd = $this->dom->createElement("exportInd");
        $this->dom->addChild($exportInd, "nRE", $nRE, true, $identificador . "[item {$nItem}] Número do Registro de Exportação");
        $this->dom->addChild($exportInd, "chNFe", $chNFe, true, $identificador . "[item {$nItem}] Chave de Acesso da NF-e recebida para exportação");
        $this->dom->addChild($exportInd, "qExport", $qExport, true, $identificador . "[item {$nItem}] Quantidade do item realmente exportado");
        $detExport->appendChild($exportInd);
        $this->aDetExport[$nItem] = $detExport;
        return $detExport;
    }

Usage Example

Example #1
0
 /**
  * zLinhaI50Entity
  * Cria a tag detExport
  *
  * @param array $aCampos
  */
 protected function zLinhaI50Entity($aCampos)
 {
     //I50xx|nDraw|nRE|chNFe|qExport|
     $this->make->tagdetExport($this->nItem, $aCampos[0], $aCampos[1], $aCampos[2], $aCampos[3]);
 }