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
$chNFe
public
string
$chNFe
$dom
public
DOMImproved
$dom
$errors
public
array<string|int, mixed>
$errors
= []
$stdTot
public
stdClass
$stdTot
$xml
public
string
$xml
$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
$cana
protected
DOMElement
$cana
$checkgtin
protected
bool
$checkgtin
= false
$cobr
protected
DOMElement|null
$cobr
$compra
protected
DOMElement
$compra
$csrt
protected
string
$csrt
$dest
protected
DOMElement|null
$dest
$emit
protected
DOMElement
$emit
$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
$ide
protected
DOMElement
$ide
$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
$mod
protected
int
$mod
= 55
$NFe
protected
DOMElement|null
$NFe
$obsItem
protected
array<string|int, mixed>
$obsItem
= []
of DOMElements
$pag
protected
DOMElement
$pag
$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
$total
protected
DOMElement
$total
$tpAmb
protected
int
$tpAmb
= 2
$transp
protected
DOMElement
$transp
$version
protected
string
$version
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
stringgetErrors()
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
intgetXML()
Returns xml string and assembly it is necessary
public
getXML() : string
Return values
stringmonta()
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
Return values
stringmontaNFe()
Call method of xml assembly. For compatibility only.
public
montaNFe() : string
Return values
stringsetCheckGtin()
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
DOMElementtagAgropecuarioDefensivo()
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
Return values
DOMElementtagAgropecuarioGuia()
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
Return values
DOMElementtagarma()
Detalhamento de armas L01 pai I90 tag NFe/infNFe/det[]/prod/arma (opcional)
public
tagarma(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagautXML()
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
DOMElementtagbalsa()
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
DOMElementtagCEST()
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
DOMElementtagCOFINS()
Grupo COFINS S01 pai M01 tag det[item]/imposto/COFINS (opcional)
public
tagCOFINS(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagCOFINSST()
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
DOMElementtagcomb()
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
DOMElementtagcompra()
Grupo Compra ZB01 pai A01 tag NFe/infNFe/compra (opcional)
public
tagcompra(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagCreditoPresumidoProd()
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
DOMElementtagdeduc()
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
DOMElementtagdest()
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
DOMElementtagdetExport()
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
DOMElementtagdetExportInd()
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
DOMElementtagdetPag()
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
DOMElementtagDI()
Declaração de Importação I8 pai I01 tag NFe/infNFe/det[]/prod/DI
public
tagDI(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagdup()
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
DOMElementtagemit()
Identificação do emitente da NF-e C01 pai A01 tag NFe/infNFe/emit
public
tagemit(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagencerrante()
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
DOMElementtagenderDest()
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
DOMElementtagenderEmit()
Endereço do emitente C05 pai C01 tag NFe/infNFe/emit/endEmit
public
tagenderEmit(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagentrega()
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
DOMElementtagexporta()
Grupo Exportação ZA01 pai A01 tag NFe/infNFe/exporta (opcional)
public
tagexporta(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagfat()
Grupo Fatura Y02 pai Y01 tag NFe/infNFe/cobr/fat (opcional)
public
tagfat(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagforDia()
Grupo Fornecimento diário de cana ZC04 pai ZC01 tag NFe/infNFe/cana/forDia
public
tagforDia(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagICMS()
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
DOMElementtagICMSPart()
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
DOMElementtagICMSSN()
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
DOMElementtagICMSST()
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
DOMElementtagICMSTot()
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
DOMElementtagICMSUFDest()
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
DOMElementtagide()
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
DOMElementtagII()
Grupo Imposto de Importação P01 pai M01 tag NFe/infNFe/det[]/imposto/II
public
tagII(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagimposto()
Impostos com o valor total tributado M01 pai H01 tag NFe/infNFe/det[]/imposto
public
tagimposto(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagimpostoDevol()
Informação do Imposto devolvido U50 pai H01 tag NFe/infNFe/det[]/impostoDevol (opcional)
public
tagimpostoDevol(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtaginfAdic()
Grupo de Informações Adicionais Z01 pai A01 tag NFe/infNFe/infAdic (opcional)
public
taginfAdic(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtaginfAdProd()
Informações adicionais do produto V01 pai H01 tag NFe/infNFe/det[]/infAdProd
public
taginfAdProd(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtaginfNFe()
Informações da NF-e A01 pai NFe tag NFe/infNFe
public
taginfNFe(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtaginfNFeSupl()
Informações suplementares da Nota Fiscal
public
taginfNFeSupl(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtaginfRespTec()
Informações do Responsável técnico ZD01 pai A01 tag NFe/infNFe/infRespTec (opcional)
public
taginfRespTec(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
Return values
DOMElementtagIntermed()
Dados do intermediador
public
tagIntermed(stdClass $std) : DomElement
Parameters
- $std : stdClass
Return values
DomElementtagIPI()
Grupo IPI O01 pai M01 tag NFe/infNFe/det[]/imposto/IPI (opcional)
public
tagIPI(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagISSQN()
Grupo ISSQN U01 pai M01 tag NFe/infNFe/det[]/imposto/ISSQN (opcional)
public
tagISSQN(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagISSQNTot()
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|voidtaglacres()
Grupo Lacres X33 pai X26 tag NFe/infNFe/transp/vol/lacres (opcional)
public
taglacres(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagmed()
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
DOMElementtagNVE()
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|nulltagobsCont()
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
DOMElementtagobsFisco()
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
DOMElementtagorigComb()
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
DOMElementtagpag()
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
DOMElementtagPIS()
Grupo PIS Q01 pai M01 tag NFe/infNFe/det[]/imposto/PIS
public
tagPIS(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagPISST()
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
DOMElementtagprocRef()
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
DOMElementtagprod()
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
DOMElementtagprodObsCont()
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|nulltagprodObsFisco()
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|nulltagRastro()
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
DOMElementtagreboque()
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
DOMElementtagRECOPI()
tag NFe/infNFe/det[item]/prod/nRECOPI
public
tagRECOPI(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagrefCTe()
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
DOMElementtagrefECF()
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
DOMElementtagrefNF()
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
DOMElementtagrefNFe()
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
Return values
DOMElementtagrefNFP()
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
DOMElementtagretirada()
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
DOMElementtagretTransp()
Grupo Retenção ICMS transporte X11 pai X01 tag NFe/infNFe/transp/retTransp (opcional)
public
tagretTransp(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagretTrib()
Grupo Retenções de Tributos W23 pai W01 tag NFe/infNFe/total/reTrib (opcional)
public
tagretTrib(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagtransp()
Grupo Informações do Transporte X01 pai A01 tag NFe/infNFe/transp (obrigatório)
public
tagtransp(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagtransporta()
Grupo Transportador X03 pai X01 tag NFe/infNFe/transp/tranporta (opcional)
public
tagtransporta(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementtagvagao()
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
DOMElementtagveicTransp()
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
DOMElementtagvol()
Grupo Volumes X26 pai X01 tag NFe/infNFe/transp/vol (opcional)
public
tagvol(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Return values
DOMElementbuildCobr()
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
DOMElementbuildCOFINSNT()
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
DOMElementbuildCOFINSoutr()
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
DOMElementbuildDet()
Insere dentro da tag det os produtos tag NFe/infNFe/det[]
protected
buildDet() : array<string|int, mixed>|string
Return values
array<string|int, mixed>|stringbuildImp()
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
DOMElementbuildISSQNTot()
protected
buildISSQNTot() : mixed
buildNFe()
Tag raiz da NFe tag NFe DOMNode Função chamada pelo método [ monta ]
protected
buildNFe() : DOMElement
Return values
DOMElementbuildNFref()
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|nullequilizeParameters()
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
stdClasshashCSRT()
Calcula hash sha1 retornando Base64Binary
protected
hashCSRT(string $CSRT) : string
Parameters
- $CSRT : string
Return values
stringgetNodeValue()
private
getNodeValue(DOMElement $node, string $name) : mixed
Parameters
- $node : DOMElement
- $name : string