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

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

tagICMSUFDest Grupo ICMSUFDest NA01 pai M01 tag NFe/infNFe/det[]/imposto/ICMSUFDest (opcional) Grupo a ser informado nas vendas interestaduais para consumidor final, não contribuinte do ICMS
public tagICMSUFDest ( string $nItem = '', string $vBCUFDest = '', string $pFCPUFDest = '', string $pICMSUFDest = '', string $pICMSInter = '', string $pICMSInterPart = '', string $vFCPUFDest = '', string $vICMSUFDest = '', string $vICMSUFRemet = '' ) : DOMElement
$nItem string
$vBCUFDest string
$pFCPUFDest string
$pICMSUFDest string
$pICMSInter string
$pICMSInterPart string
$vFCPUFDest string
$vICMSUFDest string
$vICMSUFRemet string
Результат DOMElement
    public function tagICMSUFDest($nItem = '', $vBCUFDest = '', $pFCPUFDest = '', $pICMSUFDest = '', $pICMSInter = '', $pICMSInterPart = '', $vFCPUFDest = '', $vICMSUFDest = '', $vICMSUFRemet = '')
    {
        $icmsUFDest = $this->dom->createElement('ICMSUFDest');
        $this->dom->addChild($icmsUFDest, "vBCUFDest", $vBCUFDest, true, "[item {$nItem}] Valor da BC do ICMS na UF do destinatário");
        $this->dom->addChild($icmsUFDest, "pFCPUFDest", $pFCPUFDest, true, "[item {$nItem}] Percentual do ICMS relativo ao Fundo de Combate à Pobreza (FCP) na UF de destino");
        $this->dom->addChild($icmsUFDest, "pICMSUFDest", $pICMSUFDest, true, "[item {$nItem}] Alíquota interna da UF do destinatário");
        $this->dom->addChild($icmsUFDest, "pICMSInter", $pICMSInter, true, "[item {$nItem}] Alíquota interestadual das UF envolvidas");
        $this->dom->addChild($icmsUFDest, "pICMSInterPart", $pICMSInterPart, true, "[item {$nItem}] Percentual provisório de partilha entre os Estados");
        $this->dom->addChild($icmsUFDest, "vFCPUFDest", $vFCPUFDest, true, "[item {$nItem}] Valor do ICMS relativo ao Fundo de Combate à Pobreza (FCP) da UF de destino");
        $this->dom->addChild($icmsUFDest, "vICMSUFDest", $vICMSUFDest, true, "[item {$nItem}] Valor do ICMS de partilha para a UF do destinatário");
        $this->dom->addChild($icmsUFDest, "vICMSUFRemet", $vICMSUFRemet, true, "[item {$nItem}] Valor do ICMS de partilha para a UF do remetente");
        $this->aICMSUFDest[$nItem] = $icmsUFDest;
        $this->aTotICMSUFDest['vICMSUFDest'] += $vICMSUFDest;
        $this->aTotICMSUFDest['vFCPUFDest'] += $vFCPUFDest;
        $this->aTotICMSUFDest['vICMSUFRemet'] += $vICMSUFRemet;
        return $icmsUFDest;
    }

Usage Example

Пример #1
0
 /**
  * naEntity
  * Cria a tag ICMSUFDest
  *
  * @param array $aCampos
  */
 protected function naEntity($aCampos)
 {
     //NA|vBCUFDest|pFCPUFDest|pICMSUFDest|pICMSInter|pICMSInterPart|vFCPUFDest|vICMSUFDest|vICMSFRemet|
     if ($aCampos[1] != '') {
         $this->make->tagICMSUFDest($this->nItem, $aCampos[1], $aCampos[2], $aCampos[3], $aCampos[4], $aCampos[5], $aCampos[6], $aCampos[7], $aCampos[8]);
     }
 }