Documentation

MakeDev
in package
uses TraitTagInfNfe, TraitTagIde, TraitTagGCompraGov, TraitTagGPagAntecipado, TraitTagEmit, TraitTagRefs, TraitTagDest, TraitTagRetirada, TraitTagEntrega, TraitTagAutXml, TraitTagDet, TraitTagDetOptions, TraitTagDetImposto, TraitTagDetICMS, TraitTagDetISSQN, TraitTagDetIPI, TraitTagDetII, TraitTagDetPIS, TraitTagDetCOFINS, TraitTagDetIS, TraitTagDetIBSCBS, TraitTagComb, TraitTagInfAdic, TraitTagInfRespTec, TraitTagCobr, TraitTagPag, TraitTagInfIntermed, TraitTagTransp, TraitTagExporta, TraitTagCompra, TraitTagCana, TraitTagAgropecuario, TraitTagTotal, TraitCalculations

FinalYes

Table of Contents

Constants

METHOD_CALCULATION_V1  = 1
METHOD_CALCULATION_V2  = 1

Properties

$chNFe  : string|null
$dom  : DOMImproved
$errors  : array<string|int, mixed>
$stdTot  : stdClass
$xml  : string
$aAdi  : array<string|int, mixed>
$aAgropecuarioDefensivo  : array<string|int, mixed>
$aArma  : array<string|int, mixed>
$aAutXML  : array<string|int, mixed>
$aCBSCredPres  : array<string|int, mixed>
$aCest  : array<string|int, mixed>
$aCOFINS  : array<string|int, mixed>
$aCOFINSST  : array<string|int, mixed>
$aComb  : array<string|int, mixed>
$aDeduc  : array<string|int, mixed>
$aDetExport  : array<string|int, mixed>
$aDetPag  : array<string|int, mixed>
$aDFeReferenciado  : array<string|int, mixed>
$aDI  : array<string|int, mixed>
$aEncerrante  : array<string|int, mixed>
$aForDia  : array<string|int, mixed>
$aGAjusteCompet  : array<string|int, mixed>
$aGCred  : array<string|int, mixed>
$aGCredPresIBSZFM  : array<string|int, mixed>
$aGCredPresOper  : array<string|int, mixed>
$aGEstornoCred  : array<string|int, mixed>
$aGIBSCBSMono  : array<string|int, mixed>
$aGper  : array<string|int, mixed>
$agropecuarioGuia  : DOMElement|null
$aGTransfCred  : array<string|int, mixed>
$aGTribCompraGov  : array<string|int, mixed>
$aGTribRegular  : array<string|int, mixed>
$aIBSCBS  : array<string|int, mixed>
$aIBSCredPres  : array<string|int, mixed>
$aICMS  : array<string|int, mixed>
$aICMSPart  : array<string|int, mixed>
$aICMSSN  : array<string|int, mixed>
$aICMSST  : 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>
$aIS  : array<string|int, mixed>
$aISSQN  : array<string|int, mixed>
$aLacre  : 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>
$aObsItem  : 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>
$aRastro  : array<string|int, mixed>
$aReboque  : array<string|int, mixed>
$aRECOPI  : array<string|int, mixed>
$aVeicProd  : array<string|int, mixed>
$aVItem  : array<string|int, mixed>
$aVItemStruct  : array<string|int, mixed>
$aVol  : array<string|int, mixed>
$balsa  : DOMElement|null
$calculationMethod  : int
$cana  : DOMElement|null
$checkgtin  : bool
$cobr  : DOMElement|null
$compra  : DOMElement|null
$crt  : int
$csrt  : string
$cst_ibscbs  : string
$dataICMSTot  : array<string|int, mixed>
$dest  : DOMElement
$emit  : DOMElement
$enderDest  : DOMElement|null
$enderEmit  : DOMElement
$entrega  : DOMElement|null
$exporta  : DOMElement|null
$flagIBSCBS  : bool
$flagIS  : bool
$flagMono  : bool
$gCompraGov  : DOMElement|null
$gPagAntecipado  : DOMElement|null
$IBSCBSTot  : DOMElement|null
$ICMSTot  : DOMElement
$ide  : DOMElement
$indDeduzDeson  : int
$infAdic  : DOMElement|null
$infIntermed  : DOMElement|null
$infNFe  : DOMElement
$infNFeSupl  : DOMElement|null
$infRespTec  : DOMElement|null
$ISSQNTot  : DOMElement|null
$ISTot  : DOMElement|null
$mod  : string
$NFe  : DOMElement
$pag  : DOMElement
$replaceAccentedChars  : bool
$retirada  : DOMElement|null
$retTransp  : DOMElement|null
$retTrib  : DOMElement|null
$schema  : int
$stdIBSCBSTot  : stdClass
$stdISSQNTot  : stdClass
$stdIStot  : stdClass
$tpAmb  : int
$transp  : DOMElement|null
$transporta  : DOMElement|null
$vagao  : DOMElement|null
$veicTransp  : DOMElement|null
$version  : string

