Documentation

MakeOld
in package

Table of Contents

Properties

$chNFe  : string
$dom  : DOMImproved
$errors  : array<string|int, mixed>
$stdTot  : stdClass
$xml  : string
$aAdi  : array<string|int, mixed>
$aArma  : array<string|int, mixed>
$aAutXML  : array<string|int, mixed>
$aCest  : array<string|int, mixed>
$aCOFINS  : array<string|int, mixed>
$aCOFINSST  : array<string|int, mixed>
$aComb  : array<string|int, mixed>
$aDefencivo  : array<string|int, mixed>
$aDet  : array<string|int, mixed>
$aDetExport  : array<string|int, mixed>
$aDetPag  : array<string|int, mixed>
$aDI  : array<string|int, mixed>
$aDup  : array<string|int, mixed>
$aEncerrante  : array<string|int, mixed>
$agropecuario  : DOMElement
$agropecuarioGuia  : DOMElement
$aICMS  : array<string|int, mixed>
$aICMSUFDest  : array<string|int, mixed>
$aII  : array<string|int, mixed>
$aImposto  : array<string|int, mixed>
$aImpostoDevol  : array<string|int, mixed>
$aInfAdProd  : array<string|int, mixed>
$aIPI  : array<string|int, mixed>
$aISSQN  : array<string|int, mixed>
$aItensServ  : array<string|int, mixed>
$aMed  : array<string|int, mixed>
$aNFref  : array<string|int, mixed>
$aNVE  : array<string|int, mixed>
$aObsCont  : array<string|int, mixed>
$aObsFisco  : array<string|int, mixed>
$aOrigComb  : array<string|int, mixed>
$aPIS  : array<string|int, mixed>
$aPISST  : array<string|int, mixed>
$aProcRef  : array<string|int, mixed>
$aProd  : array<string|int, mixed>
$aProdCreditoPresumido  : array<string|int, mixed>
$aRastro  : array<string|int, mixed>
$aReboque  : array<string|int, mixed>
$aRECOPI  : array<string|int, mixed>
$aVeicProd  : array<string|int, mixed>
$aVol  : array<string|int, mixed>
$cana  : DOMElement
$checkgtin  : bool
$cobr  : DOMElement|null
$compra  : DOMElement
$csrt  : string
$dest  : DOMElement|null
$emit  : DOMElement
$enderDest  : DOMElement
$enderEmit  : DOMElement
$entrega  : DOMElement
$exporta  : DOMElement
$flagAgro  : mixed
$flagISSQNCalc  : bool
$ICMSTot  : DOMElement
$ide  : DOMElement
$infAdic  : DOMElement|null
$infNFe  : DOMElement
$infNFeSupl  : DOMElement
$infRespTec  : DOMElement
$intermed  : DOMElement
$ISSQNTot  : DOMElement
$mod  : int
$NFe  : DOMElement|null
$obsItem  : array<string|int, mixed>
$pag  : DOMElement
$replaceAccentedChars  : bool
$retirada  : DOMElement
$retTrib  : DOMElement|null
$stdICMSTot  : stdClass
$stdISSQN  : stdClass
$stdISSQNTot  : stdClass
$total  : DOMElement
$tpAmb  : int
$transp  : DOMElement
$version  : string

Methods

