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

tagpag Grupo de Formas de Pagamento YA01 pai A01 tag NFe/infNFe/pag (opcional) Apenas para o modelo 65 NFCe
public tagpag ( string $tPag = '', string $vPag = '' ) : DOMElement
$tPag string
$vPag string
Результат DOMElement
Пример #1
0
 /**
  * yaEntity
  * Cria as tags pag e card
  *
  * @param array $aCampos
  */
 protected function yaEntity($aCampos)
 {
     //YA|tPag|vPag|CNPJ|tBand|cAut|tpIntegra|
     $this->make->tagpag($aCampos[1], $aCampos[2]);
     if ($aCampos[4] != '') {
         $this->make->tagcard($aCampos[3], $aCampos[4], $aCampos[5], $aCampos[6]);
     }
 }
Пример #2
0
$vIPI = '0.00';
$vPIS = '0.03';
$vCOFINS = '0.13';
$vOutro = '0.00';
$vNF = number_format($vProd - $vDesc - $vICMSDeson + $vST + $vFrete + $vSeg + $vOutro + $vII + $vIPI, 2, '.', '');
$vTotTrib = number_format($vICMS + $vST + $vII + $vIPI + $vPIS + $vCOFINS + $vIOF + $vISS, 2, '.', '');
$resp = $nfe->tagICMSTot($vBC, $vICMS, $vICMSDeson, $vBCST, $vST, $vProd, $vFrete, $vSeg, $vDesc, $vII, $vIPI, $vPIS, $vCOFINS, $vOutro, $vNF, $vTotTrib);
//frete
$modFrete = '9';
//Sem frete
$resp = $nfe->tagtransp($modFrete);
//pagamento
$tPag = '01';
//Dinheiro
$vPag = '2.00';
$rest = $nfe->tagpag($tPag, $vPag);
$tPag = '02';
//Cheque
$vPag = '10.00';
$rest = $nfe->tagpag($tPag, $vPag);
// Calculo de carga tributária similar ao IBPT - Lei 12.741/12
$federal = number_format($vII + $vIPI + $vIOF + $vPIS + $vCOFINS, 2, ',', '.');
$estadual = number_format($vICMS + $vST, 2, ',', '.');
$municipal = number_format($vISS, 2, ',', '.');
$totalT = number_format($federal + $estadual + $municipal, 2, ',', '.');
$textoIBPT = "Valor Aprox. Tributos R\$ {$totalT} - {$federal} Federal, {$estadual} Estadual e {$municipal} Municipal.";
//informações Adicionais
$infAdFisco = "";
$infCpl = "Pedido Nº506 - {$textoIBPT}";
$resp = $nfe->taginfAdic($infAdFisco, $infCpl);
//Monta a NFCe e retorna na tela