Methods

__construct()  : mixed
Função construtora cria um objeto DOMDocument que será carregado com o documento fiscal
buildTagICMSTot()  : DOMElement
Construtor do grupo ICMSTot tag NFe/infNFe/total/ICMSTot
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
montaNFe()  : string
Call method of xml assembly. For compatibility only.
render()  : string
setCalculationMethod()  : void
Seleciona o forma de calculo do valor de vItem e do valor de VNFTot METHOD_CALCULATION_V1 = usa os valores recolhidos durante a entrada de dados METHOD_CALCULATION_V1 = obtem os valores das tags já construidas dos itens
setCheckGtin()  : void
Set if GTIN is or not validate
setOnlyAscii()  : void
Set character convertion to ASCII only ou not
tagadi()  : DOMElement
Adições I25 pai I18 tag NFe/infNFe/det[]/prod/DI/adi
tagAgropecuarioDefensivo()  : DOMElement
Bloco defencivo de 0 a 20 ocorrencias tag NFe/infNFe/agropecuario/defensivo (opcional)
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()  : DOMElement|null
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
Define a tag referente ao Código Especificador da Substituição Tributária (CEST).
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| NOTA: Ajustado para NT2016_002_v1.30 LA|cProdANP|descANP|pGLP|pGNn|pGNi|vPart|CODIF|qTemp|UFCons|
tagcompra()  : DOMElement
Grupo Compra ZB01 pai A01 tag NFe/infNFe/compra (opcional)
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
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
tagDFeReferenciado()  : DOMElement
Referenciamento de item de outros DFe
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
taggAjusteCompet()  : DOMElement
Grupo Ajuste de Competência det/imposto/IBSCBS/gAjusteCompet $this->aIBSCBS[item] append $this->aGAjusteCompet[item] NT 2025.002_v1.30 - PL_010_V1.30
taggCompraGov()  : DOMElement
Informação de compras governamentais B31 pai B01 tag NFe/infNFe/ide/gCompraGov (opcional)
taggCred()  : DOMElement
Grupo de informações sobre o CréditoPresumido no Item tag NFe/infNFe/det[item]/gCred (opcional)
taggCredPresIBSZFM()  : DOMElement
Grupo de Crédito Presumido de IBS com a ZF de Manaus det/imposto/IBSCBS/gCredPresIBSZFM $this->aIBSCBS[item] append $this->aGCredPresIBSZFM[item] NT 2025.002_v1.30 - PL_010_V1.30
taggCredPresOper()  : DOMElement
Grupo de Crédito Presumido da Operação det/imposto/IBSCBS/gCredPresOper $this->aIBSCBS[item] append $this->aGCredPresOper[item] NT 2025.002_v1.30 - PL_010_V1.30
taggEstornoCred()  : DOMElement
Grupo de Estorno de Crédito /det/imposto/IBSCBS/gEstornoCred $this->aIBSCBS[item] append $this->aGEstornoCred[item] NT 2025.002_v1.30 - PL_010_V1.30
taggPagAntecipado()  : DOMElement
taggTransfCred()  : DOMElement
Grupo de Transferecnia de Creditos det/imposto/IBSCBS/gTransfCred $this->aIBSCBS[item] append $this->aGTransfCred[item]
taggTribCompraGov()  : DOMElement
Grupo de Tributação em compras governamentais
tagIBSCBS()  : DOMElement
Informações do Imposto de Bens e Serviços - IBS e da Contribuição de Bens e Serviços - CBS UB12 pai M01 $this->>aIBSCBS[$item] IBSCBS/gIBSCBS/gIBSUF UB17 pai UB15 IBSCBS/gIBSCBS/gIBSMun UB36 pai UB15 IBSCBS/gIBSCBS/gCBS UB55 pai UB15
tagIBSCBSMono()  : DOMElement
Grupo o IBS e CBS em operações com imposto monofásico (Combustiveis) UB84 pai UB12 $this->aIBSCBS[$item] ->append($this->aIBSCBSMono[$item]) IBSCBS/gIBSCBSMono
tagIBSCBSTot()  : DOMElement
Totais da NF-e com IBS e CBS infNFe/total/IBSCBSTot NT 2025.002_v1.30 - PL_010_V1.30
tagIBSCBSTribRegular()  : DOMElement
Grupo de informações da Tributação Regular UB68 pai UB15 $this->aGTribRegular[$item]/gTribRegular IBSCBS/gIBSCBS/gTribRegular
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 NOTA: Ajustado para NT2023_0001_v1.10
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()  : void
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
Grupo infIntermed YB01 pai A01 tag NFe/infNFe/infIntermed (opcional)
tagIPI()  : DOMElement
Grupo IPI O01 pai M01 tag NFe/infNFe/det[]/imposto/IPI (opcional)
tagIS()  : DOMElement
Grupo IS (Imposto selectivo) UB01 pai H01
tagISSQN()  : DOMElement
Grupo ISSQN U01 pai M01 tag NFe/infNFe/det[]/imposto/ISSQN (opcional)
tagISSQNTot()  : DOMElement|false
Grupo Totais referentes ao ISSQN W17 pai W01 tag NFe/infNFe/total/ISSQNTot (opcional)
tagISTot()  : DOMElement|false
Grupo total do imposto seletivo total/ISTot 2025.002_v1.30 - PL_010_V1.30
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)
tagobsFisco()  : DOMElement
Grupo Campo de uso livre do Fisco Z07 pai Z01 tag NFe/infNFe/infAdic/obsFisco (opcional)
tagObsItem()  : DOMElement|null
Grupo de observações de uso livre (para o item da NF-e) Grupo de observações de uso livre do Contribuinte
tagorigComb()  : DOMElement
Grupo indicador da origem do combustível LA18 pai LA01 tag NFe/infNFe/det[]/prod/comb/origComb[] NOTA: Adicionado para NT2023_0001_v1.10
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)
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 NOTA: Ajustado para NT2025_002_v1.01
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|null
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)
tagTotal()  : float
Valor vNTTot tag NFe/infNFe/total/vNFTot
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()  : DOMElement|null
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)
addTag()  : void
Adiciona tag filhas a tag Pai
addTagAgropecuario()  : void
Adiciona a tag agropacuario. Esta tag foi removida no PL_010
addTagAutXML()  : void
Adiciona as tags autXML na tag infNFe
addTagCana()  : void
Adiciona a tag cana a infNFe
addTagDest()  : void
Adiciona a tag dest na tag infNFe
addTagDet()  : void
Monta e adiciona as tags det a tag infNFe
addTagEmit()  : void
Adiciona a tag emit na tag infNFe
addTagPag()  : void
Adiciona a tag pag a infNFe
addTagRefToIde()  : void
Adiciona as tags NFref na tag ide NFref => tag ide
addTagTotal()  : void
Monta e adiciona a tag total na tag infNFe
addTagTransp()  : void
Adiciona a tag transp na tag infNFe
adjustingStrings()  : string|null
Adjust the text size to the maximum acceptable size
buildCobr()  : void
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 ]
buildInfoTags()  : void
buildNFe()  : DOMElement
Tag raiz da NFe tag NFe DOMNode Função chamada pelo método [ render ]
buildTotalICMS()  : mixed
Grupo Totais da NF-e W01 pai A01 tag NFe/infNFe/total
buildVol()  : mixed
Node vol
calculateTtensValues1()  : void
Calculates and updates the value of items based on various parameters.
calculateTtensValues2()  : void
Calcula o vItem compo introduzido com o PL_010 que se refere ao total do item com o IBS/CBS/IS
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 Convert all properties of object in lower case Replace all unsuported chars from data
hashCSRT()  : string
Calcula hash sha1 retornando Base64Binary
propertiesToBack()  : stdClass
Return properties do original name
propertiesToLower()  : stdClass
Change properties names of object to lower case
reCalculateNFTotValue()  : float
Recalcula o valor de vNFTot com base nos valores já inseridos no XML