__construct()  : mixed
Função construtora cria um objeto DOMDocument que será carregado com o documento fiscal
getChave()  : string
Retorns the key number of NFe (44 digits)
getErrors()  : array<string|int, mixed>
Retorna os erros detectados
getModelo()  : int
Returns the model of NFe 55 or 65
getXML()  : string
Returns xml string and assembly it is necessary
monta()  : string
NFe xml mount method this function returns TRUE on success or FALSE on error The xml of the NFe must be retrieved by the getXML() function or directly by the public property $xml
montaNFe()  : string
Call method of xml assembly. For compatibility only.
setCheckGtin()  : void
Set if GTIN is or not validate
setOnlyAscii()  : mixed
Set character convertion to ASCII only ou not
tagadi()  : DOMElement
Adições I25 pai I18 tag NFe/infNFe/det[]/prod/DI/adi
tagAgropecuarioDefensivo()  : DOMElement
Informações de produtos da agricultura, pecuária e produção Florestal ZF01 pai A01 tag NFe/infNFe/agropecuario/defencivo (opcional) Até 20 registros
tagAgropecuarioGuia()  : DOMElement
Informações de produtos da agricultura, pecuária e produção Florestal ZF01 pai A01 tag NFe/infNFe/agropecuario/guiaTransito (opcional)
tagarma()  : DOMElement
Detalhamento de armas L01 pai I90 tag NFe/infNFe/det[]/prod/arma (opcional)
tagautXML()  : DOMElement
Pessoas autorizadas para o download do XML da NF-e G50 pai A01 tag NFe/infNFe/autXML
tagbalsa()  : mixed
Campo Balsa X25b pai X01 tag NFe/infNFe/transp/balsa (opcional)
tagcana()  : DOMElement
Grupo Cana ZC01 pai A01 tag NFe/infNFe/cana (opcional)
tagCEST()  : DOMElement
Código Especificador da Substituição Tributária – CEST, que identifica a mercadoria sujeita aos regimes de substituição tributária e de antecipação do recolhimento do imposto.
tagCOFINS()  : DOMElement
Grupo COFINS S01 pai M01 tag det[item]/imposto/COFINS (opcional)
tagCOFINSST()  : DOMElement
Grupo COFINS Substituição Tributária T01 pai M01 tag NFe/infNFe/det[]/imposto/COFINSST (opcional)
tagcomb()  : DOMElement
Detalhamento de combustiveis L101 pai I90 tag NFe/infNFe/det[]/prod/comb (opcional) LA|cProdANP|pMixGN|CODIF|qTemp|UFCons|
tagcompra()  : DOMElement
Grupo Compra ZB01 pai A01 tag NFe/infNFe/compra (opcional)
tagCreditoPresumidoProd()  : DOMElement
Detalhamento do crédito presumido do item da NFe Grupo opcional para informações do Crédito Presumido. Obs.: A exigência do preenchimento das informações do crédito presumido fica a critério de cada UF tag NFe/infNFe/det[]/prod/[cCredPresumido, pCredPresumido, vCredPresumido] NT 2019.001 v1.62
tagdeduc()  : DOMElement
Grupo Deduções – Taxas e Contribuições ZC10 pai ZC01 tag NFe/infNFe/cana/deduc (opcional)
tagdest()  : DOMElement
Identificação do Destinatário da NF-e E01 pai A01 tag NFe/infNFe/dest (opcional para modelo 65)
tagdetExport()  : DOMElement
Grupo de informações de exportação para o item I50 pai I01 tag NFe/infNFe/det[]/prod/detExport
tagdetExportInd()  : DOMElement
Grupo de informações de exportação para o item I52 pai I52 tag NFe/infNFe/det[]/prod/detExport
tagdetPag()  : DOMElement
Grupo de Formas de Pagamento YA01a pai YA01 NOTA: Ajuste NT_2016_002_v1.30 NOTA: Ajuste NT_2016_002_v1 51 NOTA: Ajuste NT_2020_006 tag NFe/infNFe/pag/detPag
tagDI()  : DOMElement
Declaração de Importação I8 pai I01 tag NFe/infNFe/det[]/prod/DI
tagdup()  : DOMElement
Grupo Duplicata Y07 pai Y02 tag NFe/infNFe/cobr/fat/dup (opcional) É necessário criar a tag fat antes de criar as duplicatas
tagemit()  : DOMElement
Identificação do emitente da NF-e C01 pai A01 tag NFe/infNFe/emit
tagencerrante()  : DOMElement
informações relacionadas com as operações de combustíveis, subgrupo de encerrante que permite o controle sobre as operações de venda de combustíveis LA11 pai LA01 tag NFe/infNFe/det[]/prod/comb/encerrante (opcional)
tagenderDest()  : DOMElement
Endereço do Destinatário da NF-e E05 pai E01 tag NFe/infNFe/dest/enderDest (opcional para modelo 65) Os dados do destinatário devem ser inseridos antes deste método
tagenderEmit()  : DOMElement
Endereço do emitente C05 pai C01 tag NFe/infNFe/emit/endEmit
tagentrega()  : DOMElement
Identificação do Local de entrega G01 pai A01 tag NFe/infNFe/entrega (opcional) NOTA: ajustado para NT 2018.005
tagexporta()  : DOMElement
Grupo Exportação ZA01 pai A01 tag NFe/infNFe/exporta (opcional)
tagfat()  : DOMElement
Grupo Fatura Y02 pai Y01 tag NFe/infNFe/cobr/fat (opcional)
tagforDia()  : DOMElement
Grupo Fornecimento diário de cana ZC04 pai ZC01 tag NFe/infNFe/cana/forDia
tagICMS()  : DOMElement
Informações do ICMS da Operação própria e ST N01 pai M01 tag NFe/infNFe/det[]/imposto/ICMS NOTA: ajustado NT 2020.005-v1.20
tagICMSPart()  : DOMElement
Grupo de Partilha do ICMS entre a UF de origem e UF de destino ou a UF definida na legislação. N10a pai N01 tag NFe/infNFe/det[]/imposto/ICMS/ICMSPart
tagICMSSN()  : DOMElement
Tributação ICMS pelo Simples Nacional N10c pai N01 tag NFe/infNFe/det[]/imposto/ICMS/ICMSSN N10c pai N01
tagICMSST()  : DOMElement
Grupo de Repasse de ICMSST retido anteriormente em operações interestaduais com repasses através do Substituto Tributário NOTA: ajustado NT 2018.005 tag NFe/infNFe/det[]/imposto/ICMS/ICMSST N10b pai N01
tagICMSTot()  : DOMElement
Grupo Totais referentes ao ICMS W02 pai W01 tag NFe/infNFe/total/ICMSTot
tagICMSUFDest()  : DOMElement
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
tagide()  : DOMElement
Informações de identificação da NF-e B01 pai A01 NOTA: Ajustado para NT2020_006_v1.00 tag NFe/infNFe/ide
tagII()  : DOMElement
Grupo Imposto de Importação P01 pai M01 tag NFe/infNFe/det[]/imposto/II
tagimposto()  : DOMElement
Impostos com o valor total tributado M01 pai H01 tag NFe/infNFe/det[]/imposto
tagimpostoDevol()  : DOMElement
Informação do Imposto devolvido U50 pai H01 tag NFe/infNFe/det[]/impostoDevol (opcional)
taginfAdic()  : DOMElement
Grupo de Informações Adicionais Z01 pai A01 tag NFe/infNFe/infAdic (opcional)
taginfAdProd()  : DOMElement
Informações adicionais do produto V01 pai H01 tag NFe/infNFe/det[]/infAdProd
taginfNFe()  : DOMElement
Informações da NF-e A01 pai NFe tag NFe/infNFe
taginfNFeSupl()  : DOMElement
Informações suplementares da Nota Fiscal
taginfRespTec()  : DOMElement
Informações do Responsável técnico ZD01 pai A01 tag NFe/infNFe/infRespTec (opcional)
tagIntermed()  : DomElement
Dados do intermediador
tagIPI()  : DOMElement
Grupo IPI O01 pai M01 tag NFe/infNFe/det[]/imposto/IPI (opcional)
tagISSQN()  : DOMElement
Grupo ISSQN U01 pai M01 tag NFe/infNFe/det[]/imposto/ISSQN (opcional)
tagISSQNTot()  : DOMElement|void
Grupo Totais referentes ao ISSQN W17 pai W01 tag NFe/infNFe/total/ISSQNTot (opcional)
taglacres()  : DOMElement
Grupo Lacres X33 pai X26 tag NFe/infNFe/transp/vol/lacres (opcional)
tagmed()  : DOMElement
Detalhamento de medicamentos K01 pai I90 NOTA: Ajustado para NT2018.005 tag NFe/infNFe/det[]/prod/med (opcional)
tagNVE()  : DOMElement|null
NVE NOMENCLATURA DE VALOR ADUANEIRO E ESTATÍSTICA Podem ser até 8 NVE's por item
tagobsCont()  : DOMElement
Grupo Campo de uso livre do contribuinte Z04 pai Z01 tag NFe/infNFe/infAdic/obsCont (opcional) O método taginfAdic deve ter sido carregado antes
tagobsFisco()  : DOMElement
Grupo Campo de uso livre do Fisco Z07 pai Z01 tag NFe/infNFe/infAdic/obsFisco (opcional) O método taginfAdic deve ter sido carregado antes
tagorigComb()  : DOMElement
Grupo indicador da origem do combustível encerrante que permite o controle sobre as operações de venda de combustíveis LA18 pai LA01 tag NFe/infNFe/det[]/prod/comb/origComb[]
tagpag()  : DOMElement
Grupo Pagamento Y pai A01 NOTA: Ajustado para NT2016_002_v1.30 tag NFe/infNFe/pag (obrigatorio na NT2016_002_v1.30) Obrigatório para 55 e 65
tagPIS()  : DOMElement
Grupo PIS Q01 pai M01 tag NFe/infNFe/det[]/imposto/PIS
tagPISST()  : DOMElement
Grupo PIS Substituição Tributária R01 pai M01 tag NFe/infNFe/det[]/imposto/PISST (opcional)
tagprocRef()  : DOMElement
Grupo Processo referenciado Z10 pai Z01 tag NFe/infNFe/procRef (opcional) O método taginfAdic deve ter sido carregado antes
tagprod()  : DOMElement
Detalhamento de Produtos e Serviços I01 pai H01 tag NFe/infNFe/det[]/prod NOTA: Ajustado para NT2016_002_v1.30 NOTA: Ajustado para NT2020_005_v1.20
tagprodObsCont()  : DOMElement|null
Grupo de observações de uso livre (para o item da NF-e) Grupo de observações de uso livre do Contribuinte
tagprodObsFisco()  : DOMElement|null
Grupo de observações de uso livre (para o item da NF-e) Grupo de observações de uso livre do Fisco
tagRastro()  : DOMElement
Rastreabilidade do produto podem ser até 500 por item TAG I80 pai I01 NOTA: Ajustado para NT2016_002_v1.00 tag NFe/infNFe/det[]/prod/rastro
tagreboque()  : DOMElement
Grupo Reboque X22 pai X17.1 tag NFe/infNFe/transp/reboque (opcional) Ajustado NT 2020.005 v1.20
tagRECOPI()  : DOMElement
tag NFe/infNFe/det[item]/prod/nRECOPI
tagrefCTe()  : DOMElement
Chave de acesso do CT-e referenciada BA19 pai BA01 tag NFe/infNFe/ide/NFref/refCTe
tagrefECF()  : DOMElement
Informações do Cupom Fiscal referenciado BA20 pai BA01 tag NFe/infNFe/ide/NFref/refECF
tagrefNF()  : DOMElement
Informação da NF modelo 1/1A referenciada BA03 pai BA01 tag NFe/infNFe/ide/NFref/NF DOMNode
tagrefNFe()  : DOMElement
Chave de acesso da NF-e referenciada BA02 pai BA01 tag NFe/infNFe/ide/NFref/refNFe
tagrefNFP()  : DOMElement
Informações da NF de produtor rural referenciada BA10 pai BA01 tag NFe/infNFe/ide/NFref/refNFP
tagretirada()  : DOMElement
Identificação do Local de retirada F01 pai A01 tag NFe/infNFe/retirada (opcional) NOTA: ajustado para NT 2018.005
tagretTransp()  : DOMElement
Grupo Retenção ICMS transporte X11 pai X01 tag NFe/infNFe/transp/retTransp (opcional)
tagretTrib()  : DOMElement
Grupo Retenções de Tributos W23 pai W01 tag NFe/infNFe/total/reTrib (opcional)
tagtransp()  : DOMElement
Grupo Informações do Transporte X01 pai A01 tag NFe/infNFe/transp (obrigatório)
tagtransporta()  : DOMElement
Grupo Transportador X03 pai X01 tag NFe/infNFe/transp/tranporta (opcional)
tagvagao()  : mixed
Campo Vagao X25a pai X01 tag NFe/infNFe/transp/vagao (opcional)
tagveicProd()  : DOMElement
Detalhamento de Veículos novos J01 pai I90 tag NFe/infNFe/det[]/prod/veicProd (opcional)
tagveicTransp()  : DOMElement
Grupo Veículo Transporte X18 pai X17.1 tag NFe/infNFe/transp/veicTransp (opcional) Ajustado NT 2020.005 v1.20
tagvol()  : DOMElement
Grupo Volumes X26 pai X01 tag NFe/infNFe/transp/vol (opcional)
buildCobr()  : mixed
Grupo Cobrança Y01 pai A01 tag NFe/infNFe/cobr (opcional) Depende de fat
buildCOFINSAliq()  : DOMElement
Grupo COFINS tributado pela alíquota S02 pai S01 tag det/imposto/COFINS/COFINSAliq (opcional) Função chamada pelo método [ tagCOFINS ]
buildCOFINSNT()  : DOMElement
Grupo COFINS não tributado S04 pai S01 tag NFe/infNFe/det[]/imposto/COFINS/COFINSNT (opcional) Função chamada pelo método [ tagCOFINS ]
buildCOFINSoutr()  : DOMElement
Grupo COFINS Outras Operações S05 pai S01 tag NFe/infNFe/det[]/imposto/COFINS/COFINSoutr (opcional) Função chamada pelo método [ tagCOFINS ]
buildDet()  : array<string|int, mixed>|string
Insere dentro da tag det os produtos tag NFe/infNFe/det[]
buildImp()  : void
Insere dentro dentro das tags imposto o ICMS IPI II PIS COFINS ISSQN tag NFe/infNFe/det[]/imposto
buildInfAdic()  : DOMElement
Grupo de Informações Adicionais Z01 pai A01 tag NFe/infNFe/infAdic (opcional) Função chamada pelos metodos [taginfAdic] [tagobsCont] [tagobsFisco] [tagprocRef]
buildISSQNTot()  : mixed
buildNFe()  : DOMElement
Tag raiz da NFe tag NFe DOMNode Função chamada pelo método [ monta ]
buildNFref()  : mixed
Informação de Documentos Fiscais referenciados BA01 pai B01 tag NFe/infNFe/ide/NFref Podem ser criados até 500 desses Nodes por NFe Função chamada pelos métodos [tagrefNFe] [tagrefNF] [tagrefNFP] [tagCTeref] [tagrefECF]
buildTagPag()  : mixed
Insere a tag pag, os detalhamentos dos pagamentos e cartoes NOTA: Ajustado para NT2016_002_v1.30 tag NFe/infNFe/pag/ tag NFe/infNFe/pag/detPag[] tag NFe/infNFe/pag/detPag[]/Card
buildTotal()  : mixed
Grupo Totais da NF-e W01 pai A01 tag NFe/infNFe/total
buildVol()  : mixed
Node vol
checkNFeKey()  : void
Remonta a chave da NFe de 44 digitos com base em seus dados já contidos na NFE.
conditionalNumberFormatting()  : string|null
Formatação numerica condicional
equilizeParameters()  : stdClass
Includes missing or unsupported properties in stdClass Replace all unsuported chars
hashCSRT()  : string
Calcula hash sha1 retornando Base64Binary
getNodeValue()  : mixed

