tagemit
Identificação do emitente da NF-e C01 pai A01
tag NFe/infNFe/emit
public tagemit ( string $cnpj = '', string $cpf = '', string $xNome = '', string $xFant = '', string $numIE = '', string $numIEST = '', string $numIM = '', string $cnae = '', string $crt = '' ) : DOMElement | ||
$cnpj | string | |
$cpf | string | |
$xNome | string | |
$xFant | string | |
$numIE | string | |
$numIEST | string | |
$numIM | string | |
$cnae | string | |
$crt | string | |
Результат | DOMElement |
/** * zLinhaCEntity * Cria a tag emit * * @param array $aCampos */ protected function zLinhaCEntity($aCampos) { //Cxx|XNome|XFant|IE|IEST|IM|CNAE|CRT|CNPJ|CPF| $this->make->tagemit($aCampos[8], $aCampos[9], $aCampos[1], $aCampos[2], $aCampos[3], $aCampos[4], $aCampos[5], $aCampos[6], $aCampos[7]); }
//ECFref ECF referenciada //$mod = '90'; //$nECF = '12243'; //$nCOO = '111'; //$resp = $nfe->tagrefECF($mod, $nECF, $nCOO); //Dados do emitente $CNPJ = '58716523000119'; $CPF = ''; $xNome = 'FIMATEC TEXTIL LTDA'; $xFant = 'FIMATEC'; $IE = '112006603110'; $IEST = ''; $IM = '95095870'; $CNAE = '0131380'; $CRT = '3'; $resp = $nfe->tagemit($CNPJ, $CPF, $xNome, $xFant, $IE, $IEST, $IM, $CNAE, $CRT); //endereço do emitente $xLgr = 'RUA DOS PATRIOTAS'; $nro = '897'; $xCpl = 'ARMAZEM 42'; $xBairro = 'IPIRANGA'; $cMun = '3550308'; $xMun = 'Sao Paulo'; $UF = 'SP'; $CEP = '04207040'; $cPais = '1058'; $xPais = 'BRASIL'; $fone = '1120677300'; $resp = $nfe->tagenderEmit($xLgr, $nro, $xCpl, $xBairro, $cMun, $xMun, $UF, $CEP, $cPais, $xPais, $fone); //destinatário $CNPJ = '10702368000155';