Constants

METHOD_CALCULATION_V1

public mixed METHOD_CALCULATION_V1 = 1

METHOD_CALCULATION_V2

public mixed METHOD_CALCULATION_V2 = 1

Properties

$errors

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

$aAdi

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

$aAgropecuarioDefensivo

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

$aArma

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

$aAutXML

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

$aCBSCredPres

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

$aCest

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

$aCOFINS

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

$aCOFINSST

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

$aComb

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

$aDeduc

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

$aDetExport

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

$aDetPag

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

$aDFeReferenciado

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

$aDI

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

$aEncerrante

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

$aForDia

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

$aGAjusteCompet

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

$aGCred

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

$aGCredPresIBSZFM

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

$aGCredPresOper

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

$aGEstornoCred

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

$aGIBSCBSMono

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

$aGper

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

$agropecuarioGuia

protected DOMElement|null $agropecuarioGuia

$aGTransfCred

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

$aGTribCompraGov

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

$aGTribRegular

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

$aIBSCBS

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

$aIBSCredPres

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

$aICMS

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

$aICMSPart

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

$aICMSSN

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

$aICMSST

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

$aICMSUFDest

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

$aII

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

$aImposto

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

$aImpostoDevol

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

$aInfAdProd

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

$aIPI

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

$aIS

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