Properties

$errors

public array<string|int, mixed> $errors = []

$aAdi

protected array<string|int, mixed> $aAdi = []

of DOMElements

$aArma

protected array<string|int, mixed> $aArma = []

of DOMElements

$aAutXML

protected array<string|int, mixed> $aAutXML = []

of DOMElements

$aCest

protected array<string|int, mixed> $aCest = []

of DOMElements

$aCOFINS

protected array<string|int, mixed> $aCOFINS = []

of DOMElements

$aCOFINSST

protected array<string|int, mixed> $aCOFINSST = []

of DOMElements

$aComb

protected array<string|int, mixed> $aComb = []

of DOMElements

$aDefencivo

protected array<string|int, mixed> $aDefencivo = []

$aDet

protected array<string|int, mixed> $aDet = []

of DOMElements

$aDetExport

protected array<string|int, mixed> $aDetExport = []

of DOMElements

$aDetPag

protected array<string|int, mixed> $aDetPag = []

of DOMElements

$aDI

protected array<string|int, mixed> $aDI = []

of DOMElements

$aDup

protected array<string|int, mixed> $aDup = []

of DOMElements

$aEncerrante

protected array<string|int, mixed> $aEncerrante = []

of DOMElements

$agropecuario

protected DOMElement $agropecuario

