tagIPI() public method

tagIPI Grupo IPI O01 pai M01 tag NFe/infNFe/det[]/imposto/IPI (opcional)
public tagIPI ( string $nItem = '', string $cst = '', string $clEnq = '', string $cnpjProd = '', string $cSelo = '', string $qSelo = '', string $cEnq = '', string $vBC = '', string $pIPI = '', string $qUnid = '', string $vUnid = '', string $vIPI = '' ) : DOMElement
$nItem string
$cst string
$clEnq string
$cnpjProd string
$cSelo string
$qSelo string
$cEnq string
$vBC string
$pIPI string
$qUnid string
$vUnid string
$vIPI string
return DOMElement
Esempio n. 1
0
 /**
  * zLinhaOEntity
  * Cria a tag IPI
  *
  * @param array $aCampos
  */
 protected function zLinhaOEntity($aCampos)
 {
     //Oxx|cst|clEnq|cnpjProd|cSelo|qSelo|cEnq|vBC|pIPI|qUnid|vUnid|vIPI|
     $this->make->tagIPI($this->nItem, $aCampos[1], $aCampos[2], $aCampos[3], $aCampos[4], $aCampos[5], $aCampos[6], $aCampos[7], $aCampos[8], $aCampos[9], $aCampos[10], $aCampos[11]);
 }
//ICMSSN
//$resp = $nfe->tagICMSSN($nItem, $orig, $csosn, $modBC, $vBC, $pRedBC, $pICMS, $vICMS, $pCredSN, $vCredICMSSN, $modBCST, $pMVAST, $pRedBCST, $vBCST, $pICMSST, $vICMSST, $vBCSTRet, $vICMSSTRet);
//IPI
$nItem = 1;
$cst = '55';
$clEnq = '';
$cnpjProd = '';
$cSelo = '';
$qSelo = '';
$cEnq = '999';
$vBC = '';
$pIPI = '';
$qUnid = '';
$vUnid = '';
$vIPI = '';
$resp = $nfe->tagIPI($nItem, $cst, $clEnq, $cnpjProd, $cSelo, $qSelo, $cEnq, $vBC, $pIPI, $qUnid, $vUnid, $vIPI);
//PIS
$nItem = 1;
$cst = '01';
$vBC = '19466.30';
$pPIS = '1.65';
$vPIS = '321.19';
$qBCProd = '';
$vAliqProd = '';
$resp = $nfe->tagPIS($nItem, $cst, $vBC, $pPIS, $vPIS, $qBCProd, $vAliqProd);
//PISST
//$resp = $nfe->tagPISST($nItem, $vBC, $pPIS, $qBCProd, $vAliqProd, $vPIS);
//COFINS
$nItem = 1;
$cst = '01';
$vBC = '19466.30';