$aISSQN

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

$aLacre

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

$aMed

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

$aNFref

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

$aNVE

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

$aObsCont

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

$aObsFisco

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

$aObsItem

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

$aOrigComb

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

$aPIS

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

$aPISST

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

$aProcRef

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

$aProd

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

$aRastro

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

$aReboque

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

$aRECOPI

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

$aVeicProd

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

$aVItem

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

$aVItemStruct

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

$aVol

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

$balsa

protected DOMElement|null $balsa

$calculationMethod

protected int $calculationMethod = 2

$cana

protected DOMElement|null $cana

$checkgtin

protected bool $checkgtin = false

$cobr

protected DOMElement|null $cobr

$compra

protected DOMElement|null $compra

$cst_ibscbs

protected string $cst_ibscbs

$dataICMSTot

protected array<string|int, mixed> $dataICMSTot

$enderDest

protected DOMElement|null $enderDest

$enderEmit

protected DOMElement $enderEmit

$entrega

protected DOMElement|null $entrega

$exporta

protected DOMElement|null $exporta

$flagIBSCBS

protected bool $flagIBSCBS = false

$flagIS

protected bool $flagIS = false

$flagMono

protected bool $flagMono = false

$gCompraGov

protected DOMElement|null $gCompraGov

$gPagAntecipado

protected DOMElement|null $gPagAntecipado

$IBSCBSTot

protected DOMElement|null $IBSCBSTot

$ICMSTot

protected DOMElement $ICMSTot

$indDeduzDeson

protected int $indDeduzDeson = 0

$infAdic

protected DOMElement|null $infAdic

$infIntermed

protected DOMElement|null $infIntermed

$infNFe

protected DOMElement $infNFe

$infNFeSupl

protected DOMElement|null $infNFeSupl

$infRespTec

protected DOMElement|null $infRespTec

$ISSQNTot