$agropecuarioGuia

protected DOMElement $agropecuarioGuia

$aICMS

protected array<string|int, mixed> $aICMS = []

of DOMElements

$aICMSUFDest

protected array<string|int, mixed> $aICMSUFDest = []

of DOMElements

$aII

protected array<string|int, mixed> $aII = []

of DOMElements

$aImposto

protected array<string|int, mixed> $aImposto = []

of DOMElements

$aImpostoDevol

protected array<string|int, mixed> $aImpostoDevol = []

of DOMElements

$aInfAdProd

protected array<string|int, mixed> $aInfAdProd = []

of DOMElements

$aIPI

protected array<string|int, mixed> $aIPI = []

of DOMElements

$aISSQN

protected array<string|int, mixed> $aISSQN = []

of DOMElements

$aItensServ

protected array<string|int, mixed> $aItensServ = []

$aMed

protected array<string|int, mixed> $aMed = []

of DOMElements

$aNFref

protected array<string|int, mixed> $aNFref = []

of DOMElements

$aNVE

protected array<string|int, mixed> $aNVE = []

of DOMElements

$aObsCont

protected array<string|int, mixed> $aObsCont = []

of DOMElements

$aObsFisco

protected array<string|int, mixed> $aObsFisco = []

of DOMElements

$aOrigComb

