NFePHP\NFe\MakeNFe::tagdup PHP Method

tagdup() public method

tagdup Grupo Duplicata Y07 pai Y02 tag NFe/infNFe/cobr/fat/dup (opcional) É necessário criar a tag fat antes de criar as duplicatas
public tagdup ( string $nDup = '', string $dVenc = '', string $vDup = '' ) : DOMElement
$nDup string
$dVenc string
$vDup string
return DOMElement
    public function tagdup($nDup = '', $dVenc = '', $vDup = '')
    {
        $this->zTagcobr();
        $dup = $this->dom->createElement("dup");
        $this->dom->addChild($dup, "nDup", $nDup, false, "Número da Duplicata");
        $this->dom->addChild($dup, "dVenc", $dVenc, false, "Data de vencimento");
        $this->dom->addChild($dup, "vDup", $vDup, true, "Valor da duplicata");
        $this->dom->appChild($this->cobr, $dup, 'Inclui duplicata na tag cobr');
        $this->aDup[] = $dup;
        return $dup;
    }

Usage Example

Example #1
0
 /**
  * y07Entity
  * Cria a tag dup
  *
  * @param array $aCampos
  */
 protected function y07Entity($aCampos)
 {
     //Y07|nDup|dVenc|vDup|
     $this->make->tagdup($aCampos[1], $aCampos[2], $aCampos[3]);
 }
All Usage Examples Of NFePHP\NFe\MakeNFe::tagdup