protected DOMElement|null $ISSQNTot

$ISTot

protected DOMElement|null $ISTot

$replaceAccentedChars

protected bool $replaceAccentedChars = false

$retirada

protected DOMElement|null $retirada

$retTransp

protected DOMElement|null $retTransp

$retTrib

protected DOMElement|null $retTrib

$stdIBSCBSTot

protected stdClass $stdIBSCBSTot

$stdISSQNTot

protected stdClass $stdISSQNTot

$stdIStot

protected stdClass $stdIStot

$transp

protected DOMElement|null $transp

$transporta

protected DOMElement|null $transporta

$vagao

protected DOMElement|null $vagao

$veicTransp

protected DOMElement|null $veicTransp

Methods

__construct()

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

public __construct([mixed $schema = null ]) : mixed
Parameters
$schema : mixed = null

buildTagICMSTot()

Construtor do grupo ICMSTot tag NFe/infNFe/total/ICMSTot

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

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

montaNFe()

Call method of xml assembly. For compatibility only.

public montaNFe() : string
Return values
string

render()

public render() : string
Return values
string

setCalculationMethod()

Seleciona o forma de calculo do valor de vItem e do valor de VNFTot METHOD_CALCULATION_V1 = usa os valores recolhidos durante a entrada de dados METHOD_CALCULATION_V1 = obtem os valores das tags já construidas dos itens

public setCalculationMethod([int $method = self::METHOD_CALCULATION_V2 ]) : void
Parameters
$method : int = self::METHOD_CALCULATION_V2

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 ]) : void
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
Tags
throws
DOMException
Return values
DOMElement

tagAgropecuarioDefensivo()

Bloco defencivo de 0 a 20 ocorrencias tag NFe/infNFe/agropecuario/defensivo (opcional)

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
Tags
throws
DOMException
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) : DOMElement|null
Parameters
$std : stdClass
Tags
throws
DOMException
Return values
DOMElement|null

tagcana()

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

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

tagCEST()

Define a tag referente ao Código Especificador da Substituição Tributária (CEST).

public tagCEST(stdClass $std) : DOMElement

tag NFe/infNFe/det[]/prod/CEST

Parameters
$std : stdClass

Objeto contendo os parâmetros necessários, incluindo item, CEST, indEscala e CNPJFab.

Tags
throws
DOMException

Caso ocorra um erro na manipulação do DOM.

Return values
DOMElement

Elemento DOM representando o Código Especificador da Substituição Tributária (CEST).

tagCOFINS()

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