protected array<string|int, mixed> $aOrigComb = []

of DOMElements

$aPIS

protected array<string|int, mixed> $aPIS = []

$aPISST

protected array<string|int, mixed> $aPISST = []

of DOMElements

$aProcRef

protected array<string|int, mixed> $aProcRef = []

of DOMElements

$aProd

protected array<string|int, mixed> $aProd = []

of DOMElements

$aProdCreditoPresumido

protected array<string|int, mixed> $aProdCreditoPresumido = []

$aRastro

protected array<string|int, mixed> $aRastro = []

of DOMElements

$aReboque

protected array<string|int, mixed> $aReboque = []

of DOMElements

$aRECOPI

protected array<string|int, mixed> $aRECOPI = []

of DOMElements

$aVeicProd

protected array<string|int, mixed> $aVeicProd = []

of DOMElements

$aVol

protected array<string|int, mixed> $aVol = []

of DOMElements

$checkgtin

protected bool $checkgtin = false

$cobr

protected DOMElement|null $cobr

$compra

protected DOMElement $compra

$dest

protected DOMElement|null $dest

$enderDest

protected DOMElement $enderDest

$enderEmit

protected DOMElement $enderEmit

$entrega

protected DOMElement $entrega

$exporta

protected DOMElement $exporta

$flagAgro

protected mixed $flagAgro = false

$flagISSQNCalc

protected bool $flagISSQNCalc = false

$ICMSTot

protected DOMElement $ICMSTot

$infAdic

protected DOMElement|null $infAdic

$infNFe

protected DOMElement $infNFe

$infNFeSupl

protected DOMElement $infNFeSupl

$infRespTec

protected DOMElement $infRespTec

$intermed

protected DOMElement $intermed

$ISSQNTot

protected DOMElement $ISSQNTot

$obsItem

protected array<string|int, mixed> $obsItem = []

of DOMElements

$replaceAccentedChars

protected bool $replaceAccentedChars = false

$retirada

protected DOMElement $retirada

$retTrib

protected DOMElement|null $retTrib

$stdICMSTot

protected stdClass $stdICMSTot

$stdISSQN

protected stdClass $stdISSQN

$stdISSQNTot

protected stdClass $stdISSQNTot

$transp

protected DOMElement $transp

Methods

__construct()

Função construtora cria um objeto DOMDocument que será carregado com o documento fiscal

public __construct() : mixed

getChave()

Retorns the key number of NFe (44 digits)

public getChave() : string
Return values
string

getErrors()

Retorna os erros detectados

public getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>

getModelo()

Returns the model of NFe 55 or 65

public getModelo() : int
Return values
int

getXML()

Returns xml string and assembly it is necessary

public getXML() : string
Return values
string

monta()

NFe xml mount method this function returns TRUE on success or FALSE on error The xml of the NFe must be retrieved by the getXML() function or directly by the public property $xml

public monta() : string
Tags
throws
RuntimeException
Return values
string

montaNFe()

Call method of xml assembly. For compatibility only.

public montaNFe() : string
Return values
string

setCheckGtin()

Set if GTIN is or not validate

public setCheckGtin([bool $option = true ]) : void
Parameters
$option : bool = true

setOnlyAscii()

Set character convertion to ASCII only ou not

public setOnlyAscii([bool $option = false ]) : mixed
Parameters
$option : bool = false

tagadi()

Adições I25 pai I18 tag NFe/infNFe/det[]/prod/DI/adi

