NFePHP\NFe\MakeNFe::tagfat PHP Method

tagfat() public method

tagfat Grupo Fatura Y02 pai Y01 tag NFe/infNFe/cobr/fat (opcional)
public tagfat ( string $nFat = '', string $vOrig = '', string $vDesc = '', string $vLiq = '' ) : DOMElement
$nFat string
$vOrig string
$vDesc string
$vLiq string
return DOMElement
    public function tagfat($nFat = '', $vOrig = '', $vDesc = '', $vLiq = '')
    {
        $this->zTagcobr();
        $fat = $this->dom->createElement("fat");
        $this->dom->addChild($fat, "nFat", $nFat, false, "Número da Fatura");
        $this->dom->addChild($fat, "vOrig", $vOrig, false, "Valor Original da Fatura");
        $this->dom->addChild($fat, "vDesc", $vDesc, false, "Valor do desconto");
        $this->dom->addChild($fat, "vLiq", $vLiq, false, "Valor Líquido da Fatura");
        $this->dom->appChild($this->cobr, $fat);
        return $fat;
    }

Usage Example

Example #1
0
 /**
  * y02Entity
  * Cria a tag fat
  *
  * @param array $aCampos
  */
 protected function y02Entity($aCampos)
 {
     //Y02|nFat|vOrig|vDesc|vLiq|
     $this->make->tagfat($aCampos[1], $aCampos[2], $aCampos[3], $aCampos[4]);
 }
All Usage Examples Of NFePHP\NFe\MakeNFe::tagfat