node-sped-nfe 1.2.44 → 1.2.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +0 -0
- package/README.md +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/utils/eventos.d.ts +0 -0
- package/dist/utils/eventos.js +0 -0
- package/dist/utils/extras.d.ts +0 -0
- package/dist/utils/extras.js +0 -0
- package/dist/utils/make.d.ts +3 -2
- package/dist/utils/make.js +198 -44
- package/dist/utils/tools.d.ts +5 -1
- package/dist/utils/tools.js +2 -2
- package/package.json +4 -3
- package/schemas/PL_010_V1/110150_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/Averb_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/CCe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/DFeTiposBasicos_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/EPEC_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/EPP1.xml +0 -0
- package/schemas/PL_010_V1/ERP1.xml +0 -0
- package/schemas/PL_010_V1/EventoCancEConf_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/EventoCancInsucessoNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/EventoEConf_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/EventoInsucessoNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/MT_inutNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/SuframaInternaliza_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/SuframaVistoria_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/confRecebto_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/consCad_v2.00.xsd +0 -0
- package/schemas/PL_010_V1/consGTIN_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/consNFeDest_v1.01.xsd +0 -0
- package/schemas/PL_010_V1/consReciNFe_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/consReciNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/consSitNFe_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/consSitNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/consStatServ_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/consStatServ_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/distDFeInt_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/distDFeInt_v1.01.xsd +0 -0
- package/schemas/PL_010_V1/downloadNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e110110_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e110111_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e110112_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e110130_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e110131_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e110140NFCe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e110140NFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e110140_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e110150_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e110192_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e110193_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e110750_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e110751_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e111500_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e111501_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e111502_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e111503_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e210200_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e210210_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e210220_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e210240_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e411500_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e411501_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e411502_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e411503_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e610130_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e610131_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e790700_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e990900_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/e990910_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envAverb_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envCCe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envCancelPProrrogNFe_v1.0.xsd +0 -0
- package/schemas/PL_010_V1/envComprovanteEntregaNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envConfRecebto_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envEPEC_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envEventoAtorInteressado_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envEventoCancEConf_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envEventoCancEntregaNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envEventoCancInsucessoNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envEventoCancNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envEventoCancSubst_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envEventoEConf_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envEventoEntregaNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envEventoInsucessoNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envEvento_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envFiscoNfe_v1.0.xsd +0 -0
- package/schemas/PL_010_V1/envPProrrogNFe_v1.0.xsd +0 -0
- package/schemas/PL_010_V1/envRemIndus_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envSuframaInternaliza_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/envSuframaVistoria_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/enviNFe_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/enviNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/eventoAtorInteressado_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/eventoCancEntregaNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/eventoCancNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/eventoCancSubst_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/eventoEPEC_v0.01.xsd +0 -0
- package/schemas/PL_010_V1/eventoEPEC_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/eventoEntregaNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/eventoRemIndus_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/inutNFe_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/inutNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteAverb_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteCCe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteCcgConsGTIN_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteComprovanteEntregaNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteConfRecebto_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteConsNFeDest_v1.01.xsd +0 -0
- package/schemas/PL_010_V1/leiauteConsSitNFe_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/leiauteConsSitNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteConsStatServ_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/leiauteConsStatServ_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteConsultaCadastro_v2.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteDownloadNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteEPEC_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteEventoAtorInteressado_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteEventoCancEConf_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteEventoCancEntregaNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteEventoCancInsucessoNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteEventoCancNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteEventoCancSubst_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteEventoEConf_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteEventoEntregaNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteEventoInsucessoNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteEvento_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteInutNFe_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/leiauteInutNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteInutNFe_v4.00_MT.xsd +0 -0
- package/schemas/PL_010_V1/leiauteNFe_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/leiauteNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteRemIndus_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteSuframaInternaliza_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/leiauteSuframaVistoria_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/nfe_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/nfe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/procAverbNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procCCeNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procComprovanteEntregaNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procConfRecebtoNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procEPEC_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procEventoAtorInteressado_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procEventoCancEConf_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procEventoCancEntregaNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procEventoCancInsucessoNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procEventoCancNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procEventoCancSubst_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procEventoEConf_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procEventoEntregaNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procEventoInsucessoNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procEventoNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/procEventoNFe_v99.99.xsd +0 -0
- package/schemas/PL_010_V1/procInutNFe_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/procInutNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/procNFe_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/procNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/procRemIndus_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/prod_leiauteNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/resEvento_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/resEvento_v1.01.xsd +0 -0
- package/schemas/PL_010_V1/resNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/resNFe_v1.01.xsd +0 -0
- package/schemas/PL_010_V1/retComprovanteEntregaNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retConsCad_v2.00.xsd +0 -0
- package/schemas/PL_010_V1/retConsGTIN_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retConsReciNFe_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/retConsReciNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/retConsSitNFe_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/retConsSitNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/retConsStatServ_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/retConsStatServ_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/retDistDFeInt_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retDistDFeInt_v1.01.xsd +0 -0
- package/schemas/PL_010_V1/retDownloadNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEnvAverb_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEnvAverb_v1.00_1.xsd +0 -0
- package/schemas/PL_010_V1/retEnvCCe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEnvCancelPProrrogNFe_v1.0.xsd +0 -0
- package/schemas/PL_010_V1/retEnvConfRecebto_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEnvEPEC_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEnvEventoAtorInteressado_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEnvEventoCancNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEnvEventoCancSubst_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEnvEvento_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEnvFiscoNFe_v1.0.xsd +0 -0
- package/schemas/PL_010_V1/retEnvRemIndus_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEnvSuframaInternaliza_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEnvSuframaVistoria_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEnviNFe_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/retEnviNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/retEventoCancEConf_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEventoCancEntregaNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEventoCancInsucessoNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEventoEConf_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEventoEPEC_v0.01.xsd +0 -0
- package/schemas/PL_010_V1/retEventoEntregaNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retEventoInsucessoNFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/retInutNFe_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/retInutNFe_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/retPProrrogNFe_v1.0.xsd +0 -0
- package/schemas/PL_010_V1/retconsNFeDest_v1.01.xsd +0 -0
- package/schemas/PL_010_V1/tiposBasico_v1.03.xsd +0 -0
- package/schemas/PL_010_V1/tiposBasico_v3.10.xsd +0 -0
- package/schemas/PL_010_V1/tiposBasico_v4.00.xsd +0 -0
- package/schemas/PL_010_V1/tiposBasicosCcgConsGTIN_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/tiposDistDFe_v1.00.xsd +0 -0
- package/schemas/PL_010_V1/tiposDistDFe_v1.01.xsd +0 -0
- package/schemas/PL_010_V1/xmldsig-core-schema_v1.01.xsd +0 -0
- package/schemas/PL_010b_V1.30/DFeTiposBasicos_v1.00.xsd +1293 -0
- package/schemas/{leiauteNFe_v4.00.xsd → PL_010b_V1.30/leiauteNFe_v4.00.xsd} +177 -10
- package/schemas/{nfe_v4.00.xsd → PL_010b_V1.30/nfe_v4.00.xsd} +10 -9
- package/schemas/{tiposBasico_v4.00.xsd → PL_010b_V1.30/tiposBasico_v4.00.xsd} +4 -4
- package/schemas/{PL_009_V4 → PL_010b_V1.30}/xmldsig-core-schema_v1.01.xsd +0 -0
- package/tsconfig.json +0 -0
- package/schemas/PL_009_V4/110150_v1.00.xsd +0 -88
- package/schemas/PL_009_V4/Averb_v1.00.xsd +0 -11
- package/schemas/PL_009_V4/CCe_v1.00.xsd +0 -11
- package/schemas/PL_009_V4/EPEC_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/EPP1.xml +0 -13
- package/schemas/PL_009_V4/ERP1.xml +0 -19
- package/schemas/PL_009_V4/EventoCancEConf_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/EventoCancInsucessoNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/EventoEConf_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/EventoInsucessoNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/MT_inutNFe_v4.00.xsd +0 -9
- package/schemas/PL_009_V4/SuframaInternaliza_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/SuframaVistoria_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/confRecebto_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/consCad_v2.00.xsd +0 -9
- package/schemas/PL_009_V4/consGTIN_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/consNFeDest_v1.01.xsd +0 -10
- package/schemas/PL_009_V4/consReciNFe_v3.10.xsd +0 -9
- package/schemas/PL_009_V4/consReciNFe_v4.00.xsd +0 -9
- package/schemas/PL_009_V4/consSitNFe_v3.10.xsd +0 -9
- package/schemas/PL_009_V4/consSitNFe_v4.00.xsd +0 -9
- package/schemas/PL_009_V4/consStatServ_v3.10.xsd +0 -9
- package/schemas/PL_009_V4/consStatServ_v4.00.xsd +0 -9
- package/schemas/PL_009_V4/distDFeInt_v1.00.xsd +0 -71
- package/schemas/PL_009_V4/distDFeInt_v1.01.xsd +0 -97
- package/schemas/PL_009_V4/downloadNFe_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/e110110_v1.00.xsd +0 -58
- package/schemas/PL_009_V4/e110111_v1.00.xsd +0 -42
- package/schemas/PL_009_V4/e110112_v1.00.xsd +0 -69
- package/schemas/PL_009_V4/e110130_v1.00.xsd +0 -102
- package/schemas/PL_009_V4/e110131_v1.00.xsd +0 -51
- package/schemas/PL_009_V4/e110140NFCe_v1.00.xsd +0 -118
- package/schemas/PL_009_V4/e110140NFe_v1.00.xsd +0 -124
- package/schemas/PL_009_V4/e110140_v1.00.xsd +0 -124
- package/schemas/PL_009_V4/e110150_v1.00.xsd +0 -88
- package/schemas/PL_009_V4/e110192_v1.00.xsd +0 -106
- package/schemas/PL_009_V4/e110193_v1.00.xsd +0 -40
- package/schemas/PL_009_V4/e110750_v1.00.xsd +0 -138
- package/schemas/PL_009_V4/e110751_v1.00.xsd +0 -39
- package/schemas/PL_009_V4/e111500_v1.00.xsd +0 -69
- package/schemas/PL_009_V4/e111501_v1.00.xsd +0 -69
- package/schemas/PL_009_V4/e111502_v1.00.xsd +0 -50
- package/schemas/PL_009_V4/e111503_v1.00.xsd +0 -50
- package/schemas/PL_009_V4/e210200_v1.00.xsd +0 -31
- package/schemas/PL_009_V4/e210210_v1.00.xsd +0 -31
- package/schemas/PL_009_V4/e210220_v1.00.xsd +0 -44
- package/schemas/PL_009_V4/e210240_v1.00.xsd +0 -44
- package/schemas/PL_009_V4/e411500_v1.00.xsd +0 -134
- package/schemas/PL_009_V4/e411501_v1.00.xsd +0 -134
- package/schemas/PL_009_V4/e411502_v1.00.xsd +0 -95
- package/schemas/PL_009_V4/e411503_v1.00.xsd +0 -95
- package/schemas/PL_009_V4/e610130_v1.00.xsd +0 -128
- package/schemas/PL_009_V4/e610131_v1.00.xsd +0 -68
- package/schemas/PL_009_V4/e790700_v1.00.xsd +0 -125
- package/schemas/PL_009_V4/e990900_v1.00.xsd +0 -87
- package/schemas/PL_009_V4/e990910_v1.00.xsd +0 -81
- package/schemas/PL_009_V4/envAverb_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/envCCe_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/envCancelPProrrogNFe_v1.0.xsd +0 -50
- package/schemas/PL_009_V4/envComprovanteEntregaNFe_v1.00.xsd +0 -11
- package/schemas/PL_009_V4/envConfRecebto_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/envEPEC_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/envEventoAtorInteressado_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/envEventoCancEConf_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/envEventoCancEntregaNFe_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/envEventoCancInsucessoNFe_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/envEventoCancNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/envEventoCancSubst_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/envEventoEConf_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/envEventoEntregaNFe_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/envEventoInsucessoNFe_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/envEvento_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/envFiscoNfe_v1.0.xsd +0 -179
- package/schemas/PL_009_V4/envPProrrogNFe_v1.0.xsd +0 -65
- package/schemas/PL_009_V4/envRemIndus_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/envSuframaInternaliza_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/envSuframaVistoria_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/enviNFe_v3.10.xsd +0 -9
- package/schemas/PL_009_V4/enviNFe_v4.00.xsd +0 -9
- package/schemas/PL_009_V4/eventoAtorInteressado_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/eventoCancEntregaNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/eventoCancNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/eventoCancSubst_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/eventoEPEC_v0.01.xsd +0 -267
- package/schemas/PL_009_V4/eventoEPEC_v1.00.xsd +0 -231
- package/schemas/PL_009_V4/eventoEntregaNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/eventoRemIndus_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/inutNFe_v3.10.xsd +0 -9
- package/schemas/PL_009_V4/inutNFe_v4.00.xsd +0 -9
- package/schemas/PL_009_V4/leiauteAverb_v1.00.xsd +0 -482
- package/schemas/PL_009_V4/leiauteCCe_v1.00.xsd +0 -382
- package/schemas/PL_009_V4/leiauteCcgConsGTIN_v1.00.xsd +0 -94
- package/schemas/PL_009_V4/leiauteComprovanteEntregaNFe_v1.00.xsd +0 -487
- package/schemas/PL_009_V4/leiauteConfRecebto_v1.00.xsd +0 -369
- package/schemas/PL_009_V4/leiauteConsNFeDest_v1.01.xsd +0 -483
- package/schemas/PL_009_V4/leiauteConsSitNFe_v3.10.xsd +0 -502
- package/schemas/PL_009_V4/leiauteConsSitNFe_v4.00.xsd +0 -502
- package/schemas/PL_009_V4/leiauteConsStatServ_v3.10.xsd +0 -98
- package/schemas/PL_009_V4/leiauteConsStatServ_v4.00.xsd +0 -98
- package/schemas/PL_009_V4/leiauteConsultaCadastro_v2.00.xsd +0 -404
- package/schemas/PL_009_V4/leiauteDownloadNFe_v1.00.xsd +0 -149
- package/schemas/PL_009_V4/leiauteEPEC_v1.00.xsd +0 -423
- package/schemas/PL_009_V4/leiauteEventoAtorInteressado_v1.00.xsd +0 -384
- package/schemas/PL_009_V4/leiauteEventoCancEConf_v1.00.xsd +0 -296
- package/schemas/PL_009_V4/leiauteEventoCancEntregaNFe_v1.00.xsd +0 -307
- package/schemas/PL_009_V4/leiauteEventoCancInsucessoNFe_v1.00.xsd +0 -297
- package/schemas/PL_009_V4/leiauteEventoCancNFe_v1.00.xsd +0 -358
- package/schemas/PL_009_V4/leiauteEventoCancSubst_v1.00.xsd +0 -366
- package/schemas/PL_009_V4/leiauteEventoEConf_v1.00.xsd +0 -296
- package/schemas/PL_009_V4/leiauteEventoEntregaNFe_v1.00.xsd +0 -321
- package/schemas/PL_009_V4/leiauteEventoInsucessoNFe_v1.00.xsd +0 -297
- package/schemas/PL_009_V4/leiauteEvento_v1.00.xsd +0 -335
- package/schemas/PL_009_V4/leiauteInutNFe_v3.10.xsd +0 -193
- package/schemas/PL_009_V4/leiauteInutNFe_v4.00.xsd +0 -193
- package/schemas/PL_009_V4/leiauteInutNFe_v4.00_MT.xsd +0 -200
- package/schemas/PL_009_V4/leiauteNFe_v3.10.xsd +0 -6060
- package/schemas/PL_009_V4/leiauteNFe_v4.00.xsd +0 -7412
- package/schemas/PL_009_V4/leiauteRemIndus_v1.00.xsd +0 -344
- package/schemas/PL_009_V4/leiauteSuframaInternaliza_v1.00.xsd +0 -642
- package/schemas/PL_009_V4/leiauteSuframaVistoria_v1.00.xsd +0 -648
- package/schemas/PL_009_V4/nfe_v3.10.xsd +0 -9
- package/schemas/PL_009_V4/nfe_v4.00.xsd +0 -9
- package/schemas/PL_009_V4/procAverbNFe_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/procCCeNFe_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/procComprovanteEntregaNFe_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/procConfRecebtoNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/procEPEC_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/procEventoAtorInteressado_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/procEventoCancEConf_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/procEventoCancEntregaNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/procEventoCancInsucessoNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/procEventoCancNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/procEventoCancSubst_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/procEventoEConf_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/procEventoEntregaNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/procEventoInsucessoNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/procEventoNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/procEventoNFe_v99.99.xsd +0 -37
- package/schemas/PL_009_V4/procInutNFe_v3.10.xsd +0 -9
- package/schemas/PL_009_V4/procInutNFe_v4.00.xsd +0 -9
- package/schemas/PL_009_V4/procNFe_v3.10.xsd +0 -9
- package/schemas/PL_009_V4/procNFe_v4.00.xsd +0 -9
- package/schemas/PL_009_V4/procRemIndus_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/prod_leiauteNFe_v4.00.xsd +0 -6736
- package/schemas/PL_009_V4/resEvento_v1.00.xsd +0 -94
- package/schemas/PL_009_V4/resEvento_v1.01.xsd +0 -108
- package/schemas/PL_009_V4/resNFe_v1.00.xsd +0 -110
- package/schemas/PL_009_V4/resNFe_v1.01.xsd +0 -122
- package/schemas/PL_009_V4/retComprovanteEntregaNFe_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/retConsCad_v2.00.xsd +0 -9
- package/schemas/PL_009_V4/retConsGTIN_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retConsReciNFe_v3.10.xsd +0 -9
- package/schemas/PL_009_V4/retConsReciNFe_v4.00.xsd +0 -9
- package/schemas/PL_009_V4/retConsSitNFe_v3.10.xsd +0 -9
- package/schemas/PL_009_V4/retConsSitNFe_v4.00.xsd +0 -9
- package/schemas/PL_009_V4/retConsStatServ_v3.10.xsd +0 -9
- package/schemas/PL_009_V4/retConsStatServ_v4.00.xsd +0 -9
- package/schemas/PL_009_V4/retDistDFeInt_v1.00.xsd +0 -84
- package/schemas/PL_009_V4/retDistDFeInt_v1.01.xsd +0 -99
- package/schemas/PL_009_V4/retDownloadNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEnvAverb_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEnvAverb_v1.00_1.xsd +0 -9
- package/schemas/PL_009_V4/retEnvCCe_v1.00.xsd +0 -10
- package/schemas/PL_009_V4/retEnvCancelPProrrogNFe_v1.0.xsd +0 -231
- package/schemas/PL_009_V4/retEnvConfRecebto_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEnvEPEC_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEnvEventoAtorInteressado_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEnvEventoCancNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEnvEventoCancSubst_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEnvEvento_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEnvFiscoNFe_v1.0.xsd +0 -234
- package/schemas/PL_009_V4/retEnvRemIndus_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEnvSuframaInternaliza_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEnvSuframaVistoria_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEnviNFe_v3.10.xsd +0 -9
- package/schemas/PL_009_V4/retEnviNFe_v4.00.xsd +0 -9
- package/schemas/PL_009_V4/retEventoCancEConf_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEventoCancEntregaNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEventoCancInsucessoNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEventoEConf_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEventoEPEC_v0.01.xsd +0 -207
- package/schemas/PL_009_V4/retEventoEntregaNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retEventoInsucessoNFe_v1.00.xsd +0 -9
- package/schemas/PL_009_V4/retInutNFe_v3.10.xsd +0 -9
- package/schemas/PL_009_V4/retInutNFe_v4.00.xsd +0 -9
- package/schemas/PL_009_V4/retPProrrogNFe_v1.0.xsd +0 -233
- package/schemas/PL_009_V4/retconsNFeDest_v1.01.xsd +0 -9
- package/schemas/PL_009_V4/tiposBasico_v1.03.xsd +0 -871
- package/schemas/PL_009_V4/tiposBasico_v3.10.xsd +0 -571
- package/schemas/PL_009_V4/tiposBasico_v4.00.xsd +0 -598
- package/schemas/PL_009_V4/tiposBasicosCcgConsGTIN_v1.00.xsd +0 -84
- package/schemas/PL_009_V4/tiposDistDFe_v1.00.xsd +0 -217
- package/schemas/PL_009_V4/tiposDistDFe_v1.01.xsd +0 -222
- package/schemas/PL_009p_NT2024_003/consReciNFe_v4.00.xsd +0 -9
- package/schemas/PL_009p_NT2024_003/consSitNFe_v4.00.xsd +0 -9
- package/schemas/PL_009p_NT2024_003/consStatServ_v4.00.xsd +0 -9
- package/schemas/PL_009p_NT2024_003/enviNFe_v4.00.xsd +0 -9
- package/schemas/PL_009p_NT2024_003/inutNFe_v4.00.xsd +0 -9
- package/schemas/PL_009p_NT2024_003/leiauteConsSitNFe_v4.00.xsd +0 -502
- package/schemas/PL_009p_NT2024_003/leiauteConsStatServ_v4.00.xsd +0 -98
- package/schemas/PL_009p_NT2024_003/leiauteInutNFe_v4.00.xsd +0 -193
- package/schemas/PL_009p_NT2024_003/leiauteNFe_v4.00.xsd +0 -7412
- package/schemas/PL_009p_NT2024_003/nfe_v4.00.xsd +0 -9
- package/schemas/PL_009p_NT2024_003/procInutNFe_v4.00.xsd +0 -9
- package/schemas/PL_009p_NT2024_003/procNFe_v4.00.xsd +0 -9
- package/schemas/PL_009p_NT2024_003/retConsReciNFe_v4.00.xsd +0 -9
- package/schemas/PL_009p_NT2024_003/retConsSitNFe_v4.00.xsd +0 -9
- package/schemas/PL_009p_NT2024_003/retConsStatServ_v4.00.xsd +0 -9
- package/schemas/PL_009p_NT2024_003/retEnviNFe_v4.00.xsd +0 -9
- package/schemas/PL_009p_NT2024_003/retInutNFe_v4.00.xsd +0 -9
- package/schemas/PL_009p_NT2024_003/tiposBasico_v4.00.xsd +0 -598
- package/schemas/PL_009p_NT2024_003/xmldsig-core-schema_v1.01.xsd +0 -98
- package/schemas/Teste/EventoCancEntregaNFe_v1.00.xsd +0 -9
- package/schemas/Teste/EventoEntregaNFe_v1.00.xsd +0 -9
- package/schemas/Teste/e110130_v1.00.xsd +0 -102
- package/schemas/Teste/e110131_v1.00.xsd +0 -51
- package/schemas/Teste/envEventoCancEntregaNFe_v1.00.xsd +0 -10
- package/schemas/Teste/envEventoEntregaNFe_v1.00.xsd +0 -10
- package/schemas/Teste/leiauteEventoCancEntregaNFe_v1.00.xsd +0 -307
- package/schemas/Teste/leiauteEventoEntregaNFe_v1.00.xsd +0 -321
- package/schemas/Teste/procEventoCancEntregaNFe_v1.00.xsd +0 -9
- package/schemas/Teste/procEventoEntregaNFe_v1.00.xsd +0 -9
- package/schemas/Teste/retEventoCancEntregaNFe_v1.00.xsd +0 -9
- package/schemas/Teste/retEventoEntregaNFe_v1.00.xsd +0 -9
- package/schemas/Teste/tiposBasico_v1.03.xsd +0 -871
- package/schemas/Teste/xmldsig-core-schema_v1.01.xsd +0 -98
- package/schemas/consReciNFe_v4.00.xsd +0 -9
- package/schemas/consSitNFe_v4.00.xsd +0 -9
- package/schemas/consStatServ_v4.00.xsd +0 -9
- package/schemas/enviNFe_v4.00.xsd +0 -9
- package/schemas/inutNFe_v4.00.xsd +0 -9
- package/schemas/leiauteConsSitNFe_v4.00.xsd +0 -502
- package/schemas/leiauteConsStatServ_v4.00.xsd +0 -98
- package/schemas/leiauteInutNFe_v4.00.xsd +0 -193
- package/schemas/procInutNFe_v4.00.xsd +0 -9
- package/schemas/procNFe_v4.00.xsd +0 -9
- package/schemas/retConsReciNFe_v4.00.xsd +0 -9
- package/schemas/retConsSitNFe_v4.00.xsd +0 -9
- package/schemas/retConsStatServ_v4.00.xsd +0 -9
- package/schemas/retEnviNFe_v4.00.xsd +0 -9
- package/schemas/retInutNFe_v4.00.xsd +0 -9
- package/schemas/xmldsig-core-schema_v1.01.xsd +0 -98
package/LICENSE.md
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/utils/eventos.d.ts
CHANGED
|
File without changes
|
package/dist/utils/eventos.js
CHANGED
|
File without changes
|
package/dist/utils/extras.d.ts
CHANGED
|
File without changes
|
package/dist/utils/extras.js
CHANGED
|
File without changes
|
package/dist/utils/make.d.ts
CHANGED
|
@@ -42,10 +42,11 @@ declare class Make {
|
|
|
42
42
|
tagProdPISST(index: number, obj: any): void;
|
|
43
43
|
tagProdCOFINS(index: number, obj: any): void;
|
|
44
44
|
tagProdCOFINSST(index: number, obj: any): void;
|
|
45
|
+
tagProdIS(index: number, obj: any): void;
|
|
46
|
+
tagProdIBSCBS(index: number, obj: any): void;
|
|
45
47
|
tagProdISSQN(index: number, obj: any): void;
|
|
46
48
|
tagProdImpostoDevol(index: number, obj: any): void;
|
|
47
|
-
|
|
48
|
-
tagISSQNTot(obj: any): void;
|
|
49
|
+
tagTotal(obj: any, force?: boolean): any;
|
|
49
50
|
tagRetTrib(obj: any): void;
|
|
50
51
|
tagTransp(obj: any): void;
|
|
51
52
|
tagTransporta(obj: any): void;
|
package/dist/utils/make.js
CHANGED
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _Make_instances, _Make_NFe,
|
|
6
|
+
var _Make_instances, _Make_NFe, _Make_tagTotal, _Make_gerarChaveNFe, _Make_calcularDigitoVerificador, _Make_calICMSTot, _Make_mergeobject;
|
|
7
7
|
import { XMLBuilder } from "fast-xml-parser";
|
|
8
8
|
import { urlEventos } from "./eventos.js";
|
|
9
9
|
import { cUF2UF } from "./extras.js";
|
|
@@ -17,31 +17,7 @@ class Make {
|
|
|
17
17
|
//"@xmlns": "http://www.portalfiscal.inf.br/nfe",
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
|
|
21
|
-
vBC: 0,
|
|
22
|
-
vICMS: 0,
|
|
23
|
-
vICMSDeson: 0,
|
|
24
|
-
vFCPUFDest: 0,
|
|
25
|
-
vICMSUFDest: 0,
|
|
26
|
-
vICMSUFRemet: 0,
|
|
27
|
-
vFCP: 0,
|
|
28
|
-
vBCST: 0,
|
|
29
|
-
vST: 0,
|
|
30
|
-
vFCPST: 0,
|
|
31
|
-
vFCPSTRet: 0,
|
|
32
|
-
vProd: 0,
|
|
33
|
-
vFrete: 0,
|
|
34
|
-
vSeg: 0,
|
|
35
|
-
vDesc: 0,
|
|
36
|
-
vII: 0,
|
|
37
|
-
vIPI: 0,
|
|
38
|
-
vIPIDevol: 0,
|
|
39
|
-
vPIS: 0,
|
|
40
|
-
vCOFINS: 0,
|
|
41
|
-
vOutro: 0,
|
|
42
|
-
vNF: 0,
|
|
43
|
-
vTotTrib: 0
|
|
44
|
-
});
|
|
20
|
+
_Make_tagTotal.set(this, {});
|
|
45
21
|
}
|
|
46
22
|
formatData(dataUsr = new Date()) {
|
|
47
23
|
const ano = dataUsr.getFullYear();
|
|
@@ -543,33 +519,118 @@ class Make {
|
|
|
543
519
|
//Calcular ICMSTot
|
|
544
520
|
__classPrivateFieldGet(this, _Make_instances, "m", _Make_calICMSTot).call(this, obj);
|
|
545
521
|
}
|
|
522
|
+
//!FALTA
|
|
523
|
+
tagProdIS(index, obj) {
|
|
524
|
+
if (__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.det[index].imposto === undefined)
|
|
525
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.det[index].imposto = {};
|
|
526
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.det[index].imposto.IS = {};
|
|
527
|
+
Object.keys(obj).forEach(key => {
|
|
528
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.det[index].imposto.IS[key] = obj[key];
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
tagProdIBSCBS(index, obj) {
|
|
532
|
+
if (__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.det[index].imposto.IBSCBS === undefined)
|
|
533
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.det[index].imposto.IBSCBS = {};
|
|
534
|
+
Object.keys(obj).forEach(key => {
|
|
535
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.det[index].imposto.IBSCBS[key] = obj[key];
|
|
536
|
+
});
|
|
537
|
+
//Calcular IBSCBSTot
|
|
538
|
+
let temp = {
|
|
539
|
+
...({ vBCIBSCBS: obj.gIBSCBS.vBC }),
|
|
540
|
+
gIBS: {
|
|
541
|
+
gIBSUF: {
|
|
542
|
+
vDif: obj?.gIBSCBS?.gIBSUF?.gDif?.vDif ?? "0.00",
|
|
543
|
+
vDevTrib: obj?.gIBSCBS?.gIBSUF?.gDevTrib?.vDevTrib ?? "0.00",
|
|
544
|
+
vIBSUF: obj?.gIBSCBS?.gIBSUF?.vIBSUF ?? "0.00"
|
|
545
|
+
},
|
|
546
|
+
gIBSMun: {
|
|
547
|
+
vDif: obj?.gIBSCBS?.gIBSMun?.gDif?.vDif ?? "0.00",
|
|
548
|
+
vDevTrib: obj?.gIBSCBS?.gIBSMun?.gDevTrib?.vDevTrib ?? "0.00",
|
|
549
|
+
vIBSMun: obj?.gIBSCBS?.gIBSMun?.vIBSMun ?? "0.00",
|
|
550
|
+
},
|
|
551
|
+
vIBS: obj?.gIBSCBS?.vIBS ?? "0.00",
|
|
552
|
+
vCredPres: obj?.gIBSCBS?.gIBSCredPres?.vCredPres ?? "0.00",
|
|
553
|
+
vCredPresCondSus: obj?.gIBSCBS?.gIBSCredPres?.vCredPresCondSus ?? "0.00"
|
|
554
|
+
},
|
|
555
|
+
gCBS: {
|
|
556
|
+
vDif: obj?.gIBSCBS?.gCBS?.gDif?.vDif ?? "0.00",
|
|
557
|
+
vDevTrib: obj?.gIBSCBS?.gCBS?.gDevTrib?.vDevTrib ?? "0.00",
|
|
558
|
+
vCBS: obj?.gIBSCBS?.gCBS?.vCBS ?? "0.00",
|
|
559
|
+
vCredPres: obj?.gIBSCBS?.gCBS?.gCBSCredPres?.vCredPres ?? "0.00",
|
|
560
|
+
vCredPresCondSus: obj?.gIBSCBS?.gCBS?.gCBSCredPres?.vCredPresCondSus ?? "0.00",
|
|
561
|
+
}
|
|
562
|
+
};
|
|
563
|
+
__classPrivateFieldGet(this, _Make_tagTotal, "f").IBSCBSTot = __classPrivateFieldGet(this, _Make_instances, "m", _Make_mergeobject).call(this, __classPrivateFieldGet(this, _Make_tagTotal, "f").IBSCBSTot ?? {}, temp);
|
|
564
|
+
}
|
|
546
565
|
tagProdISSQN(index, obj) {
|
|
547
566
|
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.det[index].imposto.ISSQN = {};
|
|
548
567
|
Object.keys(obj).forEach(key => {
|
|
549
568
|
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.det[index].imposto.ISSQN[key] = obj[key];
|
|
550
569
|
});
|
|
551
570
|
//Calcular ICMSTot
|
|
552
|
-
|
|
571
|
+
//this.#calICMSTot(obj);
|
|
572
|
+
__classPrivateFieldGet(this, _Make_tagTotal, "f").ISSQNtot = __classPrivateFieldGet(this, _Make_instances, "m", _Make_mergeobject).call(this, __classPrivateFieldGet(this, _Make_tagTotal, "f").ISSQNtot ?? {
|
|
573
|
+
"vServ": 0,
|
|
574
|
+
"vBC": obj.vBC ?? 0,
|
|
575
|
+
"vISS": obj.vISSQN ?? 0,
|
|
576
|
+
"vPIS": 0,
|
|
577
|
+
"vCOFINS": 0,
|
|
578
|
+
"dCompet": this.formatData().split("T")[0],
|
|
579
|
+
"vDeducao": 0,
|
|
580
|
+
"vOutro": 0,
|
|
581
|
+
"vDescIncond": 0,
|
|
582
|
+
"vDescCond": 0,
|
|
583
|
+
"vISSRet": 0,
|
|
584
|
+
"cRegTrib": null
|
|
585
|
+
}, obj);
|
|
553
586
|
}
|
|
554
587
|
tagProdImpostoDevol(index, obj) {
|
|
555
588
|
throw "Não implementado!";
|
|
556
589
|
}
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
590
|
+
//["ICMSTot", "ISSQNtot", "retTrib", "ISTot", "IBSCBSTot", "vNFTot"]
|
|
591
|
+
tagTotal(obj, force = false) {
|
|
592
|
+
if (__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total == undefined)
|
|
593
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total = new Object();
|
|
594
|
+
//Ignora o calculo auxiliar.
|
|
595
|
+
if (force) {
|
|
596
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total = obj;
|
|
597
|
+
return obj;
|
|
598
|
+
}
|
|
599
|
+
//ICMSTot
|
|
600
|
+
if (__classPrivateFieldGet(this, _Make_tagTotal, "f").ICMSTot !== undefined) {
|
|
601
|
+
if (__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total.ICMSTot == undefined)
|
|
602
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total.ICMSTot = new Object();
|
|
603
|
+
Object.keys(__classPrivateFieldGet(this, _Make_tagTotal, "f").ICMSTot).forEach(key => {
|
|
604
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total.ICMSTot[key] = (__classPrivateFieldGet(this, _Make_tagTotal, "f").ICMSTot[key] * 1).toFixed(2);
|
|
568
605
|
});
|
|
606
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total.ICMSTot.vNF = (__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total.ICMSTot.vProd - __classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total.ICMSTot.vDesc).toFixed(2);
|
|
607
|
+
if (obj?.ICMSTot != null) { // Substituir campos que deseja
|
|
608
|
+
Object.keys(obj.ICMSTot).forEach(key => {
|
|
609
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total.ICMSTot[key] = obj.ICMSTot[key];
|
|
610
|
+
});
|
|
611
|
+
}
|
|
569
612
|
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
613
|
+
//ISSQNtot - Não implementado
|
|
614
|
+
//retTrib - Não implementado
|
|
615
|
+
//ISTot - Não implementado
|
|
616
|
+
//IBSCBSTot
|
|
617
|
+
if (__classPrivateFieldGet(this, _Make_tagTotal, "f").IBSCBSTot !== undefined) {
|
|
618
|
+
if (__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total.IBSCBSTot == undefined)
|
|
619
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total.IBSCBSTot = {};
|
|
620
|
+
Object.keys(__classPrivateFieldGet(this, _Make_tagTotal, "f").IBSCBSTot).forEach(key => {
|
|
621
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total.IBSCBSTot[key] = __classPrivateFieldGet(this, _Make_tagTotal, "f").IBSCBSTot[key];
|
|
622
|
+
});
|
|
623
|
+
if (obj?.IBSCBSTot != null) { // Substituir campos que deseja
|
|
624
|
+
Object.keys(obj.IBSCBSTot).forEach(key => {
|
|
625
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total.IBSCBSTot[key] = obj.IBSCBSTot[key];
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
//vNFTot
|
|
630
|
+
if (__classPrivateFieldGet(this, _Make_tagTotal, "f").vNFTot !== undefined) {
|
|
631
|
+
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total.vNFTot = __classPrivateFieldGet(this, _Make_tagTotal, "f").vNFTot;
|
|
632
|
+
}
|
|
633
|
+
return __classPrivateFieldGet(this, _Make_NFe, "f").infNFe.total;
|
|
573
634
|
}
|
|
574
635
|
tagRetTrib(obj) {
|
|
575
636
|
throw "Não implementado!";
|
|
@@ -689,7 +750,7 @@ class Make {
|
|
|
689
750
|
return tempBuild.build({ NFe: __classPrivateFieldGet(this, _Make_NFe, "f") });
|
|
690
751
|
}
|
|
691
752
|
}
|
|
692
|
-
_Make_NFe = new WeakMap(),
|
|
753
|
+
_Make_NFe = new WeakMap(), _Make_tagTotal = new WeakMap(), _Make_instances = new WeakSet(), _Make_gerarChaveNFe = function _Make_gerarChaveNFe() {
|
|
693
754
|
const chaveSemDV = `${__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.ide.cUF}`.padStart(2, '0') + // Código da UF (2 dígitos)
|
|
694
755
|
__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.ide.dhEmi.substring(2, 4) + __classPrivateFieldGet(this, _Make_NFe, "f").infNFe.ide.dhEmi.substring(5, 7) + // Ano e Mês da emissão (AAMM, 4 dígitos)
|
|
695
756
|
`${__classPrivateFieldGet(this, _Make_NFe, "f").infNFe.emit.CNPJ}`.padStart(14, '0') + // CNPJ do emitente (14 dígitos)
|
|
@@ -720,11 +781,104 @@ _Make_NFe = new WeakMap(), _Make_ICMSTot = new WeakMap(), _Make_instances = new
|
|
|
720
781
|
}
|
|
721
782
|
return vdigit.toString();
|
|
722
783
|
}, _Make_calICMSTot = function _Make_calICMSTot(obj) {
|
|
784
|
+
if (__classPrivateFieldGet(this, _Make_tagTotal, "f").ICMSTot == undefined)
|
|
785
|
+
__classPrivateFieldGet(this, _Make_tagTotal, "f").ICMSTot = {
|
|
786
|
+
vBC: 0,
|
|
787
|
+
vICMS: 0,
|
|
788
|
+
vICMSDeson: 0,
|
|
789
|
+
vFCPUFDest: 0,
|
|
790
|
+
vICMSUFDest: 0,
|
|
791
|
+
vICMSUFRemet: 0,
|
|
792
|
+
vFCP: 0,
|
|
793
|
+
vBCST: 0,
|
|
794
|
+
vST: 0,
|
|
795
|
+
vFCPST: 0,
|
|
796
|
+
vFCPSTRet: 0,
|
|
797
|
+
vProd: 0,
|
|
798
|
+
vFrete: 0,
|
|
799
|
+
vSeg: 0,
|
|
800
|
+
vDesc: 0,
|
|
801
|
+
vII: 0,
|
|
802
|
+
vIPI: 0,
|
|
803
|
+
vIPIDevol: 0,
|
|
804
|
+
vPIS: 0,
|
|
805
|
+
vCOFINS: 0,
|
|
806
|
+
vOutro: 0,
|
|
807
|
+
vNF: 0,
|
|
808
|
+
vTotTrib: 0
|
|
809
|
+
};
|
|
723
810
|
Object.keys(obj).map(key => {
|
|
724
|
-
if (__classPrivateFieldGet(this,
|
|
725
|
-
__classPrivateFieldGet(this,
|
|
811
|
+
if (__classPrivateFieldGet(this, _Make_tagTotal, "f").ICMSTot[key] !== undefined) {
|
|
812
|
+
__classPrivateFieldGet(this, _Make_tagTotal, "f").ICMSTot[key] += (obj[key]) * 1;
|
|
726
813
|
}
|
|
727
814
|
});
|
|
815
|
+
}, _Make_mergeobject = function _Make_mergeobject(el1, el2, fixedScale) {
|
|
816
|
+
// --- helpers locais (apenas dentro deste método) ---
|
|
817
|
+
const isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
818
|
+
const isDecimalLike = (v) => {
|
|
819
|
+
if (typeof v === "number")
|
|
820
|
+
return Number.isFinite(v);
|
|
821
|
+
if (typeof v === "string")
|
|
822
|
+
return /^-?\d+(?:\.\d+)?$/.test(v.trim());
|
|
823
|
+
return false;
|
|
824
|
+
};
|
|
825
|
+
const decLen = (s) => (String(s).split(".")[1] || "").length;
|
|
826
|
+
const addDecimalStrings = (a, b, scaleOverride) => {
|
|
827
|
+
const sa = String(a).trim();
|
|
828
|
+
const sb = String(b).trim();
|
|
829
|
+
const scale = scaleOverride ?? Math.max(decLen(sa), decLen(sb));
|
|
830
|
+
const toInt = (s) => {
|
|
831
|
+
let neg = false;
|
|
832
|
+
if (s.startsWith("-")) {
|
|
833
|
+
neg = true;
|
|
834
|
+
s = s.slice(1);
|
|
835
|
+
}
|
|
836
|
+
let [i = "0", f = ""] = s.split(".");
|
|
837
|
+
f = f.padEnd(scale, "0").slice(0, scale);
|
|
838
|
+
const bi = BigInt(((i.replace(/^0+(?=\d)/, "")) || "0") + f);
|
|
839
|
+
return neg ? -bi : bi;
|
|
840
|
+
};
|
|
841
|
+
const fromInt = (bi) => {
|
|
842
|
+
const neg = bi < 0n;
|
|
843
|
+
let s = (neg ? -bi : bi).toString();
|
|
844
|
+
if (scale > 0) {
|
|
845
|
+
if (s.length <= scale)
|
|
846
|
+
s = "0".repeat(scale - s.length + 1) + s;
|
|
847
|
+
s = s.slice(0, -scale) + "." + s.slice(-scale);
|
|
848
|
+
}
|
|
849
|
+
return (neg ? "-" : "") + s;
|
|
850
|
+
};
|
|
851
|
+
return fromInt(toInt(sa) + toInt(sb));
|
|
852
|
+
};
|
|
853
|
+
// --- regra: se el1 não for objeto simples, retorna el1 (prioridade) ---
|
|
854
|
+
if (!isRecord(el1))
|
|
855
|
+
return el1;
|
|
856
|
+
const out = {};
|
|
857
|
+
const k1 = Object.keys(el1 || {});
|
|
858
|
+
const k2 = Object.keys(el2 || {});
|
|
859
|
+
// 1) percorre chaves de el1 (preserva ordem do el1)
|
|
860
|
+
for (const k of k1) {
|
|
861
|
+
const v1 = el1[k];
|
|
862
|
+
const hasV2 = Object.prototype.hasOwnProperty.call(el2 || {}, k);
|
|
863
|
+
const v2 = hasV2 ? el2[k] : undefined;
|
|
864
|
+
if (isRecord(v1)) {
|
|
865
|
+
const sub2 = isRecord(v2) ? v2 : {};
|
|
866
|
+
out[k] = __classPrivateFieldGet(this, _Make_instances, "m", _Make_mergeobject).call(this, v1, sub2, fixedScale);
|
|
867
|
+
}
|
|
868
|
+
else if (hasV2 && isDecimalLike(v1) && isDecimalLike(v2)) {
|
|
869
|
+
out[k] = addDecimalStrings(v1, v2, fixedScale);
|
|
870
|
+
}
|
|
871
|
+
else {
|
|
872
|
+
out[k] = v1; // mantém valor de el1
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
// 2) acrescenta ao final as chaves que existem só em el2
|
|
876
|
+
for (const k of k2) {
|
|
877
|
+
if (!Object.prototype.hasOwnProperty.call(el1, k)) {
|
|
878
|
+
out[k] = el2[k];
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
return out;
|
|
728
882
|
};
|
|
729
883
|
export { Make };
|
|
730
884
|
export default { Make };
|
package/dist/utils/tools.d.ts
CHANGED
|
@@ -16,7 +16,11 @@ declare class Tools {
|
|
|
16
16
|
pfx: string;
|
|
17
17
|
senha: string;
|
|
18
18
|
});
|
|
19
|
-
sefazEnviaLote(xml: string, data?:
|
|
19
|
+
sefazEnviaLote(xml: string, data?: {
|
|
20
|
+
idLote?: 1;
|
|
21
|
+
indSinc?: 0;
|
|
22
|
+
compactar?: false;
|
|
23
|
+
}): Promise<string>;
|
|
20
24
|
xmlSign(xmlJSON: string, data?: any): Promise<string>;
|
|
21
25
|
xml2json(xml: string): Promise<object>;
|
|
22
26
|
json2xml(obj: object): Promise<string>;
|
package/dist/utils/tools.js
CHANGED
|
@@ -613,12 +613,12 @@ async function _Tools_xmlValido(xml, xsd) {
|
|
|
613
613
|
var schemaPath = "";
|
|
614
614
|
try { //NW.js + ElectronJS
|
|
615
615
|
schemaPath = path.dirname(require.resolve("node-sped-nfe"));
|
|
616
|
-
schemaPath = path.resolve(`${path.join(schemaPath, "..", "schemas")}/
|
|
616
|
+
schemaPath = path.resolve(`${path.join(schemaPath, "..", "schemas")}/PL_010b_V1.30/${xsd}.xsd`);
|
|
617
617
|
}
|
|
618
618
|
catch (error) { //Caso o require seja desativo
|
|
619
619
|
const __filename = fileURLToPath(import.meta.url);
|
|
620
620
|
const __dirname = path.dirname(__filename);
|
|
621
|
-
schemaPath = path.resolve(__dirname, `../../schemas/
|
|
621
|
+
schemaPath = path.resolve(__dirname, `../../schemas/PL_010b_V1.30/${xsd}.xsd`);
|
|
622
622
|
}
|
|
623
623
|
const verif = spawnSync(__classPrivateFieldGet(this, _Tools_config, "f").xmllint, ['--noout', '--schema', schemaPath, xmlFile.name], { encoding: 'utf8' });
|
|
624
624
|
xmlFile.removeCallback();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-sped-nfe",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.45",
|
|
4
4
|
"author": "Kalmon V. Tavares",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,14 +30,15 @@
|
|
|
30
30
|
"t:nfe": "node exemplos/nfe.js",
|
|
31
31
|
"t:nfce": "node exemplos/nfce.js",
|
|
32
32
|
"t:cons": "node exemplos/consulta.js",
|
|
33
|
-
"teste": "
|
|
33
|
+
"teste": "tsx testes/teste.js"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^22.14.0",
|
|
37
37
|
"@types/node-forge": "^1.3.11",
|
|
38
38
|
"@types/pem": "^1.14.4",
|
|
39
39
|
"@types/tmp": "^0.2.6",
|
|
40
|
-
"
|
|
40
|
+
"tsx": "^4.20.6",
|
|
41
|
+
"typescript": "^5.9.3"
|
|
41
42
|
},
|
|
42
43
|
"dependencies": {
|
|
43
44
|
"crypto": "^1.0.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|