public tagadi(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagAgropecuarioDefensivo()

Informações de produtos da agricultura, pecuária e produção Florestal ZF01 pai A01 tag NFe/infNFe/agropecuario/defencivo (opcional) Até 20 registros

public tagAgropecuarioDefensivo(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
Return values
DOMElement

tagAgropecuarioGuia()

Informações de produtos da agricultura, pecuária e produção Florestal ZF01 pai A01 tag NFe/infNFe/agropecuario/guiaTransito (opcional)

public tagAgropecuarioGuia(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
Return values
DOMElement

tagarma()

Detalhamento de armas L01 pai I90 tag NFe/infNFe/det[]/prod/arma (opcional)

public tagarma(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagautXML()

Pessoas autorizadas para o download do XML da NF-e G50 pai A01 tag NFe/infNFe/autXML

public tagautXML(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagbalsa()

Campo Balsa X25b pai X01 tag NFe/infNFe/transp/balsa (opcional)

public tagbalsa(stdClass $std) : mixed
Parameters
$std : stdClass

tagcana()

Grupo Cana ZC01 pai A01 tag NFe/infNFe/cana (opcional)

public tagcana(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagCEST()

Código Especificador da Substituição Tributária – CEST, que identifica a mercadoria sujeita aos regimes de substituição tributária e de antecipação do recolhimento do imposto.

public tagCEST(stdClass $std) : DOMElement

vide NT2015.003 I05C pai tag NFe/infNFe/det[item]/prod/CEST (opcional) NOTA: Ajustado para NT2016_002_v1.30

Parameters
$std : stdClass
Return values
DOMElement

tagCOFINS()

Grupo COFINS S01 pai M01 tag det[item]/imposto/COFINS (opcional)

public tagCOFINS(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagCOFINSST()

Grupo COFINS Substituição Tributária T01 pai M01 tag NFe/infNFe/det[]/imposto/COFINSST (opcional)

public tagCOFINSST(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagcomb()

Detalhamento de combustiveis L101 pai I90 tag NFe/infNFe/det[]/prod/comb (opcional) LA|cProdANP|pMixGN|CODIF|qTemp|UFCons|

public tagcomb(stdClass $std) : DOMElement

NOTA: Ajustado para NT2016_002_v1.30 LA|cProdANP|descANP|pGLP|pGNn|pGNi|vPart|CODIF|qTemp|UFCons|

NOTA: Ajustado para NT2023_0001_v1.10

Parameters
$std : stdClass
Return values
DOMElement

tagcompra()

Grupo Compra ZB01 pai A01 tag NFe/infNFe/compra (opcional)

public tagcompra(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagCreditoPresumidoProd()

Detalhamento do crédito presumido do item da NFe Grupo opcional para informações do Crédito Presumido. Obs.: A exigência do preenchimento das informações do crédito presumido fica a critério de cada UF tag NFe/infNFe/det[]/prod/[cCredPresumido, pCredPresumido, vCredPresumido] NT 2019.001 v1.62

public tagCreditoPresumidoProd(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagdeduc()

Grupo Deduções – Taxas e Contribuições ZC10 pai ZC01 tag NFe/infNFe/cana/deduc (opcional)

public tagdeduc(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagdest()

Identificação do Destinatário da NF-e E01 pai A01 tag NFe/infNFe/dest (opcional para modelo 65)

public tagdest(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagdetExport()

Grupo de informações de exportação para o item I50 pai I01 tag NFe/infNFe/det[]/prod/detExport

public tagdetExport(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagdetExportInd()

Grupo de informações de exportação para o item I52 pai I52 tag NFe/infNFe/det[]/prod/detExport

public tagdetExportInd(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagdetPag()

Grupo de Formas de Pagamento YA01a pai YA01 NOTA: Ajuste NT_2016_002_v1.30 NOTA: Ajuste NT_2016_002_v1 51 NOTA: Ajuste NT_2020_006 tag NFe/infNFe/pag/detPag

public tagdetPag(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagDI()

Declaração de Importação I8 pai I01 tag NFe/infNFe/det[]/prod/DI

public tagDI(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagdup()

Grupo Duplicata Y07 pai Y02 tag NFe/infNFe/cobr/fat/dup (opcional) É necessário criar a tag fat antes de criar as duplicatas

public tagdup(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagemit()

Identificação do emitente da NF-e C01 pai A01 tag NFe/infNFe/emit

public tagemit(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagencerrante()

informações relacionadas com as operações de combustíveis, subgrupo de encerrante que permite o controle sobre as operações de venda de combustíveis LA11 pai LA01 tag NFe/infNFe/det[]/prod/comb/encerrante (opcional)

public tagencerrante(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagenderDest()

Endereço do Destinatário da NF-e E05 pai E01 tag NFe/infNFe/dest/enderDest (opcional para modelo 65) Os dados do destinatário devem ser inseridos antes deste método

public tagenderDest(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagenderEmit()

Endereço do emitente C05 pai C01 tag NFe/infNFe/emit/endEmit

public tagenderEmit(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagentrega()

Identificação do Local de entrega G01 pai A01 tag NFe/infNFe/entrega (opcional) NOTA: ajustado para NT 2018.005

public tagentrega(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagexporta()

Grupo Exportação ZA01 pai A01 tag NFe/infNFe/exporta (opcional)

public tagexporta(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagfat()

Grupo Fatura Y02 pai Y01 tag NFe/infNFe/cobr/fat (opcional)

public tagfat(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagforDia()

Grupo Fornecimento diário de cana ZC04 pai ZC01 tag NFe/infNFe/cana/forDia

public tagforDia(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagICMS()

Informações do ICMS da Operação própria e ST N01 pai M01 tag NFe/infNFe/det[]/imposto/ICMS NOTA: ajustado NT 2020.005-v1.20

public tagICMS(stdClass $std) : DOMElement

NOTA: Ajustado para NT2023_0001_v1.10

Parameters
$std : stdClass
Return values
DOMElement

tagICMSPart()

Grupo de Partilha do ICMS entre a UF de origem e UF de destino ou a UF definida na legislação. N10a pai N01 tag NFe/infNFe/det[]/imposto/ICMS/ICMSPart

public tagICMSPart(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagICMSSN()

Tributação ICMS pelo Simples Nacional N10c pai N01 tag NFe/infNFe/det[]/imposto/ICMS/ICMSSN N10c pai N01

public tagICMSSN(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagICMSST()

Grupo de Repasse de ICMSST retido anteriormente em operações interestaduais com repasses através do Substituto Tributário NOTA: ajustado NT 2018.005 tag NFe/infNFe/det[]/imposto/ICMS/ICMSST N10b pai N01

public tagICMSST(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagICMSTot()

Grupo Totais referentes ao ICMS W02 pai W01 tag NFe/infNFe/total/ICMSTot

public tagICMSTot([stdClass|null $std = null ]) : DOMElement
Parameters
$std : stdClass|null = null
Return values
DOMElement

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(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagide()

Informações de identificação da NF-e B01 pai A01 NOTA: Ajustado para NT2020_006_v1.00 tag NFe/infNFe/ide

public tagide(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagII()

Grupo Imposto de Importação P01 pai M01 tag NFe/infNFe/det[]/imposto/II

public tagII(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagimposto()

Impostos com o valor total tributado M01 pai H01 tag NFe/infNFe/det[]/imposto

public tagimposto(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagimpostoDevol()

Informação do Imposto devolvido U50 pai H01 tag NFe/infNFe/det[]/impostoDevol (opcional)

public tagimpostoDevol(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

taginfAdic()

Grupo de Informações Adicionais Z01 pai A01 tag NFe/infNFe/infAdic (opcional)

public taginfAdic(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

taginfAdProd()

Informações adicionais do produto V01 pai H01 tag NFe/infNFe/det[]/infAdProd

public taginfAdProd(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

taginfNFe()

Informações da NF-e A01 pai NFe tag NFe/infNFe

public taginfNFe(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

taginfNFeSupl()

Informações suplementares da Nota Fiscal

public taginfNFeSupl(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

taginfRespTec()

Informações do Responsável técnico ZD01 pai A01 tag NFe/infNFe/infRespTec (opcional)

public taginfRespTec(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
RuntimeException
Return values
DOMElement

tagIntermed()

Dados do intermediador

public tagIntermed(stdClass $std) : DomElement
Parameters
$std : stdClass
Return values
DomElement

tagIPI()

Grupo IPI O01 pai M01 tag NFe/infNFe/det[]/imposto/IPI (opcional)

public tagIPI(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagISSQN()

Grupo ISSQN U01 pai M01 tag NFe/infNFe/det[]/imposto/ISSQN (opcional)

public tagISSQN(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagISSQNTot()

Grupo Totais referentes ao ISSQN W17 pai W01 tag NFe/infNFe/total/ISSQNTot (opcional)

public tagISSQNTot([stdClass|null $std = null ]) : DOMElement|void
Parameters
$std : stdClass|null = null
Return values
DOMElement|void

taglacres()

Grupo Lacres X33 pai X26 tag NFe/infNFe/transp/vol/lacres (opcional)

public taglacres(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagmed()

Detalhamento de medicamentos K01 pai I90 NOTA: Ajustado para NT2018.005 tag NFe/infNFe/det[]/prod/med (opcional)

public tagmed(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagNVE()

NVE NOMENCLATURA DE VALOR ADUANEIRO E ESTATÍSTICA Podem ser até 8 NVE's por item

public tagNVE(stdClass $std) : DOMElement|null
Parameters
$std : stdClass
Return values
DOMElement|null

tagobsCont()

Grupo Campo de uso livre do contribuinte Z04 pai Z01 tag NFe/infNFe/infAdic/obsCont (opcional) O método taginfAdic deve ter sido carregado antes

public tagobsCont(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagobsFisco()

Grupo Campo de uso livre do Fisco Z07 pai Z01 tag NFe/infNFe/infAdic/obsFisco (opcional) O método taginfAdic deve ter sido carregado antes

public tagobsFisco(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagorigComb()

Grupo indicador da origem do combustível encerrante que permite o controle sobre as operações de venda de combustíveis LA18 pai LA01 tag NFe/infNFe/det[]/prod/comb/origComb[]

public tagorigComb(stdClass $std) : DOMElement

NOTA: Adicionado para NT2023_0001_v1.10

Parameters
$std : stdClass
Return values
DOMElement

tagpag()

Grupo Pagamento Y pai A01 NOTA: Ajustado para NT2016_002_v1.30 tag NFe/infNFe/pag (obrigatorio na NT2016_002_v1.30) Obrigatório para 55 e 65

public tagpag(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagPIS()

Grupo PIS Q01 pai M01 tag NFe/infNFe/det[]/imposto/PIS

public tagPIS(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagPISST()

Grupo PIS Substituição Tributária R01 pai M01 tag NFe/infNFe/det[]/imposto/PISST (opcional)

public tagPISST(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagprocRef()

Grupo Processo referenciado Z10 pai Z01 tag NFe/infNFe/procRef (opcional) O método taginfAdic deve ter sido carregado antes

public tagprocRef(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagprod()

Detalhamento de Produtos e Serviços I01 pai H01 tag NFe/infNFe/det[]/prod NOTA: Ajustado para NT2016_002_v1.30 NOTA: Ajustado para NT2020_005_v1.20

public tagprod(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagprodObsCont()

Grupo de observações de uso livre (para o item da NF-e) Grupo de observações de uso livre do Contribuinte

public tagprodObsCont(stdClass $std) : DOMElement|null
Parameters
$std : stdClass
Return values
DOMElement|null

tagprodObsFisco()

Grupo de observações de uso livre (para o item da NF-e) Grupo de observações de uso livre do Fisco

public tagprodObsFisco(stdClass $std) : DOMElement|null
Parameters
$std : stdClass
Return values
DOMElement|null

tagRastro()

Rastreabilidade do produto podem ser até 500 por item TAG I80 pai I01 NOTA: Ajustado para NT2016_002_v1.00 tag NFe/infNFe/det[]/prod/rastro

public tagRastro(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagreboque()

Grupo Reboque X22 pai X17.1 tag NFe/infNFe/transp/reboque (opcional) Ajustado NT 2020.005 v1.20

public tagreboque(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagRECOPI()

tag NFe/infNFe/det[item]/prod/nRECOPI

public tagRECOPI(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagrefCTe()

Chave de acesso do CT-e referenciada BA19 pai BA01 tag NFe/infNFe/ide/NFref/refCTe

public tagrefCTe(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagrefECF()

Informações do Cupom Fiscal referenciado BA20 pai BA01 tag NFe/infNFe/ide/NFref/refECF

public tagrefECF(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagrefNF()

Informação da NF modelo 1/1A referenciada BA03 pai BA01 tag NFe/infNFe/ide/NFref/NF DOMNode

public tagrefNF(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagrefNFe()

Chave de acesso da NF-e referenciada BA02 pai BA01 tag NFe/infNFe/ide/NFref/refNFe

public tagrefNFe(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
Return values
DOMElement

tagrefNFP()

Informações da NF de produtor rural referenciada BA10 pai BA01 tag NFe/infNFe/ide/NFref/refNFP

public tagrefNFP(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagretirada()

Identificação do Local de retirada F01 pai A01 tag NFe/infNFe/retirada (opcional) NOTA: ajustado para NT 2018.005

public tagretirada(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagretTransp()

Grupo Retenção ICMS transporte X11 pai X01 tag NFe/infNFe/transp/retTransp (opcional)

public tagretTransp(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagretTrib()

Grupo Retenções de Tributos W23 pai W01 tag NFe/infNFe/total/reTrib (opcional)

public tagretTrib(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagtransp()

Grupo Informações do Transporte X01 pai A01 tag NFe/infNFe/transp (obrigatório)

public tagtransp(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagtransporta()

Grupo Transportador X03 pai X01 tag NFe/infNFe/transp/tranporta (opcional)

public tagtransporta(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagvagao()

Campo Vagao X25a pai X01 tag NFe/infNFe/transp/vagao (opcional)

public tagvagao(stdClass $std) : mixed
Parameters
$std : stdClass

tagveicProd()

Detalhamento de Veículos novos J01 pai I90 tag NFe/infNFe/det[]/prod/veicProd (opcional)

public tagveicProd(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagveicTransp()

Grupo Veículo Transporte X18 pai X17.1 tag NFe/infNFe/transp/veicTransp (opcional) Ajustado NT 2020.005 v1.20

public tagveicTransp(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

tagvol()

Grupo Volumes X26 pai X01 tag NFe/infNFe/transp/vol (opcional)

public tagvol(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

buildCobr()

Grupo Cobrança Y01 pai A01 tag NFe/infNFe/cobr (opcional) Depende de fat

protected buildCobr() : mixed

buildCOFINSAliq()

Grupo COFINS tributado pela alíquota S02 pai S01 tag det/imposto/COFINS/COFINSAliq (opcional) Função chamada pelo método [ tagCOFINS ]

protected buildCOFINSAliq(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

buildCOFINSNT()

Grupo COFINS não tributado S04 pai S01 tag NFe/infNFe/det[]/imposto/COFINS/COFINSNT (opcional) Função chamada pelo método [ tagCOFINS ]

protected buildCOFINSNT(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

buildCOFINSoutr()

Grupo COFINS Outras Operações S05 pai S01 tag NFe/infNFe/det[]/imposto/COFINS/COFINSoutr (opcional) Função chamada pelo método [ tagCOFINS ]

protected buildCOFINSoutr(stdClass $std) : DOMElement
Parameters
$std : stdClass
Return values
DOMElement

buildDet()

Insere dentro da tag det os produtos tag NFe/infNFe/det[]

protected buildDet() : array<string|int, mixed>|string
Return values
array<string|int, mixed>|string

buildImp()

Insere dentro dentro das tags imposto o ICMS IPI II PIS COFINS ISSQN tag NFe/infNFe/det[]/imposto

protected buildImp() : void

buildInfAdic()

Grupo de Informações Adicionais Z01 pai A01 tag NFe/infNFe/infAdic (opcional) Função chamada pelos metodos [taginfAdic] [tagobsCont] [tagobsFisco] [tagprocRef]

protected buildInfAdic() : DOMElement
Return values
DOMElement

buildISSQNTot()

protected buildISSQNTot() : mixed

buildNFe()

Tag raiz da NFe tag NFe DOMNode Função chamada pelo método [ monta ]

protected buildNFe() : DOMElement
Return values
DOMElement

buildNFref()

Informação de Documentos Fiscais referenciados BA01 pai B01 tag NFe/infNFe/ide/NFref Podem ser criados até 500 desses Nodes por NFe Função chamada pelos métodos [tagrefNFe] [tagrefNF] [tagrefNFP] [tagCTeref] [tagrefECF]

protected buildNFref() : mixed

buildTagPag()

Insere a tag pag, os detalhamentos dos pagamentos e cartoes NOTA: Ajustado para NT2016_002_v1.30 tag NFe/infNFe/pag/ tag NFe/infNFe/pag/detPag[] tag NFe/infNFe/pag/detPag[]/Card

protected buildTagPag() : mixed

buildTotal()

Grupo Totais da NF-e W01 pai A01 tag NFe/infNFe/total

protected buildTotal() : mixed

buildVol()

Node vol

protected buildVol() : mixed

checkNFeKey()

Remonta a chave da NFe de 44 digitos com base em seus dados já contidos na NFE.

protected checkNFeKey(DOMImproved $dom) : void

Isso é útil no caso da chave informada estar errada se a chave estiver errada a mesma é substituida

Parameters
$dom : DOMImproved

conditionalNumberFormatting()

Formatação numerica condicional

protected conditionalNumberFormatting([string|float|int|null $value = null ][, int $decimal = 2 ]) : string|null
Parameters
$value : string|float|int|null = null
$decimal : int = 2
Return values
string|null

equilizeParameters()

Includes missing or unsupported properties in stdClass Replace all unsuported chars

protected equilizeParameters(stdClass $std, array<string|int, mixed> $possible) : stdClass
Parameters
$std : stdClass
$possible : array<string|int, mixed>
Return values
stdClass

hashCSRT()

Calcula hash sha1 retornando Base64Binary

protected hashCSRT(string $CSRT) : string
Parameters
$CSRT : string
Return values
string

getNodeValue()

private getNodeValue(DOMElement $node, string $name) : mixed
Parameters
$node : DOMElement
$name : string

        
On this page

Search results