Make
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
Table of Contents
Constants
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>
- $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>
- $agropecuarioGuia : DOMElement|null
- $aGTransfCred : array<string|int, mixed>
- $aGTribCompraGov : array<string|int, mixed>
- $aGTribRegular : array<string|int, mixed>
- $aIBSCBS : 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
$chNFe
public
string|null
$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
= []
$aAgropecuarioDefensivo
protected
array<string|int, mixed>
$aAgropecuarioDefensivo
= []
$aArma
protected
array<string|int, mixed>
$aArma
= []
$aAutXML
protected
array<string|int, mixed>
$aAutXML
= []
$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
= []
$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
= []
$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
$crt
protected
int
$crt
$csrt
protected
string
$csrt
$cst_ibscbs
protected
string
$cst_ibscbs
$dataICMSTot
protected
array<string|int, mixed>
$dataICMSTot
$dest
protected
DOMElement
$dest
$emit
protected
DOMElement
$emit
$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
$ide
protected
DOMElement
$ide
$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
$mod
protected
string
$mod
= '55'
$NFe
protected
DOMElement
$NFe
$pag
protected
DOMElement
$pag
$replaceAccentedChars
protected
bool
$replaceAccentedChars
= false
$retirada
protected
DOMElement|null
$retirada
$retTransp
protected
DOMElement|null
$retTransp
$retTrib
protected
DOMElement|null
$retTrib
$schema
protected
int
$schema
$stdIBSCBSTot
protected
stdClass
$stdIBSCBSTot
$stdISSQNTot
protected
stdClass
$stdISSQNTot
$stdIStot
protected
stdClass
$stdIStot
$tpAmb
protected
int
$tpAmb
= 2
$transp
protected
DOMElement|null
$transp
$transporta
protected
DOMElement|null
$transporta
$vagao
protected
DOMElement|null
$vagao
$veicTransp
protected
DOMElement|null
$veicTransp
$version
protected
string
$version
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
Return values
DOMElementgetChave()
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
stringmontaNFe()
Call method of xml assembly. For compatibility only.
public
montaNFe() : string
Return values
stringrender()
public
render() : string
Return values
stringsetCalculationMethod()
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
Return values
DOMElementtagAgropecuarioDefensivo()
Bloco defencivo de 0 a 20 ocorrencias tag NFe/infNFe/agropecuario/defensivo (opcional)
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
Tags
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) : DOMElement|null
Parameters
- $std : stdClass
Tags
Return values
DOMElement|nulltagcana()
Grupo Cana ZC01 pai A01 tag NFe/infNFe/cana (opcional)
public
tagcana(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
Return values
DOMElementtagCEST()
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
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
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
Tags
Return values
DOMElementtagcomb()
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
Return values
DOMElementtagcompra()
Grupo Compra ZB01 pai A01 tag NFe/infNFe/compra (opcional)
public
tagcompra(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
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
Tags
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
Tags
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
Tags
Return values
DOMElementtagDFeReferenciado()
Referenciamento de item de outros DFe
public
tagDFeReferenciado(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
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
Tags
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
Tags
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
Tags
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
Tags
Return values
DOMElementtagfat()
Grupo Fatura Y02 pai Y01 tag NFe/infNFe/cobr/fat (opcional)
public
tagfat(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
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
Tags
Return values
DOMElementtaggAjusteCompet()
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
Return values
DOMElementtaggCompraGov()
Informação de compras governamentais B31 pai B01 tag NFe/infNFe/ide/gCompraGov (opcional)
public
taggCompraGov(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
Return values
DOMElementtaggCred()
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
Return values
DOMElementtaggCredPresIBSZFM()
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
Return values
DOMElementtaggCredPresOper()
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
Return values
DOMElementtaggEstornoCred()
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
Return values
DOMElementtaggPagAntecipado()
public
taggPagAntecipado(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
Return values
DOMElementtaggTransfCred()
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
Return values
DOMElementtaggTribCompraGov()
Grupo de Tributação em compras governamentais
public
taggTribCompraGov(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
Return values
DOMElementtagIBSCBS()
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
Return values
DOMElementtagIBSCBSMono()
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
Return values
DOMElementtagIBSCBSTot()
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
Return values
DOMElementtagIBSCBSTribRegular()
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
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 NOTA: Ajustado para NT2023_0001_v1.10
public
tagICMS(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
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
Tags
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
Tags
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
Tags
Return values
DOMElementtagICMSTot()
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
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
Tags
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
Tags
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
Tags
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
Tags
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
Tags
Return values
DOMElementtaginfNFe()
Informações da NF-e A01 pai NFe tag NFe/infNFe
public
taginfNFe(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
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()
Grupo infIntermed YB01 pai A01 tag NFe/infNFe/infIntermed (opcional)
public
tagIntermed(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
Return values
DOMElementtagIPI()
Grupo IPI O01 pai M01 tag NFe/infNFe/det[]/imposto/IPI (opcional)
public
tagIPI(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
Return values
DOMElementtagIS()
Grupo IS (Imposto selectivo) UB01 pai H01
public
tagIS(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
Return values
DOMElementtagISSQN()
Grupo ISSQN U01 pai M01 tag NFe/infNFe/det[]/imposto/ISSQN (opcional)
public
tagISSQN(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
Return values
DOMElementtagISSQNTot()
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
Return values
DOMElement|falsetagISTot()
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
Return values
DOMElement|falsetaglacres()
Grupo Lacres X33 pai X26 tag NFe/infNFe/transp/vol/lacres (opcional)
public
taglacres(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
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
Tags
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
Tags
Return values
DOMElement|nulltagobsCont()
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
DOMElementtagobsFisco()
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
DOMElementtagObsItem()
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
Return values
DOMElement|nulltagorigComb()
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
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
Tags
Return values
DOMElementtagPIS()
Grupo PIS Q01 pai M01 tag NFe/infNFe/det[]/imposto/PIS
public
tagPIS(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
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
Tags
Return values
DOMElementtagprocRef()
Grupo Processo referenciado Z10 pai Z01 tag NFe/infNFe/procRef (opcional)
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 NOTA: Ajustado para NT2025_002_v1.01
public
tagprod(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
Return values
DOMElementtagRastro()
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
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
Tags
Return values
DOMElementtagRECOPI()
tag NFe/infNFe/det[item]/prod/nRECOPI
public
tagRECOPI(stdClass $std) : DOMElement|null
Parameters
- $std : stdClass
Tags
Return values
DOMElement|nulltagrefCTe()
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
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
Tags
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
Tags
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
Tags
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
Tags
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
Tags
Return values
DOMElementtagTotal()
Valor vNTTot tag NFe/infNFe/total/vNFTot
public
tagTotal(stdClass $std) : float
Parameters
- $std : stdClass
Return values
floattagtransp()
Grupo Informações do Transporte X01 pai A01 tag NFe/infNFe/transp (obrigatório)
public
tagtransp(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
Return values
DOMElementtagtransporta()
Grupo Transportador X03 pai X01 tag NFe/infNFe/transp/tranporta (opcional)
public
tagtransporta(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
Return values
DOMElementtagvagao()
Campo Vagao X25a pai X01 tag NFe/infNFe/transp/vagao (opcional)
public
tagvagao(stdClass $std) : DOMElement|null
Parameters
- $std : stdClass
Return values
DOMElement|nulltagveicProd()
Detalhamento de Veículos novos J01 pai I90 tag NFe/infNFe/det[]/prod/veicProd (opcional)
public
tagveicProd(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
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
Tags
Return values
DOMElementtagvol()
Grupo Volumes X26 pai X01 tag NFe/infNFe/transp/vol (opcional)
public
tagvol(stdClass $std) : DOMElement
Parameters
- $std : stdClass
Tags
Return values
DOMElementaddTag()
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
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
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
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|nullbuildCobr()
Grupo Cobrança Y01 pai A01 tag NFe/infNFe/cobr (opcional) Depende de fat
protected
buildCobr() : void
Tags
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
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
Tags
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
Tags
Return values
DOMElementbuildInfoTags()
protected
buildInfoTags() : void
Tags
buildNFe()
Tag raiz da NFe tag NFe DOMNode Função chamada pelo método [ render ]
protected
buildNFe() : DOMElement
Tags
Return values
DOMElementbuildTotalICMS()
Grupo Totais da NF-e W01 pai A01 tag NFe/infNFe/total
protected
buildTotalICMS() : mixed
buildVol()
Node vol
protected
buildVol() : 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
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 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
stdClasshashCSRT()
Calcula hash sha1 retornando Base64Binary
protected
hashCSRT(string $CSRT) : string
Parameters
- $CSRT : string
Return values
stringpropertiesToBack()
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
stdClasspropertiesToLower()
Change properties names of object to lower case
protected
static propertiesToLower(stdClass $data) : stdClass
Parameters
- $data : stdClass
Return values
stdClassreCalculateNFTotValue()
Recalcula o valor de vNFTot com base nos valores já inseridos no XML
protected
reCalculateNFTotValue() : float