public tagCOFINS(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
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
Tags
throws
DOMException
Return values
DOMElement

tagcomb()

Detalhamento de combustiveis L101 pai I90 tag NFe/infNFe/det[]/prod/comb (opcional) LA|cProdANP|pMixGN|CODIF|qTemp|UFCons| NOTA: Ajustado para NT2016_002_v1.30 LA|cProdANP|descANP|pGLP|pGNn|pGNi|vPart|CODIF|qTemp|UFCons|

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

tagcompra()

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

public tagcompra(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
Return values
DOMElement

tagDFeReferenciado()

Referenciamento de item de outros DFe

public tagDFeReferenciado(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
Return values
DOMElement

tagfat()

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

public tagfat(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
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
Tags
throws
DOMException
Return values
DOMElement

taggAjusteCompet()

Grupo Ajuste de Competência det/imposto/IBSCBS/gAjusteCompet $this->aIBSCBS[item] append $this->aGAjusteCompet[item] NT 2025.002_v1.30 - PL_010_V1.30

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

taggCompraGov()

Informação de compras governamentais B31 pai B01 tag NFe/infNFe/ide/gCompraGov (opcional)

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

taggCred()

Grupo de informações sobre o CréditoPresumido no Item tag NFe/infNFe/det[item]/gCred (opcional)

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

taggCredPresIBSZFM()

Grupo de Crédito Presumido de IBS com a ZF de Manaus det/imposto/IBSCBS/gCredPresIBSZFM $this->aIBSCBS[item] append $this->aGCredPresIBSZFM[item] NT 2025.002_v1.30 - PL_010_V1.30

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

taggCredPresOper()

Grupo de Crédito Presumido da Operação det/imposto/IBSCBS/gCredPresOper $this->aIBSCBS[item] append $this->aGCredPresOper[item] NT 2025.002_v1.30 - PL_010_V1.30

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

taggEstornoCred()

Grupo de Estorno de Crédito /det/imposto/IBSCBS/gEstornoCred $this->aIBSCBS[item] append $this->aGEstornoCred[item] NT 2025.002_v1.30 - PL_010_V1.30

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

taggPagAntecipado()

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

taggTransfCred()

Grupo de Transferecnia de Creditos det/imposto/IBSCBS/gTransfCred $this->aIBSCBS[item] append $this->aGTransfCred[item]

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

taggTribCompraGov()

Grupo de Tributação em compras governamentais

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

tagIBSCBS()

Informações do Imposto de Bens e Serviços - IBS e da Contribuição de Bens e Serviços - CBS UB12 pai M01 $this->>aIBSCBS[$item] IBSCBS/gIBSCBS/gIBSUF UB17 pai UB15 IBSCBS/gIBSCBS/gIBSMun UB36 pai UB15 IBSCBS/gIBSCBS/gCBS UB55 pai UB15

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

tagIBSCBSMono()

Grupo o IBS e CBS em operações com imposto monofásico (Combustiveis) UB84 pai UB12 $this->aIBSCBS[$item] ->append($this->aIBSCBSMono[$item]) IBSCBS/gIBSCBSMono

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

tagIBSCBSTot()

Totais da NF-e com IBS e CBS infNFe/total/IBSCBSTot NT 2025.002_v1.30 - PL_010_V1.30

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

tagIBSCBSTribRegular()

Grupo de informações da Tributação Regular UB68 pai UB15 $this->aGTribRegular[$item]/gTribRegular IBSCBS/gIBSCBS/gTribRegular

public tagIBSCBSTribRegular(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
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 NOTA: Ajustado para NT2023_0001_v1.10

public tagICMS(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
Return values
DOMElement

tagICMSTot()

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

public tagICMSTot(stdClass $std) : void
Parameters
$std : stdClass

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
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
Return values
DOMElement

taginfNFe()

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

public taginfNFe(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
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
DOMException
Return values
DOMElement

tagIntermed()

Grupo infIntermed YB01 pai A01 tag NFe/infNFe/infIntermed (opcional)

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

tagIPI()

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

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

tagIS()

Grupo IS (Imposto selectivo) UB01 pai H01

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

tagISSQN()

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

public tagISSQN(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
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|false
Parameters
$std : stdClass|null = null
Tags
throws
DOMException
Return values
DOMElement|false

tagISTot()

Grupo total do imposto seletivo total/ISTot 2025.002_v1.30 - PL_010_V1.30

public tagISTot(stdClass $std) : DOMElement|false
Parameters
$std : stdClass
Tags
throws
DOMException
Return values
DOMElement|false

taglacres()

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

public taglacres(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
Return values
DOMElement|null

tagobsCont()

Grupo Campo de uso livre do contribuinte Z04 pai Z01 tag NFe/infNFe/infAdic/obsCont (opcional)

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)

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

tagObsItem()

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

public tagObsItem(stdClass $std) : DOMElement|null
Parameters
$std : stdClass
Tags
throws
DOMException
Return values
DOMElement|null

tagorigComb()

Grupo indicador da origem do combustível LA18 pai LA01 tag NFe/infNFe/det[]/prod/comb/origComb[] NOTA: Adicionado para NT2023_0001_v1.10

public tagorigComb(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
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
Tags
throws
DOMException
Return values
DOMElement

tagPIS()

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

public tagPIS(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
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
Tags
throws
DOMException
Return values
DOMElement

tagprocRef()

Grupo Processo referenciado Z10 pai Z01 tag NFe/infNFe/procRef (opcional)

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 NOTA: Ajustado para NT2025_002_v1.01

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

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
Tags
throws
DOMException
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
Tags
throws
DOMException
Return values
DOMElement

tagRECOPI()

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

public tagRECOPI(stdClass $std) : DOMElement|null
Parameters
$std : stdClass
Tags
throws
DOMException
Return values
DOMElement|null

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
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
Return values
DOMElement

tagTotal()

Valor vNTTot tag NFe/infNFe/total/vNFTot

public tagTotal(stdClass $std) : float
Parameters
$std : stdClass
Return values
float

tagtransp()

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

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

tagtransporta()

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

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

tagvagao()

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

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

tagveicProd()

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

public tagveicProd(stdClass $std) : DOMElement
Parameters
$std : stdClass
Tags
throws
DOMException
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
Tags
throws
DOMException
Return values
DOMElement

tagvol()

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

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

addTag()

Adiciona tag filhas a tag Pai

protected addTag([DOMElement|null &$parent = null ][, DOMElement|null $child = null ][, string $msg = '' ]) : void
Parameters
$parent : DOMElement|null = null
$child : DOMElement|null = null
$msg : string = ''

addTagAgropecuario()

Adiciona a tag agropacuario. Esta tag foi removida no PL_010

protected addTagAgropecuario() : void
Tags
throws
DOMException

addTagAutXML()

Adiciona as tags autXML na tag infNFe

protected addTagAutXML() : void

addTagCana()

Adiciona a tag cana a infNFe

protected addTagCana() : void

addTagDest()

Adiciona a tag dest na tag infNFe

protected addTagDest() : void

addTagDet()

Monta e adiciona as tags det a tag infNFe

protected addTagDet() : void
Tags
throws
DOMException

addTagEmit()

Adiciona a tag emit na tag infNFe

protected addTagEmit() : void

addTagPag()

Adiciona a tag pag a infNFe

protected addTagPag() : void

addTagRefToIde()

Adiciona as tags NFref na tag ide NFref => tag ide

protected addTagRefToIde() : void

addTagTotal()

Monta e adiciona a tag total na tag infNFe

protected addTagTotal() : void
Tags
throws
DOMException

addTagTransp()

Adiciona a tag transp na tag infNFe

protected addTagTransp() : void

adjustingStrings()

Adjust the text size to the maximum acceptable size

protected adjustingStrings(string|null $string[, int $max = 0 ]) : string|null
Parameters
$string : string|null
$max : int = 0
Return values
string|null

buildCobr()

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

protected buildCobr() : void
Tags
throws
DOMException

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
Tags
throws
DOMException
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
Tags
throws
DOMException
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
Tags
throws
DOMException
Return values
DOMElement

buildInfoTags()

protected buildInfoTags() : void
Tags
throws
DOMException

buildNFe()

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

protected buildNFe() : DOMElement
Tags
throws
DOMException
Return values
DOMElement

buildTotalICMS()

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

protected buildTotalICMS() : mixed

calculateTtensValues1()

Calculates and updates the value of items based on various parameters.

protected calculateTtensValues1() : void

Adjusts item values based on the operation type and specific financial attributes. Updates the calculated value for each item in the internal data structure.

calculateTtensValues2()

Calcula o vItem compo introduzido com o PL_010 que se refere ao total do item com o IBS/CBS/IS

protected calculateTtensValues2(DOMElement $det) : void
Parameters
$det : DOMElement

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
Tags
throws
Exception

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 Convert all properties of object in lower case Replace all unsuported chars from data

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

hashCSRT()

Calcula hash sha1 retornando Base64Binary

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

propertiesToBack()

Return properties do original name

protected static propertiesToBack(stdClass $data, array<string|int, mixed> $possible) : stdClass
Parameters
$data : stdClass
$possible : array<string|int, mixed>
Return values
stdClass

propertiesToLower()

Change properties names of object to lower case

protected static propertiesToLower(stdClass $data) : stdClass
Parameters
$data : stdClass
Return values
stdClass

reCalculateNFTotValue()

Recalcula o valor de vNFTot com base nos valores já inseridos no XML

protected reCalculateNFTotValue() : float
Return values
float

        
On this page

Search results