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

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

tagdeduc Grupo Deduções – Taxas e Contribuições ZC10 pai ZC01 tag NFe/infNFe/cana/deduc (opcional)
public tagdeduc ( string $xDed = '', string $vDed = '', string $vFor = '', string $vTotDed = '', string $vLiqFor = '' ) : DOMElement
$xDed string
$vDed string
$vFor string
$vTotDed string
$vLiqFor string
Результат DOMElement
    public function tagdeduc($xDed = '', $vDed = '', $vFor = '', $vTotDed = '', $vLiqFor = '')
    {
        $deduc = $this->dom->createElement("deduc");
        $this->dom->addChild($deduc, "xDed", $xDed, true, "Descrição da Dedução");
        $this->dom->addChild($deduc, "vDed", $vDed, true, "Valor da Dedução");
        $this->dom->addChild($deduc, "vFor", $vFor, true, "Valor dos Fornecimentos");
        $this->dom->addChild($deduc, "vTotDed", $vTotDed, true, "Valor Total da Dedução");
        $this->dom->addChild($deduc, "vLiqFor", $vLiqFor, true, "Valor Líquido dos Fornecimentos");
        $this->aDeduc[] = $deduc;
        $this->dom->appChild($this->cana, $deduc, 'O metodo tagcana deveria ter sido chamado antes. [tagdeduc]');
        return $deduc;
    }

Usage Example

Пример #1
0
 /**
  * zc10Entity
  * Cria a tag deduc
  *
  * @param array $aCampos
  */
 protected function zc10Entity($aCampos)
 {
     //ZC10|xDed|vDed|
     $this->make->tagdeduc($aCampos[1], $aCampos[2], $this->linhaZC[4], $this->linhaZC[5], $this->linhaZC[6]);
 }