@alexssmusica/node-pdf-nfe 1.0.61 → 1.1.0
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/README.md +22 -310
- package/lib/application/helpers/generate-pdf/nfe/campo.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/campo.js +1 -15
- package/lib/application/helpers/generate-pdf/nfe/cria-layout.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/cria-layout.js +1 -83
- package/lib/application/helpers/generate-pdf/nfe/default.d.ts +21 -21
- package/lib/application/helpers/generate-pdf/nfe/default.js +1 -27
- package/lib/application/helpers/generate-pdf/nfe/gerar-itens.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/gerar-itens.js +1 -69
- package/lib/application/helpers/generate-pdf/nfe/get-dados-adicionais.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/get-dados-adicionais.js +1 -24
- package/lib/application/helpers/generate-pdf/nfe/get-dados-emitente.d.ts +2 -2
- package/lib/application/helpers/generate-pdf/nfe/get-dados-emitente.js +1 -88
- package/lib/application/helpers/generate-pdf/nfe/get-destinatario-remetente.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/get-destinatario-remetente.js +1 -51
- package/lib/application/helpers/generate-pdf/nfe/get-fatura-duplicata.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/get-fatura-duplicata.js +1 -44
- package/lib/application/helpers/generate-pdf/nfe/get-homologacao.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/get-homologacao.js +1 -25
- package/lib/application/helpers/generate-pdf/nfe/get-imposto.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/get-imposto.js +1 -54
- package/lib/application/helpers/generate-pdf/nfe/get-iss.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/get-iss.js +1 -33
- package/lib/application/helpers/generate-pdf/nfe/get-menu-itens.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/get-menu-itens.js +1 -46
- package/lib/application/helpers/generate-pdf/nfe/get-recibo.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/get-recibo.js +1 -54
- package/lib/application/helpers/generate-pdf/nfe/get-transporte.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/get-transporte.js +1 -88
- package/lib/application/helpers/generate-pdf/nfe/italico.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/italico.js +1 -16
- package/lib/application/helpers/generate-pdf/nfe/linha-horizontal-tracejada.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/linha-horizontal-tracejada.js +1 -9
- package/lib/application/helpers/generate-pdf/nfe/linha-horizontal.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/linha-horizontal.js +1 -17
- package/lib/application/helpers/generate-pdf/nfe/linha-vertical.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/linha-vertical.js +1 -11
- package/lib/application/helpers/generate-pdf/nfe/load-fontes.js +1 -32
- package/lib/application/helpers/generate-pdf/nfe/negrito.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/negrito.js +1 -16
- package/lib/application/helpers/generate-pdf/nfe/normal.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/normal.js +1 -16
- package/lib/application/helpers/generate-pdf/nfe/options-doc.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/options-doc.js +1 -21
- package/lib/application/helpers/generate-pdf/nfe/secao.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/secao.js +1 -17
- package/lib/application/helpers/generate-pdf/nfe/titulo.d.ts +1 -1
- package/lib/application/helpers/generate-pdf/nfe/titulo.js +1 -17
- package/lib/application/helpers/xml/deserialize.d.ts +2 -2
- package/lib/application/helpers/xml/deserialize.js +1 -26
- package/lib/application/helpers/xml/index.d.ts +0 -1
- package/lib/application/helpers/xml/index.js +1 -19
- package/lib/domain/use-cases/pdf/index.js +1 -27
- package/lib/domain/use-cases/pdf/pdf-NFCe.d.ts +1 -1
- package/lib/domain/use-cases/pdf/pdf-NFCe.js +1 -164
- package/lib/domain/use-cases/pdf/pdf-NFe.d.ts +1 -1
- package/lib/domain/use-cases/pdf/pdf-NFe.js +1 -32
- package/lib/domain/use-cases/utils/data-atual.js +1 -13
- package/lib/domain/use-cases/utils/index.d.ts +1 -2
- package/lib/domain/use-cases/utils/index.js +1 -20
- package/lib/domain/use-cases/utils/intl-number-format.d.ts +1 -0
- package/lib/domain/use-cases/utils/intl-number-format.js +1 -0
- package/lib/index.d.ts +0 -9
- package/lib/index.js +1 -35
- package/lib/{domain/contracts/repos → types}/generate-pdf.d.ts +3 -2
- package/lib/types/generate-pdf.js +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.js +1 -0
- package/lib/{domain/contracts/repos → types}/nfe-proc.d.ts +2 -4
- package/lib/types/nfe-proc.js +1 -0
- package/lib/{domain/contracts/repos → types}/schema.d.ts +1 -162
- package/lib/types/schema.js +1 -0
- package/package.json +64 -88
- package/lib/application/abstract/soap-info.d.ts +0 -7
- package/lib/application/abstract/soap-info.js +0 -67
- package/lib/application/abstract/soap-info.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/campo.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/cria-layout.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/default.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/gerar-itens.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/get-dados-adicionais.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/get-dados-emitente.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/get-destinatario-remetente.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/get-fatura-duplicata.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/get-homologacao.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/get-imposto.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/get-iss.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/get-menu-itens.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/get-recibo.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/get-transporte.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/italico.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/linha-horizontal-tracejada.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/linha-horizontal.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/linha-vertical.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/load-fontes.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/negrito.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/normal.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/options-doc.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/secao.js.map +0 -1
- package/lib/application/helpers/generate-pdf/nfe/titulo.js.map +0 -1
- package/lib/application/helpers/processo/append-qrcode-xml.d.ts +0 -5
- package/lib/application/helpers/processo/append-qrcode-xml.js +0 -31
- package/lib/application/helpers/processo/append-qrcode-xml.js.map +0 -1
- package/lib/application/helpers/processo/det.d.ts +0 -2
- package/lib/application/helpers/processo/det.js +0 -21
- package/lib/application/helpers/processo/det.js.map +0 -1
- package/lib/application/helpers/processo/gerar-chave-nfe.d.ts +0 -12
- package/lib/application/helpers/processo/gerar-chave-nfe.js +0 -28
- package/lib/application/helpers/processo/gerar-chave-nfe.js.map +0 -1
- package/lib/application/helpers/processo/gerar-hash-csrt.d.ts +0 -1
- package/lib/application/helpers/processo/gerar-hash-csrt.js +0 -12
- package/lib/application/helpers/processo/gerar-hash-csrt.js.map +0 -1
- package/lib/application/helpers/processo/gerar-nfe.d.ts +0 -2
- package/lib/application/helpers/processo/gerar-nfe.js +0 -41
- package/lib/application/helpers/processo/gerar-nfe.js.map +0 -1
- package/lib/application/helpers/processo/gerar-qr-code-nfce-offline.d.ts +0 -1
- package/lib/application/helpers/processo/gerar-qr-code-nfce-offline.js +0 -16
- package/lib/application/helpers/processo/gerar-qr-code-nfce-offline.js.map +0 -1
- package/lib/application/helpers/processo/gerar-qr-code-nfce-online.d.ts +0 -1
- package/lib/application/helpers/processo/gerar-qr-code-nfce-online.js +0 -15
- package/lib/application/helpers/processo/gerar-qr-code-nfce-online.js.map +0 -1
- package/lib/application/helpers/processo/gerar-retorno-emissao.d.ts +0 -11
- package/lib/application/helpers/processo/gerar-retorno-emissao.js +0 -25
- package/lib/application/helpers/processo/gerar-retorno-emissao.js.map +0 -1
- package/lib/application/helpers/processo/gerar-xml-lote.d.ts +0 -1
- package/lib/application/helpers/processo/gerar-xml-lote.js +0 -18
- package/lib/application/helpers/processo/gerar-xml-lote.js.map +0 -1
- package/lib/application/helpers/processo/gerar-xml.d.ts +0 -5
- package/lib/application/helpers/processo/gerar-xml.js +0 -21
- package/lib/application/helpers/processo/gerar-xml.js.map +0 -1
- package/lib/application/helpers/processo/getCobr.d.ts +0 -2
- package/lib/application/helpers/processo/getCobr.js +0 -27
- package/lib/application/helpers/processo/getCobr.js.map +0 -1
- package/lib/application/helpers/processo/getDest.d.ts +0 -2
- package/lib/application/helpers/processo/getDest.js +0 -36
- package/lib/application/helpers/processo/getDest.js.map +0 -1
- package/lib/application/helpers/processo/getEmit.d.ts +0 -2
- package/lib/application/helpers/processo/getEmit.js +0 -33
- package/lib/application/helpers/processo/getEmit.js.map +0 -1
- package/lib/application/helpers/processo/getIde.d.ts +0 -6
- package/lib/application/helpers/processo/getIde.js +0 -38
- package/lib/application/helpers/processo/getIde.js.map +0 -1
- package/lib/application/helpers/processo/getInfAdic.d.ts +0 -2
- package/lib/application/helpers/processo/getInfAdic.js +0 -35
- package/lib/application/helpers/processo/getInfAdic.js.map +0 -1
- package/lib/application/helpers/processo/getPag.d.ts +0 -2
- package/lib/application/helpers/processo/getPag.js +0 -30
- package/lib/application/helpers/processo/getPag.js.map +0 -1
- package/lib/application/helpers/processo/getResponsavelTecnico.d.ts +0 -2
- package/lib/application/helpers/processo/getResponsavelTecnico.js +0 -18
- package/lib/application/helpers/processo/getResponsavelTecnico.js.map +0 -1
- package/lib/application/helpers/processo/getTotal.d.ts +0 -2
- package/lib/application/helpers/processo/getTotal.js +0 -62
- package/lib/application/helpers/processo/getTotal.js.map +0 -1
- package/lib/application/helpers/processo/getTransp.d.ts +0 -2
- package/lib/application/helpers/processo/getTransp.js +0 -54
- package/lib/application/helpers/processo/getTransp.js.map +0 -1
- package/lib/application/helpers/processo/obter-digito-verificador.d.ts +0 -1
- package/lib/application/helpers/processo/obter-digito-verificador.js +0 -30
- package/lib/application/helpers/processo/obter-digito-verificador.js.map +0 -1
- package/lib/application/helpers/urls/autorizadores.json +0 -224
- package/lib/application/helpers/urls/autorizadoresNFe.json +0 -273
- package/lib/application/helpers/urls/servicos.json +0 -30
- package/lib/application/helpers/utils/configura-urls-sefaz.d.ts +0 -2
- package/lib/application/helpers/utils/configura-urls-sefaz.js +0 -25
- package/lib/application/helpers/utils/configura-urls-sefaz.js.map +0 -1
- package/lib/application/helpers/utils/has-value.d.ts +0 -1
- package/lib/application/helpers/utils/has-value.js +0 -11
- package/lib/application/helpers/utils/has-value.js.map +0 -1
- package/lib/application/helpers/utils/index.d.ts +0 -8
- package/lib/application/helpers/utils/index.js +0 -25
- package/lib/application/helpers/utils/index.js.map +0 -1
- package/lib/application/helpers/utils/json-one-level.d.ts +0 -1
- package/lib/application/helpers/utils/json-one-level.js +0 -16
- package/lib/application/helpers/utils/json-one-level.js.map +0 -1
- package/lib/application/helpers/utils/log.d.ts +0 -1
- package/lib/application/helpers/utils/log.js +0 -8
- package/lib/application/helpers/utils/log.js.map +0 -1
- package/lib/application/helpers/utils/random-int.d.ts +0 -1
- package/lib/application/helpers/utils/random-int.js +0 -8
- package/lib/application/helpers/utils/random-int.js.map +0 -1
- package/lib/application/helpers/utils/remove-self-closed-fields.d.ts +0 -1
- package/lib/application/helpers/utils/remove-self-closed-fields.js +0 -16
- package/lib/application/helpers/utils/remove-self-closed-fields.js.map +0 -1
- package/lib/application/helpers/utils/timeout.d.ts +0 -1
- package/lib/application/helpers/utils/timeout.js +0 -8
- package/lib/application/helpers/utils/timeout.js.map +0 -1
- package/lib/application/helpers/utils/valida-url-wsdl.d.ts +0 -1
- package/lib/application/helpers/utils/valida-url-wsdl.js +0 -11
- package/lib/application/helpers/utils/valida-url-wsdl.js.map +0 -1
- package/lib/application/helpers/web-service/build-soap-envelope.d.ts +0 -1
- package/lib/application/helpers/web-service/build-soap-envelope.js +0 -25
- package/lib/application/helpers/web-service/build-soap-envelope.js.map +0 -1
- package/lib/application/helpers/web-service/index.d.ts +0 -3
- package/lib/application/helpers/web-service/index.js +0 -20
- package/lib/application/helpers/web-service/index.js.map +0 -1
- package/lib/application/helpers/web-service/make-soap-request.d.ts +0 -2
- package/lib/application/helpers/web-service/make-soap-request.js +0 -63
- package/lib/application/helpers/web-service/make-soap-request.js.map +0 -1
- package/lib/application/helpers/web-service/proxy-to-url.d.ts +0 -2
- package/lib/application/helpers/web-service/proxy-to-url.js +0 -13
- package/lib/application/helpers/web-service/proxy-to-url.js.map +0 -1
- package/lib/application/helpers/xml/deserialize.js.map +0 -1
- package/lib/application/helpers/xml/index.js.map +0 -1
- package/lib/application/helpers/xml/serialize.d.ts +0 -1
- package/lib/application/helpers/xml/serialize.js +0 -40
- package/lib/application/helpers/xml/serialize.js.map +0 -1
- package/lib/application/helpers/xsd/CCe_v1.00.xsd +0 -13
- package/lib/application/helpers/xsd/EPEC_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/EventoCancEntregaNFe_v1.00.xsd +0 -9
- package/lib/application/helpers/xsd/EventoEntregaNFe_v1.00.xsd +0 -9
- package/lib/application/helpers/xsd/confRecebto_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/consReciNFe_v4.00.xsd +0 -9
- package/lib/application/helpers/xsd/consSitNFe_v4.00.xsd +0 -9
- package/lib/application/helpers/xsd/consStatServ_v4.00.xsd +0 -9
- package/lib/application/helpers/xsd/distDFeInt_v1.01.xsd +0 -87
- package/lib/application/helpers/xsd/e110110_v1.00.xsd +0 -60
- package/lib/application/helpers/xsd/e110111_v1.00.xsd +0 -44
- package/lib/application/helpers/xsd/e110112_v1.00.xsd +0 -71
- package/lib/application/helpers/xsd/e110130_v1.00.xsd +0 -102
- package/lib/application/helpers/xsd/e110131_v1.00.xsd +0 -51
- package/lib/application/helpers/xsd/e110140_v1.00.xsd +0 -126
- package/lib/application/helpers/xsd/e210200_v1.00.xsd +0 -34
- package/lib/application/helpers/xsd/e210210_v1.00.xsd +0 -34
- package/lib/application/helpers/xsd/e210220_v1.00.xsd +0 -47
- package/lib/application/helpers/xsd/e210240_v1.00.xsd +0 -46
- package/lib/application/helpers/xsd/envCCe_v1.00.xsd +0 -12
- package/lib/application/helpers/xsd/envConfRecebto_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/envEPEC_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/envEventoCancEntregaNFe_v1.00.xsd +0 -10
- package/lib/application/helpers/xsd/envEventoCancNFe_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/envEventoCancSubst_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/envEventoEntregaNFe_v1.00.xsd +0 -10
- package/lib/application/helpers/xsd/enviNFe_v4.00.xsd +0 -9
- package/lib/application/helpers/xsd/eventoCancNFe_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/eventoCancSubst_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/index.d.ts +0 -1
- package/lib/application/helpers/xsd/index.js +0 -18
- package/lib/application/helpers/xsd/index.js.map +0 -1
- package/lib/application/helpers/xsd/inutNFe_v4.00.xsd +0 -9
- package/lib/application/helpers/xsd/leiauteCCe_v1.00.xsd +0 -382
- package/lib/application/helpers/xsd/leiauteConfRecebto_v1.00.xsd +0 -369
- package/lib/application/helpers/xsd/leiauteConsSitNFe_v4.00.xsd +0 -503
- package/lib/application/helpers/xsd/leiauteConsStatServ_v4.00.xsd +0 -98
- package/lib/application/helpers/xsd/leiauteEPEC_v1.00.xsd +0 -423
- package/lib/application/helpers/xsd/leiauteEventoCancEntregaNFe_v1.00.xsd +0 -307
- package/lib/application/helpers/xsd/leiauteEventoCancNFe_v1.00.xsd +0 -358
- package/lib/application/helpers/xsd/leiauteEventoCancSubst_v1.00.xsd +0 -366
- package/lib/application/helpers/xsd/leiauteEventoEntregaNFe_v1.00.xsd +0 -321
- package/lib/application/helpers/xsd/leiauteInutNFe_v4.00.xsd +0 -193
- package/lib/application/helpers/xsd/leiauteNFe_v4.00.xsd +0 -6978
- package/lib/application/helpers/xsd/nfe_v4.00.xsd +0 -9
- package/lib/application/helpers/xsd/procCCeNFe_v1.00.xsd +0 -12
- package/lib/application/helpers/xsd/procConfRecebtoNFe_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/procEPEC_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/procEventoCancEntregaNFe_v1.00.xsd +0 -9
- package/lib/application/helpers/xsd/procEventoCancNFe_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/procEventoCancSubst_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/procEventoEntregaNFe_v1.00.xsd +0 -9
- package/lib/application/helpers/xsd/procInutNFe_v4.00.xsd +0 -9
- package/lib/application/helpers/xsd/procNFe_v4.00.xsd +0 -9
- package/lib/application/helpers/xsd/prod_leiauteNFe_v4.00.xsd +0 -6736
- package/lib/application/helpers/xsd/resEvento_v1.01.xsd +0 -97
- package/lib/application/helpers/xsd/resNFe_v1.01.xsd +0 -113
- package/lib/application/helpers/xsd/retConsReciNFe_v4.00.xsd +0 -9
- package/lib/application/helpers/xsd/retConsSitNFe_v4.00.xsd +0 -9
- package/lib/application/helpers/xsd/retConsStatServ_v4.00.xsd +0 -9
- package/lib/application/helpers/xsd/retDistDFeInt_v1.01.xsd +0 -88
- package/lib/application/helpers/xsd/retEnvCCe_v1.00.xsd +0 -12
- package/lib/application/helpers/xsd/retEnvConfRecebto_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/retEnvEPEC_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/retEnvEventoCancNFe_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/retEnvEventoCancSubst_v1.00.xsd +0 -11
- package/lib/application/helpers/xsd/retEnviNFe_v4.00.xsd +0 -9
- package/lib/application/helpers/xsd/retEventoCancEntregaNFe_v1.00.xsd +0 -9
- package/lib/application/helpers/xsd/retEventoEntregaNFe_v1.00.xsd +0 -9
- package/lib/application/helpers/xsd/retInutNFe_v4.00.xsd +0 -9
- package/lib/application/helpers/xsd/tiposBasico_v1.03.xsd +0 -871
- package/lib/application/helpers/xsd/tiposBasico_v4.00.xsd +0 -589
- package/lib/application/helpers/xsd/tiposDistDFe_v1.01.xsd +0 -220
- package/lib/application/helpers/xsd/validate.d.ts +0 -4
- package/lib/application/helpers/xsd/validate.js +0 -70
- package/lib/application/helpers/xsd/validate.js.map +0 -1
- package/lib/application/helpers/xsd/xmldsig-core-schema_v1.01.xsd +0 -98
- package/lib/domain/contracts/repos/certificate-load.d.ts +0 -15
- package/lib/domain/contracts/repos/certificate-load.js +0 -3
- package/lib/domain/contracts/repos/certificate-load.js.map +0 -1
- package/lib/domain/contracts/repos/evento.d.ts +0 -43
- package/lib/domain/contracts/repos/evento.js +0 -3
- package/lib/domain/contracts/repos/evento.js.map +0 -1
- package/lib/domain/contracts/repos/generate-pdf.js +0 -3
- package/lib/domain/contracts/repos/generate-pdf.js.map +0 -1
- package/lib/domain/contracts/repos/index.d.ts +0 -13
- package/lib/domain/contracts/repos/index.js +0 -30
- package/lib/domain/contracts/repos/index.js.map +0 -1
- package/lib/domain/contracts/repos/info-qr-code.d.ts +0 -10
- package/lib/domain/contracts/repos/info-qr-code.js +0 -3
- package/lib/domain/contracts/repos/info-qr-code.js.map +0 -1
- package/lib/domain/contracts/repos/inutilizacao.d.ts +0 -11
- package/lib/domain/contracts/repos/inutilizacao.js +0 -3
- package/lib/domain/contracts/repos/inutilizacao.js.map +0 -1
- package/lib/domain/contracts/repos/nfe-proc.js +0 -3
- package/lib/domain/contracts/repos/nfe-proc.js.map +0 -1
- package/lib/domain/contracts/repos/nfe.d.ts +0 -108
- package/lib/domain/contracts/repos/nfe.js +0 -28
- package/lib/domain/contracts/repos/nfe.js.map +0 -1
- package/lib/domain/contracts/repos/proc-evento.d.ts +0 -57
- package/lib/domain/contracts/repos/proc-evento.js +0 -3
- package/lib/domain/contracts/repos/proc-evento.js.map +0 -1
- package/lib/domain/contracts/repos/proc-inut.d.ts +0 -52
- package/lib/domain/contracts/repos/proc-inut.js +0 -3
- package/lib/domain/contracts/repos/proc-inut.js.map +0 -1
- package/lib/domain/contracts/repos/retorno.d.ts +0 -26
- package/lib/domain/contracts/repos/retorno.js +0 -3
- package/lib/domain/contracts/repos/retorno.js.map +0 -1
- package/lib/domain/contracts/repos/schema.js +0 -23
- package/lib/domain/contracts/repos/schema.js.map +0 -1
- package/lib/domain/contracts/repos/soap-info.d.ts +0 -19
- package/lib/domain/contracts/repos/soap-info.js +0 -3
- package/lib/domain/contracts/repos/soap-info.js.map +0 -1
- package/lib/domain/contracts/repos/soap-request.d.ts +0 -16
- package/lib/domain/contracts/repos/soap-request.js +0 -3
- package/lib/domain/contracts/repos/soap-request.js.map +0 -1
- package/lib/domain/contracts/repos/web-proxy.d.ts +0 -9
- package/lib/domain/contracts/repos/web-proxy.js +0 -3
- package/lib/domain/contracts/repos/web-proxy.js.map +0 -1
- package/lib/domain/errors/certificate.d.ts +0 -6
- package/lib/domain/errors/certificate.js +0 -18
- package/lib/domain/errors/certificate.js.map +0 -1
- package/lib/domain/errors/index.d.ts +0 -1
- package/lib/domain/errors/index.js +0 -18
- package/lib/domain/errors/index.js.map +0 -1
- package/lib/domain/use-cases/load-certificate.d.ts +0 -7
- package/lib/domain/use-cases/load-certificate.js +0 -56
- package/lib/domain/use-cases/load-certificate.js.map +0 -1
- package/lib/domain/use-cases/pdf/index.js.map +0 -1
- package/lib/domain/use-cases/pdf/pdf-NFCe.js.map +0 -1
- package/lib/domain/use-cases/pdf/pdf-NFe.js.map +0 -1
- package/lib/domain/use-cases/processo/cancelar.d.ts +0 -11
- package/lib/domain/use-cases/processo/cancelar.js +0 -28
- package/lib/domain/use-cases/processo/cancelar.js.map +0 -1
- package/lib/domain/use-cases/processo/carta-correcao.d.ts +0 -12
- package/lib/domain/use-cases/processo/carta-correcao.js +0 -31
- package/lib/domain/use-cases/processo/carta-correcao.js.map +0 -1
- package/lib/domain/use-cases/processo/consulta-recibo.d.ts +0 -4
- package/lib/domain/use-cases/processo/consulta-recibo.js +0 -64
- package/lib/domain/use-cases/processo/consulta-recibo.js.map +0 -1
- package/lib/domain/use-cases/processo/emissao.d.ts +0 -9
- package/lib/domain/use-cases/processo/emissao.js +0 -59
- package/lib/domain/use-cases/processo/emissao.js.map +0 -1
- package/lib/domain/use-cases/processo/gerar-evento.d.ts +0 -4
- package/lib/domain/use-cases/processo/gerar-evento.js +0 -149
- package/lib/domain/use-cases/processo/gerar-evento.js.map +0 -1
- package/lib/domain/use-cases/processo/inutiliza.d.ts +0 -9
- package/lib/domain/use-cases/processo/inutiliza.js +0 -72
- package/lib/domain/use-cases/processo/inutiliza.js.map +0 -1
- package/lib/domain/use-cases/processo/status.d.ts +0 -4
- package/lib/domain/use-cases/processo/status.js +0 -36
- package/lib/domain/use-cases/processo/status.js.map +0 -1
- package/lib/domain/use-cases/signature/index.d.ts +0 -2
- package/lib/domain/use-cases/signature/index.js +0 -19
- package/lib/domain/use-cases/signature/index.js.map +0 -1
- package/lib/domain/use-cases/signature/sign-xml-x509.d.ts +0 -2
- package/lib/domain/use-cases/signature/sign-xml-x509.js +0 -31
- package/lib/domain/use-cases/signature/sign-xml-x509.js.map +0 -1
- package/lib/domain/use-cases/signature/sign-xml.d.ts +0 -1
- package/lib/domain/use-cases/signature/sign-xml.js +0 -13
- package/lib/domain/use-cases/signature/sign-xml.js.map +0 -1
- package/lib/domain/use-cases/utils/data-atual.js.map +0 -1
- package/lib/domain/use-cases/utils/ibge-code-to-uf.d.ts +0 -1
- package/lib/domain/use-cases/utils/ibge-code-to-uf.js +0 -62
- package/lib/domain/use-cases/utils/ibge-code-to-uf.js.map +0 -1
- package/lib/domain/use-cases/utils/index.js.map +0 -1
- package/lib/domain/use-cases/utils/uf-to-ibge-code.d.ts +0 -2
- package/lib/domain/use-cases/utils/uf-to-ibge-code.js +0 -62
- package/lib/domain/use-cases/utils/uf-to-ibge-code.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/main/config/env.d.ts +0 -7
- package/lib/main/config/env.js +0 -11
- package/lib/main/config/env.js.map +0 -1
- package/lib/main/config/module-alias.d.ts +0 -1
- package/lib/main/config/module-alias.js +0 -6
- package/lib/main/config/module-alias.js.map +0 -1
- package/lib/main/webservices/functions.d.ts +0 -1
- package/lib/main/webservices/functions.js +0 -13
- package/lib/main/webservices/functions.js.map +0 -1
- package/lib/main/webservices/sefazNfce.d.ts +0 -6
- package/lib/main/webservices/sefazNfce.js +0 -192
- package/lib/main/webservices/sefazNfce.js.map +0 -1
- package/lib/main/webservices/sefazNfe.d.ts +0 -5
- package/lib/main/webservices/sefazNfe.js +0 -113
- package/lib/main/webservices/sefazNfe.js.map +0 -1
- package/lib/testes/nfce/cancelamento.d.ts +0 -1
- package/lib/testes/nfce/cancelamento.js +0 -18
- package/lib/testes/nfce/cancelamento.js.map +0 -1
- package/lib/testes/nfce/dados.d.ts +0 -7
- package/lib/testes/nfce/dados.js +0 -204
- package/lib/testes/nfce/dados.js.map +0 -1
- package/lib/testes/nfce/emissao.d.ts +0 -1
- package/lib/testes/nfce/emissao.js +0 -16
- package/lib/testes/nfce/emissao.js.map +0 -1
- package/lib/testes/nfce/inutiliza.d.ts +0 -1
- package/lib/testes/nfce/inutiliza.js +0 -21
- package/lib/testes/nfce/inutiliza.js.map +0 -1
- package/lib/testes/nfce/status.d.ts +0 -1
- package/lib/testes/nfce/status.js +0 -16
- package/lib/testes/nfce/status.js.map +0 -1
- package/lib/testes/nfe/cancelamento.d.ts +0 -1
- package/lib/testes/nfe/cancelamento.js +0 -18
- package/lib/testes/nfe/cancelamento.js.map +0 -1
- package/lib/testes/nfe/carta-correcao.d.ts +0 -1
- package/lib/testes/nfe/carta-correcao.js +0 -19
- package/lib/testes/nfe/carta-correcao.js.map +0 -1
- package/lib/testes/nfe/dados.d.ts +0 -5
- package/lib/testes/nfe/dados.js +0 -203
- package/lib/testes/nfe/dados.js.map +0 -1
- package/lib/testes/nfe/emissao.d.ts +0 -1
- package/lib/testes/nfe/emissao.js +0 -16
- package/lib/testes/nfe/emissao.js.map +0 -1
- package/lib/testes/nfe/inutiliza.d.ts +0 -1
- package/lib/testes/nfe/inutiliza.js +0 -21
- package/lib/testes/nfe/inutiliza.js.map +0 -1
- package/lib/testes/nfe/status.d.ts +0 -1
- package/lib/testes/nfe/status.js +0 -16
- package/lib/testes/nfe/status.js.map +0 -1
- package/lib/testes/pdf/antigo/geradorDePdf.d.ts +0 -1
- package/lib/testes/pdf/antigo/geradorDePdf.js +0 -653
- package/lib/testes/pdf/antigo/geradorDePdf.js.map +0 -1
- package/lib/testes/pdf/pdf.d.ts +0 -1
- package/lib/testes/pdf/pdf.js +0 -21
- package/lib/testes/pdf/pdf.js.map +0 -1
- package/lib/tsconfig-build.tsbuildinfo +0 -1
|
@@ -1,88 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getDadosEmitente = void 0;
|
|
7
|
-
const bwip_js_1 = __importDefault(require("bwip-js"));
|
|
8
|
-
const date_fns_1 = require("date-fns");
|
|
9
|
-
const linha_horizontal_1 = require("./linha-horizontal");
|
|
10
|
-
const linha_vertical_1 = require("./linha-vertical");
|
|
11
|
-
const normal_1 = require("./normal");
|
|
12
|
-
const titulo_1 = require("./titulo");
|
|
13
|
-
const campo_1 = require("./campo");
|
|
14
|
-
const negrito_1 = require("./negrito");
|
|
15
|
-
const default_1 = require("./default");
|
|
16
|
-
const italico_1 = require("./italico");
|
|
17
|
-
async function getDadosEmitente({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, emit, protNFe, pathLogo, ide, folha }) {
|
|
18
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 317, x2: -254.7, y: y + 53.1, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
19
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 317, x2: -254.7, y: y + 72.9, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
20
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 53.1, y2: y + 72.9, x: 317.4, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
21
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 53.1, y2: y + 72.9, x: 331.55, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
22
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 15.25, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
23
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 340.05, x2: 0, y: y + 60.5, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
24
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 340.05, x2: 0, y: y + 83.1, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
25
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 105.9, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
26
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 125.7, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
27
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 145.7, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
28
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 15.25, y2: y + 145.7, x: 0, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
29
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 15.25, y2: y + 105.7, x: 240.75, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
30
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 15.25, y2: y + 125.7, x: 340.05, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
31
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 15.25, y2: y + 145.7, x: larguraDoFormulario, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
32
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 125.7, y2: y + 145.7, x: 195.55, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
33
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 125.7, y2: y + 145.7, x: 391, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
34
|
-
(0, titulo_1.titulo)({ value: 'DANFE', x: 266.5, y: y + 19.2, largura: 197, alinhamento: 'left', tamanho: 14, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
35
|
-
(0, italico_1.italico)({ doc, value: 'IDENTIFICAÇÃO DO EMITENTE', x: 1, y: y + 15.7, largura: 238, alinhamento: 'center', tamanho: 10, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
36
|
-
const identificacaoDoEmitenteY = pathLogo !== undefined ? y + 33.7 : y + 39.7;
|
|
37
|
-
const identificacaoDoEmitenteX = pathLogo !== undefined ? 67 : 1.5;
|
|
38
|
-
const identificacaoDoEmitenteLargura = pathLogo !== undefined ? 172 : 237;
|
|
39
|
-
const identificacaoDoEmitenteFonte = pathLogo !== undefined ? 0 : 1.5;
|
|
40
|
-
if (pathLogo !== undefined) {
|
|
41
|
-
if (folha === 0) {
|
|
42
|
-
doc.image(pathLogo, margemEsquerda + ajusteX + 4.5, margemTopo + ajusteY + default_1.DEFAULT_NFE.ajusteYDoLogotipo + 78 , {
|
|
43
|
-
fit: [60, 60]
|
|
44
|
-
});
|
|
45
|
-
}else{
|
|
46
|
-
doc.image(pathLogo, margemEsquerda + ajusteX + 4.5, margemTopo + ajusteY + default_1.DEFAULT_NFE.ajusteYDoLogotipo + 33 , {
|
|
47
|
-
fit: [60, 60]
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
(0, negrito_1.negrito)({ doc, value: emit.xNome, x: identificacaoDoEmitenteX, y: identificacaoDoEmitenteY + default_1.DEFAULT_NFE.ajusteYDaIdentificacaoDoEmitente, largura: identificacaoDoEmitenteLargura, alinhamento: 'center', tamanho: 8 + identificacaoDoEmitenteFonte, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
53
|
-
(0, normal_1.normal)({ doc, value: `${emit.enderEmit.xLgr}, ${emit.enderEmit.nro} ${emit.enderEmit.xCpl ?? ''}`, x: identificacaoDoEmitenteX, y: doc.y - margemTopo + 2, largura: identificacaoDoEmitenteLargura, alinhamento: 'center', tamanho: 6 + identificacaoDoEmitenteFonte, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
54
|
-
(0, normal_1.normal)({ doc, value: `${emit.enderEmit.xBairro}. ${emit.enderEmit.xMun}-${emit.enderEmit.UF}`, x: identificacaoDoEmitenteX, y: doc.y - margemTopo, largura: identificacaoDoEmitenteLargura, alinhamento: 'center', tamanho: 6 + identificacaoDoEmitenteFonte, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
55
|
-
if (emit.fone !== undefined) {
|
|
56
|
-
(0, normal_1.normal)({ doc, value: 'Telefone: ' + emit.fone, x: identificacaoDoEmitenteX, y: doc.y - margemTopo + 2, largura: identificacaoDoEmitenteLargura, alinhamento: 'center', tamanho: 6 + identificacaoDoEmitenteFonte, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
57
|
-
}
|
|
58
|
-
(0, normal_1.normal)({ doc, value: 'Documento Auxiliar da Nota Fiscal Eletrônica', x: 241.5, y: y + 32.7, largura: 99.5, alinhamento: 'center', tamanho: 10, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
59
|
-
(0, normal_1.normal)({ doc, value: '0 - ENTRADA', x: 248, y: y + 55.7, largura: 99.5, alinhamento: 'left', ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
60
|
-
(0, normal_1.normal)({ doc, value: '1 - SAÍDA', x: 248, y: y + 64.2, largura: 99.5, alinhamento: 'left', ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
61
|
-
(0, normal_1.normal)({ doc, value: ide.tpNF, x: 317.5, y: y + 52.5, largura: 14.5, alinhamento: 'center', tamanho: 18, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
62
|
-
(0, normal_1.normal)({ doc, value: 'Consulta de autenticidade no portal nacional da NF-e', x: 340.5, y: y + 85.7, largura: 244, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
63
|
-
(0, normal_1.normal)({ doc, value: 'www.nfe.fazenda.gov.br/portal ou no site da Sefaz Autorizadora', x: 340.5, y: y + 93.7, largura: 244, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
64
|
-
(0, normal_1.normal)({ doc, value: 'Nº. ' + ide.nNF.padStart(9, '0').replace(/(\d{3})(\d{3})(\d{3})/, '$1.$2.$3'), x: 241.2, y: y + 75.2, largura: 98.5, alinhamento: 'center', tamanho: 10, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
65
|
-
(0, normal_1.normal)({ doc, value: 'Série ' + ide.serie, x: 241.2, y: y + 85.2, largura: 98.5, alinhamento: 'center', tamanho: 10, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
66
|
-
const options = {
|
|
67
|
-
bcid: 'code128',
|
|
68
|
-
text: protNFe.infProt.chNFe,
|
|
69
|
-
height: 15,
|
|
70
|
-
width: 130
|
|
71
|
-
};
|
|
72
|
-
const barcodeCep = await bwip_js_1.default.toBuffer(options);
|
|
73
|
-
doc.image(barcodeCep, 350, y + 22.7, { fit: [230, 50] });
|
|
74
|
-
(0, titulo_1.titulo)({ value: 'CHAVE DE ACESSO', x: 341.5, y: y + 61.2, largura: 244, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
75
|
-
(0, campo_1.campo)({ value: protNFe.infProt.chNFe.replace(/(.{4})(?=.)/g, '$1 '), x: 341.5, y: y + 67.7, largura: 244, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
76
|
-
(0, titulo_1.titulo)({ value: 'PROTOCOLO DE AUTORIZAÇÃO DE USO', x: 341.5, y: y + 106.7, largura: 244, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
77
|
-
(0, campo_1.campo)({ value: `${protNFe.infProt.nProt.replace(/(.{3})(?=.)/g, '$1 ')} - ${(0, date_fns_1.format)((0, date_fns_1.parseISO)(protNFe.infProt.dhRecbto), 'dd/MM/yyyy HH:mm:ss')}`, x: 341.5, y: y + 114.1, largura: 244, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
78
|
-
(0, titulo_1.titulo)({ value: 'NATUREZA DA OPERAÇÃO', x: 1.5, y: y + 106.7, largura: 338, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
79
|
-
(0, campo_1.campo)({ value: ide.natOp, x: 1.5, y: y + 114.1, largura: 338, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
80
|
-
(0, titulo_1.titulo)({ value: 'INSCRIÇÃO ESTADUAL', x: 1.5, y: y + 126.7, largura: 192.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
81
|
-
(0, campo_1.campo)({ value: emit.IE.replace(/(\d{3})(\d{3})(\d{3})(\d{3})/, '$1.$2.$3.$4'), x: 1.5, y: y + 134.1, largura: 192.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
82
|
-
(0, titulo_1.titulo)({ value: 'INSCRIÇÃO ESTADUAL DO SUBST. TRIBUT.', x: 197, y: y + 126.7, largura: 192.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
83
|
-
(0, campo_1.campo)({ value: emit.iEST ?? '', x: 197, y: y + 134.1, largura: 192.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
84
|
-
(0, titulo_1.titulo)({ value: 'CNPJ', x: 392.5, y: y + 126.7, largura: 192.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
85
|
-
(0, campo_1.campo)({ value: emit.CNPJ?.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/, '$1.$2.$3/$4-$5') ?? '', x: 392.5, y: y + 134.1, largura: 192.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
86
|
-
}
|
|
87
|
-
exports.getDadosEmitente = getDadosEmitente;
|
|
88
|
-
//# sourceMappingURL=get-dados-emitente.js.map
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDadosEmitente=void 0;const bwip_js_1=__importDefault(require("bwip-js")),date_fns_1=require("date-fns"),campo_1=require("./campo"),default_1=require("./default"),italico_1=require("./italico"),linha_horizontal_1=require("./linha-horizontal"),linha_vertical_1=require("./linha-vertical"),negrito_1=require("./negrito"),normal_1=require("./normal"),titulo_1=require("./titulo");async function getDadosEmitente({y:a,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g,larguraDoFormulario:h,emit:i,protNFe:j,pathLogo:k,ide:l,folha:m}){(0,linha_horizontal_1.linhaHorizontal)({x1:317,x2:-254.7,y:a+53.1,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:317,x2:-254.7,y:a+72.9,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+53.1,y2:a+72.9,x:317.4,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+53.1,y2:a+72.9,x:331.55,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:a+15.25,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:340.05,x2:0,y:a+60.5,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:340.05,x2:0,y:a+83.1,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:a+105.9,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:a+125.7,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:a+145.7,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+15.25,y2:a+145.7,x:0,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+15.25,y2:a+105.7,x:240.75,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+15.25,y2:a+125.7,x:340.05,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+15.25,y2:a+145.7,x:h,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+125.7,y2:a+145.7,x:195.55,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+125.7,y2:a+145.7,x:391,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"DANFE",x:266.5,y:a+19.2,largura:197,alinhamento:"left",tamanho:14,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,italico_1.italico)({doc:b,value:"IDENTIFICA\xC7\xC3O DO EMITENTE",x:1,y:a+15.7,largura:238,alinhamento:"center",tamanho:10,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g});const n=k===void 0?a+39.7:a+33.7,o=k===void 0?1.5:67,p=k===void 0?237:172,q=k===void 0?1.5:0;k!==void 0&&(0===m?b.image(k,f+c+4.5,g+d+default_1.DEFAULT_NFE.ajusteYDoLogotipo+78,{fit:[60,60]}):b.image(k,f+c+4.5,g+d+default_1.DEFAULT_NFE.ajusteYDoLogotipo+33,{fit:[60,60]})),(0,negrito_1.negrito)({doc:b,value:i.xNome,x:o,y:n+default_1.DEFAULT_NFE.ajusteYDaIdentificacaoDoEmitente,largura:p,alinhamento:"center",tamanho:8+q,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,normal_1.normal)({doc:b,value:`${i.enderEmit.xLgr}, ${i.enderEmit.nro} ${i.enderEmit.xCpl??""}`,x:o,y:b.y-g+2,largura:p,alinhamento:"center",tamanho:6+q,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,normal_1.normal)({doc:b,value:`${i.enderEmit.xBairro}. ${i.enderEmit.xMun}-${i.enderEmit.UF}`,x:o,y:b.y-g,largura:p,alinhamento:"center",tamanho:6+q,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),i.fone!==void 0&&(0,normal_1.normal)({doc:b,value:"Telefone: "+i.fone,x:o,y:b.y-g+2,largura:p,alinhamento:"center",tamanho:6+q,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,normal_1.normal)({doc:b,value:"Documento Auxiliar da Nota Fiscal Eletr\xF4nica",x:241.5,y:a+32.7,largura:99.5,alinhamento:"center",tamanho:10,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,normal_1.normal)({doc:b,value:"0 - ENTRADA",x:248,y:a+55.7,largura:99.5,alinhamento:"left",ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,normal_1.normal)({doc:b,value:"1 - SA\xCDDA",x:248,y:a+64.2,largura:99.5,alinhamento:"left",ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,normal_1.normal)({doc:b,value:l.tpNF,x:317.5,y:a+52.5,largura:14.5,alinhamento:"center",tamanho:18,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,normal_1.normal)({doc:b,value:"Consulta de autenticidade no portal nacional da NF-e",x:340.5,y:a+85.7,largura:244,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,normal_1.normal)({doc:b,value:"www.nfe.fazenda.gov.br/portal ou no site da Sefaz Autorizadora",x:340.5,y:a+93.7,largura:244,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,normal_1.normal)({doc:b,value:"N\xBA. "+l.nNF.padStart(9,"0").replace(/(\d{3})(\d{3})(\d{3})/,"$1.$2.$3"),x:241.2,y:a+75.2,largura:98.5,alinhamento:"center",tamanho:10,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,normal_1.normal)({doc:b,value:"S\xE9rie "+l.serie,x:241.2,y:a+85.2,largura:98.5,alinhamento:"center",tamanho:10,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g});const r={bcid:"code128",text:j.infProt.chNFe,height:15,width:130},s=await bwip_js_1.default.toBuffer(r);b.image(s,350,a+22.7,{fit:[230,50]}),(0,titulo_1.titulo)({value:"CHAVE DE ACESSO",x:341.5,y:a+61.2,largura:244,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:j.infProt.chNFe.replace(/(.{4})(?=.)/g,"$1 "),x:341.5,y:a+67.7,largura:244,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"PROTOCOLO DE AUTORIZA\xC7\xC3O DE USO",x:341.5,y:a+106.7,largura:244,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:`${j.infProt.nProt.replace(/(.{3})(?=.)/g,"$1 ")} - ${(0,date_fns_1.format)((0,date_fns_1.parseISO)(j.infProt.dhRecbto),"dd/MM/yyyy HH:mm:ss")}`,x:341.5,y:a+114.1,largura:244,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"NATUREZA DA OPERA\xC7\xC3O",x:1.5,y:a+106.7,largura:338,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:l.natOp,x:1.5,y:a+114.1,largura:338,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"INSCRI\xC7\xC3O ESTADUAL",x:1.5,y:a+126.7,largura:192.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:i.IE.replace(/(\d{3})(\d{3})(\d{3})(\d{3})/,"$1.$2.$3.$4"),x:1.5,y:a+134.1,largura:192.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"INSCRI\xC7\xC3O ESTADUAL DO SUBST. TRIBUT.",x:197,y:a+126.7,largura:192.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:i.iEST??"",x:197,y:a+134.1,largura:192.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"CNPJ",x:392.5,y:a+126.7,largura:192.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:i.CNPJ?.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/,"$1.$2.$3/$4-$5")??"",x:392.5,y:a+134.1,largura:192.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g})}exports.getDadosEmitente=getDadosEmitente;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GeneratePdf } from '../../../../types';
|
|
2
2
|
export declare function getDestinatarioRemetente({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, dest, ide }: GeneratePdf.InputRemetenteDestinatario): number;
|
|
@@ -1,51 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getDestinatarioRemetente = void 0;
|
|
4
|
-
const date_fns_1 = require("date-fns");
|
|
5
|
-
const linha_horizontal_1 = require("./linha-horizontal");
|
|
6
|
-
const linha_vertical_1 = require("./linha-vertical");
|
|
7
|
-
const titulo_1 = require("./titulo");
|
|
8
|
-
const campo_1 = require("./campo");
|
|
9
|
-
const default_1 = require("./default");
|
|
10
|
-
const secao_1 = require("./secao");
|
|
11
|
-
function getDestinatarioRemetente({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, dest, ide }) {
|
|
12
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 9, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
13
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 29, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
14
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 49, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
15
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 69, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
16
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 9.2, y2: y + 69, x: 0, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
17
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 9.2, y2: y + 29, x: 357.1, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
18
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 29.2, y2: y + 69, x: 274.9, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
19
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 49.2, y2: y + 69, x: 297.6, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
20
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 29.2, y2: y + 69, x: 396.75, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
21
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 9.2, y2: y + 69, x: 493.1, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
22
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 9.2, y2: y + 69, x: larguraDoFormulario, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
23
|
-
(0, secao_1.secao)({ doc, value: 'DESTINATÁRIO / REMETENTE', x: 1.5, y: y + 0.9, largura: 0, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
24
|
-
(0, titulo_1.titulo)({ value: 'NOME / RAZÃO SOCIAL', x: 1.5, y: y + 11, largura: 353.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
25
|
-
(0, campo_1.campo)({ value: dest.xNome, x: 1.5, y: y + 18, largura: 353.5, alinhamento: 'left', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
26
|
-
(0, titulo_1.titulo)({ value: 'CNPJ / CPF', x: 358, y: y + 11, largura: 133.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
27
|
-
(0, campo_1.campo)({ value: dest.CPF?.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/, '$1.$2.$3-$4') ?? '', x: 358, y: y + 18, largura: 133.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
28
|
-
(0, campo_1.campo)({ value: dest.CNPJ?.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/, '$1.$2.$3/$4-$5') ?? '', x: 358, y: y + 18, largura: 133.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
29
|
-
(0, titulo_1.titulo)({ value: 'DATA DA EMISSÃO', x: 495, y: y + 11, largura: 90, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
30
|
-
(0, campo_1.campo)({ value: (0, date_fns_1.format)((0, date_fns_1.parseISO)(ide.dhEmi), 'dd/MM/yyyy HH:mm:ss'), x: 495, y: y + 18, largura: 90, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
31
|
-
(0, titulo_1.titulo)({ value: 'ENDEREÇO', x: 1.5, y: y + 30, largura: 272, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
32
|
-
(0, campo_1.campo)({ value: dest.enderDest?.xLgr && dest.enderDest?.nro ? `${dest.enderDest.xLgr}, ${dest.enderDest.nro}` : dest.enderDest?.xLgr ?? '', x: 1.5, y: y + 38, largura: 272, alinhamento: 'left', tamanho: default_1.DEFAULT_NFE.tamanhoDaFonteDoCampo - 0.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
33
|
-
(0, titulo_1.titulo)({ value: 'BAIRRO / DISTRITO', x: 276, y: y + 30, largura: 192, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
34
|
-
(0, campo_1.campo)({ value: dest.enderDest?.xBairro ?? '', x: 276, y: y + 38, largura: 119, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
35
|
-
(0, titulo_1.titulo)({ value: 'CEP', x: 398, y: y + 30, largura: 93, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
36
|
-
(0, campo_1.campo)({ value: dest.enderDest?.CEP ?? '', x: 398, y: y + 38, largura: 93, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
37
|
-
(0, titulo_1.titulo)({ value: 'DATA DA SAÍDA', x: 495, y: y + 30, largura: 90, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
38
|
-
(0, campo_1.campo)({ value: ide.dhSaiEnt !== undefined ? (0, date_fns_1.format)((0, date_fns_1.parseISO)(ide.dhSaiEnt), 'dd/MM/yyyy HH:mm:ss') : '', x: 495, y: y + 38, largura: 90, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
39
|
-
(0, titulo_1.titulo)({ value: 'MUNICÍPIO', x: 1.5, y: y + 51, largura: 272, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
40
|
-
(0, campo_1.campo)({ value: dest.enderDest?.xMun ?? '', x: 1.5, y: y + 58, largura: 272, alinhamento: 'left', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
41
|
-
(0, titulo_1.titulo)({ value: 'UF', x: 276, y: y + 51, largura: 20, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
42
|
-
(0, campo_1.campo)({ value: dest.enderDest?.UF ?? '', x: 276, y: y + 58, largura: 20, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
43
|
-
(0, titulo_1.titulo)({ value: 'FONE / FAX', x: 299, y: y + 51, largura: 96, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
44
|
-
(0, campo_1.campo)({ value: dest.enderDest?.fone ?? '', x: 299, y: y + 58, largura: 96, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
45
|
-
(0, titulo_1.titulo)({ value: 'INSCRIÇÃO ESTADUAL', x: 398, y: y + 51, largura: 93, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
46
|
-
(0, campo_1.campo)({ value: dest?.IE?.replace(/(\d{3})(\d{3})(\d{3})(\d{3})/, '$1.$2.$3.$4'), x: 398, y: y + 58, largura: 93, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
47
|
-
(0, titulo_1.titulo)({ value: 'HORA DA SAÍDA', x: 495, y: y + 51, largura: 90, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
48
|
-
return doc.y;
|
|
49
|
-
}
|
|
50
|
-
exports.getDestinatarioRemetente = getDestinatarioRemetente;
|
|
51
|
-
//# sourceMappingURL=get-destinatario-remetente.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDestinatarioRemetente=void 0;const date_fns_1=require("date-fns"),campo_1=require("./campo"),default_1=require("./default"),linha_horizontal_1=require("./linha-horizontal"),linha_vertical_1=require("./linha-vertical"),secao_1=require("./secao"),titulo_1=require("./titulo");function getDestinatarioRemetente({y:a,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g,larguraDoFormulario:h,dest:i,ide:j}){return(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:a+9,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:a+29,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:a+49,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:a+69,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+9.2,y2:a+69,x:0,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+9.2,y2:a+29,x:357.1,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+29.2,y2:a+69,x:274.9,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+49.2,y2:a+69,x:297.6,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+29.2,y2:a+69,x:396.75,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+9.2,y2:a+69,x:493.1,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+9.2,y2:a+69,x:h,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,secao_1.secao)({doc:b,value:"DESTINAT\xC1RIO / REMETENTE",x:1.5,y:a+.9,largura:0,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"NOME / RAZ\xC3O SOCIAL",x:1.5,y:a+11,largura:353.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:i.xNome,x:1.5,y:a+18,largura:353.5,alinhamento:"left",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"CNPJ / CPF",x:358,y:a+11,largura:133.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:i.CPF?.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")??"",x:358,y:a+18,largura:133.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:i.CNPJ?.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/,"$1.$2.$3/$4-$5")??"",x:358,y:a+18,largura:133.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"DATA DA EMISS\xC3O",x:495,y:a+11,largura:90,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:(0,date_fns_1.format)((0,date_fns_1.parseISO)(j.dhEmi),"dd/MM/yyyy HH:mm:ss"),x:495,y:a+18,largura:90,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"ENDERE\xC7O",x:1.5,y:a+30,largura:272,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:i.enderDest?.xLgr&&i.enderDest?.nro?`${i.enderDest.xLgr}, ${i.enderDest.nro}`:i.enderDest?.xLgr??"",x:1.5,y:a+38,largura:272,alinhamento:"left",tamanho:default_1.DEFAULT_NFE.tamanhoDaFonteDoCampo-.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"BAIRRO / DISTRITO",x:276,y:a+30,largura:192,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:i.enderDest?.xBairro??"",x:276,y:a+38,largura:119,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"CEP",x:398,y:a+30,largura:93,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:i.enderDest?.CEP??"",x:398,y:a+38,largura:93,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"DATA DA SA\xCDDA",x:495,y:a+30,largura:90,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:void 0===j.dhSaiEnt?"":(0,date_fns_1.format)((0,date_fns_1.parseISO)(j.dhSaiEnt),"dd/MM/yyyy HH:mm:ss"),x:495,y:a+38,largura:90,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"MUNIC\xCDPIO",x:1.5,y:a+51,largura:272,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:i.enderDest?.xMun??"",x:1.5,y:a+58,largura:272,alinhamento:"left",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"UF",x:276,y:a+51,largura:20,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:i.enderDest?.UF??"",x:276,y:a+58,largura:20,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"FONE / FAX",x:299,y:a+51,largura:96,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:i.enderDest?.fone??"",x:299,y:a+58,largura:96,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"INSCRI\xC7\xC3O ESTADUAL",x:398,y:a+51,largura:93,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:i?.IE?.replace(/(\d{3})(\d{3})(\d{3})(\d{3})/,"$1.$2.$3.$4")??"",x:398,y:a+58,largura:93,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"HORA DA SA\xCDDA",x:495,y:a+51,largura:90,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),b.y}exports.getDestinatarioRemetente=getDestinatarioRemetente;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GeneratePdf } from '../../../../types';
|
|
2
2
|
export declare function getFaturaDuplicata({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, cobr }: GeneratePdf.InputFaturaDuplicata): number;
|
|
@@ -1,44 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFaturaDuplicata = void 0;
|
|
4
|
-
const secao_1 = require("./secao");
|
|
5
|
-
const default_1 = require("./default");
|
|
6
|
-
const linha_horizontal_1 = require("./linha-horizontal");
|
|
7
|
-
const linha_vertical_1 = require("./linha-vertical");
|
|
8
|
-
const date_fns_1 = require("date-fns");
|
|
9
|
-
function getFaturaDuplicata({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, cobr }) {
|
|
10
|
-
if (cobr !== undefined && Object.keys(cobr).length > 0) {
|
|
11
|
-
(0, secao_1.secao)({ doc, value: 'FATURA / DUPLICATA', x: 1.5, y: y + 12, largura: 0, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
12
|
-
if (cobr.fat !== undefined) {
|
|
13
|
-
doc.font('negrito')
|
|
14
|
-
.fillColor(default_1.DEFAULT_NFE.corDoTitulo)
|
|
15
|
-
.fontSize(8)
|
|
16
|
-
.text('Número da Fatura:', 5, y + 24, {
|
|
17
|
-
width: larguraDoFormulario - 5,
|
|
18
|
-
align: 'justify',
|
|
19
|
-
lineGap: -1.5,
|
|
20
|
-
continued: true
|
|
21
|
-
}).font('normal').text(cobr.fat.nFat, { continued: true })
|
|
22
|
-
.font('negrito').text(' Valor Original:', { continued: true }).font('normal').text(` ${Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(cobr.fat.vOrig))}`, { continued: true })
|
|
23
|
-
.font('negrito').text(' Valor Desconto:', { continued: true }).font('normal').text(` ${Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(cobr.fat.vDesc))}`, { continued: true })
|
|
24
|
-
.font('negrito').text(' Valor Líquido:', { continued: true }).font('normal').text(` ${Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(cobr.fat.vLiq))}.`, { continued: true });
|
|
25
|
-
}
|
|
26
|
-
if(cobr.dup !== undefined){
|
|
27
|
-
cobr.dup.forEach((dup, index) => {
|
|
28
|
-
doc.font('negrito').text(' Duplicata:', { continued: true }).font('normal').text(` ${dup.nDup}`, { continued: true });
|
|
29
|
-
doc.font('negrito').text(' Valor:', { continued: true }).font('normal').text(` ${Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(dup.vDup))}`, { continued: true });
|
|
30
|
-
doc.font('negrito').text(' Vencimento:', { continued: true }).font('normal').text(` ${(0, date_fns_1.format)((0, date_fns_1.parseISO)(dup.dVenc), 'dd/MM/yyyy')}`, { continued: true });
|
|
31
|
-
if (index === cobr.dup.length - 1) {
|
|
32
|
-
doc.text('');
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 20, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
37
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: doc.y + 6, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
38
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 20, y2: doc.y + 6, x: 0, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
39
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 20, y2: doc.y + 6, x: larguraDoFormulario, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
40
|
-
}
|
|
41
|
-
return doc.y;
|
|
42
|
-
}
|
|
43
|
-
exports.getFaturaDuplicata = getFaturaDuplicata;
|
|
44
|
-
//# sourceMappingURL=get-fatura-duplicata.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getFaturaDuplicata=void 0;const date_fns_1=require("date-fns"),utils_1=require("../../../../domain/use-cases/utils"),default_1=require("./default"),linha_horizontal_1=require("./linha-horizontal"),linha_vertical_1=require("./linha-vertical"),secao_1=require("./secao");function getFaturaDuplicata({y:a,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g,larguraDoFormulario:h,cobr:i}){return void 0!==i&&0<Object.keys(i).length&&((0,secao_1.secao)({doc:b,value:"FATURA / DUPLICATA",x:1.5,y:a+12,largura:0,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),void 0!==i.fat&&b.font("negrito").fillColor(default_1.DEFAULT_NFE.corDoTitulo).fontSize(8).text("N\xFAmero da Fatura:",5,a+24,{width:h-5,align:"justify",lineGap:-1.5,continued:!0}).font("normal").text(i.fat.nFat,{continued:!0}).font("negrito").text(" Valor Original:",{continued:!0}).font("normal").text(` ${(0,utils_1.formatMoney)(i.fat.vOrig,2)}`,{continued:!0}).font("negrito").text(" Valor Desconto:",{continued:!0}).font("normal").text(` ${(0,utils_1.formatMoney)(i.fat.vDesc,2)}`,{continued:!0}).font("negrito").text(" Valor L\xEDquido:",{continued:!0}).font("normal").text(` ${(0,utils_1.formatMoney)(i.fat.vLiq,2)}.`,{continued:!0}),void 0!==i.dup&&i.dup.forEach((a,c)=>{b.font("negrito").text(" Duplicata:",{continued:!0}).font("normal").text(` ${a.nDup}`,{continued:!0}),b.font("negrito").text(" Valor:",{continued:!0}).font("normal").text(` ${(0,utils_1.formatMoney)(a.vDup,2)}`,{continued:!0}),b.font("negrito").text(" Vencimento:",{continued:!0}).font("normal").text(` ${(0,date_fns_1.format)((0,date_fns_1.parseISO)(a.dVenc),"dd/MM/yyyy")}`,{continued:!0}),c===i.dup.length-1&&b.text("")}),(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:a+20,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:b.y+6,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+20,y2:b.y+6,x:0,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+20,y2:b.y+6,x:h,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g})),b.y}exports.getFaturaDuplicata=getFaturaDuplicata;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GeneratePdf } from '../../../../types';
|
|
2
2
|
export declare function getHomologacao({ doc, ajusteX, ajusteY, margemEsquerda, margemTopo, larguraDoFormulario, protNFe }: GeneratePdf.InputHomologacao): void;
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getHomologacao = void 0;
|
|
4
|
-
const default_1 = require("./default");
|
|
5
|
-
function getHomologacao({ doc, ajusteX, ajusteY, margemEsquerda, margemTopo, larguraDoFormulario, protNFe }) {
|
|
6
|
-
doc.font('normal')
|
|
7
|
-
.fillColor(default_1.DEFAULT_NFE.corDoTitulo)
|
|
8
|
-
.fontSize(38)
|
|
9
|
-
.fillOpacity(default_1.DEFAULT_NFE.opacidadeDaHomologacao)
|
|
10
|
-
.text('EMITIDA EM HOMOLOGAÇÃO', margemEsquerda + ajusteX + 0, margemTopo + ajusteY + 200 + default_1.DEFAULT_NFE.ajusteYDaHomologacao, {
|
|
11
|
-
width: larguraDoFormulario,
|
|
12
|
-
align: 'center'
|
|
13
|
-
});
|
|
14
|
-
doc.font('normal')
|
|
15
|
-
.fillColor(default_1.DEFAULT_NFE.corDoTitulo)
|
|
16
|
-
.fontSize(25)
|
|
17
|
-
.fillOpacity(default_1.DEFAULT_NFE.opacidadeDaHomologacao)
|
|
18
|
-
.text(protNFe !== undefined ? 'SEM VALOR FISCAL' : 'NÃO ENVIADA PARA SEFAZ', margemEsquerda + ajusteX + 0, margemTopo + ajusteY + 250 + default_1.DEFAULT_NFE.ajusteYDaHomologacao, {
|
|
19
|
-
width: larguraDoFormulario,
|
|
20
|
-
align: 'center'
|
|
21
|
-
});
|
|
22
|
-
doc.fillOpacity(100);
|
|
23
|
-
}
|
|
24
|
-
exports.getHomologacao = getHomologacao;
|
|
25
|
-
//# sourceMappingURL=get-homologacao.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getHomologacao=void 0;const default_1=require("./default");function getHomologacao({doc:a,ajusteX:b,ajusteY:c,margemEsquerda:d,margemTopo:e,larguraDoFormulario:f,protNFe:g}){a.font("normal").fillColor(default_1.DEFAULT_NFE.corDoTitulo).fontSize(38).fillOpacity(default_1.DEFAULT_NFE.opacidadeDaHomologacao).text("EMITIDA EM HOMOLOGA\xC7\xC3O",d+b+0,e+c+200+default_1.DEFAULT_NFE.ajusteYDaHomologacao,{width:f,align:"center"}),a.font("normal").fillColor(default_1.DEFAULT_NFE.corDoTitulo).fontSize(25).fillOpacity(default_1.DEFAULT_NFE.opacidadeDaHomologacao).text(g===void 0?"N\xC3O ENVIADA PARA SEFAZ":"SEM VALOR FISCAL",d+b+0,e+c+250+default_1.DEFAULT_NFE.ajusteYDaHomologacao,{width:f,align:"center"}),a.fillOpacity(100)}exports.getHomologacao=getHomologacao;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GeneratePdf } from '../../../../types';
|
|
2
2
|
export declare function getImposto({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, total }: GeneratePdf.InputImposto): number;
|
|
@@ -1,54 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getImposto = void 0;
|
|
4
|
-
const linha_horizontal_1 = require("./linha-horizontal");
|
|
5
|
-
const linha_vertical_1 = require("./linha-vertical");
|
|
6
|
-
const titulo_1 = require("./titulo");
|
|
7
|
-
const campo_1 = require("./campo");
|
|
8
|
-
const default_1 = require("./default");
|
|
9
|
-
const secao_1 = require("./secao");
|
|
10
|
-
function getImposto({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, total }) {
|
|
11
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 16.2, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
12
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 36.2, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
13
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 56.2, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
14
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 16.2, y2: y + 56.2, x: 0, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
15
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 16.2, y2: y + 56.2, x: 87.7, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
16
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 16.2, y2: y + 56.2, x: (87.7 * 2) + 0.3, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
17
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 16.2, y2: y + 56.2, x: (87.7 * 3) + 0.4, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
18
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 16.2, y2: y + 56.2, x: (87.7 * 4) + 0.4, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
19
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 16.2, y2: y + 56.2, x: (87.7 * 5) + 0.6, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
20
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 16.2, y2: y + 56.2, x: (87.7 * 5) + 51.8, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
21
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 16.2, y2: y + 56.2, x: larguraDoFormulario, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
22
|
-
(0, secao_1.secao)({ doc, value: 'CÁLCULO DO IMPOSTO', x: 1.5, y: y + 8.7, largura: 0, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
23
|
-
(0, titulo_1.titulo)({ value: 'BASE DE CÁLCULO DO ICMS', x: 1.5, y: y + 17.2, largura: 84, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
24
|
-
(0, campo_1.campo)({ value: Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vBC)), x: 1.5, y: y + 26.2, largura: 84, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
25
|
-
(0, titulo_1.titulo)({ value: 'VALOR DO ICMS', x: 89, y: y + 17.2, largura: 84, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
26
|
-
(0, campo_1.campo)({ value: Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vICMS)), x: 89, y: y + 26.2, largura: 84, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
27
|
-
(0, titulo_1.titulo)({ value: 'BASE DE CÁLC. ICMS S.T.', x: 177, y: y + 17.2, largura: 84, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
28
|
-
(0, campo_1.campo)({ value: Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vBCST)), x: 177, y: y + 26.2, largura: 84, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
29
|
-
(0, titulo_1.titulo)({ value: 'VALOR DO ICMS SUBST.', x: 265, y: y + 17.2, largura: 84, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
30
|
-
(0, campo_1.campo)({ value: Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vST)), x: 265, y: y + 26.2, largura: 84, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
31
|
-
(0, titulo_1.titulo)({ value: 'VALOR IMP. IMPORTAÇÃO', x: 353, y: y + 17.2, largura: 84, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
32
|
-
(0, campo_1.campo)({ value: Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vIPI)), x: 353, y: y + 26.2, largura: 84, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
33
|
-
(0, titulo_1.titulo)({ value: 'VALOR DO PIS', x: 441, y: y + 17.2, largura: 47, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
34
|
-
(0, campo_1.campo)({ value: Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vPIS)), x: 441, y: y + 26.2, largura: 47, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
35
|
-
(0, titulo_1.titulo)({ value: 'VALOR TOTAL DOS PRODUTOS', x: 492, y: y + 17.2, largura: 93, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
36
|
-
(0, campo_1.campo)({ value: Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vProd)), x: 492, y: y + 26.2, largura: 93, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
37
|
-
(0, titulo_1.titulo)({ value: 'VALOR DO FRETE', x: 1.5, y: y + 37.2, largura: 84, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
38
|
-
(0, campo_1.campo)({ value: Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vFrete)), x: 1.5, y: y + 46.2, largura: 84, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
39
|
-
(0, titulo_1.titulo)({ value: 'VALOR DO SEGURO', x: 89, y: y + 37.2, largura: 84, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
40
|
-
(0, campo_1.campo)({ value: Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vSeg)), x: 89, y: y + 46.2, largura: 84, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
41
|
-
(0, titulo_1.titulo)({ value: 'DESCONTO', x: 177, y: y + 37.2, largura: 84, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
42
|
-
(0, campo_1.campo)({ value: Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vDesc)), x: 177, y: y + 46.2, largura: 84, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
43
|
-
(0, titulo_1.titulo)({ value: 'OUTRAS DESPESAS', x: 265, y: y + 37.2, largura: 84, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
44
|
-
(0, campo_1.campo)({ value: Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vOutro)), x: 265, y: y + 46.2, largura: 84, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
45
|
-
(0, titulo_1.titulo)({ value: 'VALOR TOTAL DO IPI', x: 353, y: y + 37.2, largura: 84, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
46
|
-
(0, campo_1.campo)({ value: Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vIPI)), x: 353, y: y + 46.2, largura: 84, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
47
|
-
(0, titulo_1.titulo)({ value: 'VALOR DA COFINS', x: 440.5, y: y + 37.2, largura: 47, ajusteX, ajusteY, doc, margemEsquerda, margemTopo, tamanho: default_1.DEFAULT_NFE.tamanhoDaFonteDoTitulo - 1 });
|
|
48
|
-
(0, campo_1.campo)({ value: Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vCOFINS)), x: 440.5, y: y + 46.2, largura: 47, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
49
|
-
(0, titulo_1.titulo)({ value: 'VALOR TOTAL DA NOTA', x: 492, y: y + 37.2, largura: 93, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
50
|
-
(0, campo_1.campo)({ value: Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vNF)), x: 492, y: y + 46.2, largura: 93, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
51
|
-
return doc.y;
|
|
52
|
-
}
|
|
53
|
-
exports.getImposto = getImposto;
|
|
54
|
-
//# sourceMappingURL=get-imposto.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getImposto=void 0;const utils_1=require("../../../../domain/use-cases/utils"),campo_1=require("./campo"),default_1=require("./default"),linha_horizontal_1=require("./linha-horizontal"),linha_vertical_1=require("./linha-vertical"),secao_1=require("./secao"),titulo_1=require("./titulo");function getImposto({y:a,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g,larguraDoFormulario:h,total:i}){return(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:a+16.2,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:a+36.2,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:a+56.2,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+16.2,y2:a+56.2,x:0,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+16.2,y2:a+56.2,x:87.7,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+16.2,y2:a+56.2,x:2*87.7+.3,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+16.2,y2:a+56.2,x:3*87.7+.4,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+16.2,y2:a+56.2,x:4*87.7+.4,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+16.2,y2:a+56.2,x:5*87.7+.6,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+16.2,y2:a+56.2,x:5*87.7+51.8,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+16.2,y2:a+56.2,x:h,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,secao_1.secao)({doc:b,value:"C\xC1LCULO DO IMPOSTO",x:1.5,y:a+8.7,largura:0,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"BASE DE C\xC1LCULO DO ICMS",x:1.5,y:a+17.2,largura:84,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:(0,utils_1.formatMoney)(i.ICMSTot.vBC,2),x:1.5,y:a+26.2,largura:84,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"VALOR DO ICMS",x:89,y:a+17.2,largura:84,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:(0,utils_1.formatMoney)(i.ICMSTot.vICMS,2),x:89,y:a+26.2,largura:84,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"BASE DE C\xC1LC. ICMS S.T.",x:177,y:a+17.2,largura:84,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:(0,utils_1.formatMoney)(i.ICMSTot.vBCST,2),x:177,y:a+26.2,largura:84,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"VALOR DO ICMS SUBST.",x:265,y:a+17.2,largura:84,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:(0,utils_1.formatMoney)(i.ICMSTot.vST,2),x:265,y:a+26.2,largura:84,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"VALOR IMP. IMPORTA\xC7\xC3O",x:353,y:a+17.2,largura:84,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:(0,utils_1.formatMoney)(i.ICMSTot.vIPI,2),x:353,y:a+26.2,largura:84,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"VALOR DO PIS",x:441,y:a+17.2,largura:47,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:(0,utils_1.formatMoney)(i.ICMSTot.vPIS,2),x:441,y:a+26.2,largura:47,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"VALOR TOTAL DOS PRODUTOS",x:492,y:a+17.2,largura:93,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:(0,utils_1.formatMoney)(i.ICMSTot.vProd,2),x:492,y:a+26.2,largura:93,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"VALOR DO FRETE",x:1.5,y:a+37.2,largura:84,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:(0,utils_1.formatMoney)(i.ICMSTot.vFrete,2),x:1.5,y:a+46.2,largura:84,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"VALOR DO SEGURO",x:89,y:a+37.2,largura:84,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:(0,utils_1.formatMoney)(i.ICMSTot.vSeg,2),x:89,y:a+46.2,largura:84,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"DESCONTO",x:177,y:a+37.2,largura:84,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:(0,utils_1.formatMoney)(i.ICMSTot.vDesc,2),x:177,y:a+46.2,largura:84,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"OUTRAS DESPESAS",x:265,y:a+37.2,largura:84,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:(0,utils_1.formatMoney)(i.ICMSTot.vOutro,2),x:265,y:a+46.2,largura:84,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"VALOR TOTAL DO IPI",x:353,y:a+37.2,largura:84,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:(0,utils_1.formatMoney)(i.ICMSTot.vIPI,2),x:353,y:a+46.2,largura:84,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"VALOR DA COFINS",x:440.5,y:a+37.2,largura:47,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g,tamanho:default_1.DEFAULT_NFE.tamanhoDaFonteDoTitulo-1}),(0,campo_1.campo)({value:(0,utils_1.formatMoney)(i.ICMSTot.vCOFINS,2),x:440.5,y:a+46.2,largura:47,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"VALOR TOTAL DA NOTA",x:492,y:a+37.2,largura:93,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:(0,utils_1.formatMoney)(i.ICMSTot.vNF,2),x:492,y:a+46.2,largura:93,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),b.y}exports.getImposto=getImposto;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GeneratePdf } from '../../../../types';
|
|
2
2
|
export declare function getIss({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, emit, total }: GeneratePdf.InputISS): number;
|
|
@@ -1,33 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getIss = void 0;
|
|
4
|
-
const linha_horizontal_1 = require("./linha-horizontal");
|
|
5
|
-
const linha_vertical_1 = require("./linha-vertical");
|
|
6
|
-
const titulo_1 = require("./titulo");
|
|
7
|
-
const campo_1 = require("./campo");
|
|
8
|
-
const secao_1 = require("./secao");
|
|
9
|
-
function getIss({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, emit, total }) {
|
|
10
|
-
if (total.ISSQNtot?.vServ !== undefined ||
|
|
11
|
-
total.ISSQNtot?.vBC !== undefined ||
|
|
12
|
-
total.ISSQNtot?.vISS !== undefined) {
|
|
13
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: 762.2, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
14
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: 782.2, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
15
|
-
(0, linha_vertical_1.linhaVertical)({ y1: 762.2, y2: 782.2, x: 0, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
16
|
-
(0, linha_vertical_1.linhaVertical)({ y1: 762.2, y2: 782.2, x: 136.1, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
17
|
-
(0, linha_vertical_1.linhaVertical)({ y1: 762.2, y2: 782.2, x: (136.1 * 2) - 0.1, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
18
|
-
(0, linha_vertical_1.linhaVertical)({ y1: 762.2, y2: 782.2, x: (136.1 * 3) - 0.1, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
19
|
-
(0, linha_vertical_1.linhaVertical)({ y1: 762.2, y2: 782.2, x: larguraDoFormulario, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
20
|
-
(0, secao_1.secao)({ doc, value: 'CÁLCULO DO ISSQN', x: 1.5, y: 754.5, largura: 0, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
21
|
-
(0, titulo_1.titulo)({ value: 'INSCRIÇÃO MUNICIPAL', x: 1.5, y: 763, largura: 132.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
22
|
-
(0, campo_1.campo)({ value: emit.IE, x: 1.5, y: 771, largura: 132.5, alinhamento: 'left', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
23
|
-
(0, titulo_1.titulo)({ value: 'VALOR TOTAL DOS SERVIÇOS', x: 137.5, y: 763, largura: 132.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
24
|
-
(0, campo_1.campo)({ value: total.ISSQNtot?.vServ ?? '', x: 137.5, y: 771, largura: 132.5, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
25
|
-
(0, titulo_1.titulo)({ value: 'BASE DE CÁLCULO DO ISSQN', x: 273.5, y: 763, largura: 132.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
26
|
-
(0, campo_1.campo)({ value: total.ISSQNtot?.vBC ?? '', x: 273.5, y: 771, largura: 132.5, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
27
|
-
(0, titulo_1.titulo)({ value: 'VALOR TOTAL DO ISSQN', x: 409.5, y: 763, largura: 175.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
28
|
-
(0, campo_1.campo)({ value: total.ISSQNtot?.vServ ?? '', x: 409.5, y: 771, largura: 175.5, alinhamento: 'right', ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
29
|
-
}
|
|
30
|
-
return doc.y;
|
|
31
|
-
}
|
|
32
|
-
exports.getIss = getIss;
|
|
33
|
-
//# sourceMappingURL=get-iss.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getIss=void 0;const campo_1=require("./campo"),linha_horizontal_1=require("./linha-horizontal"),linha_vertical_1=require("./linha-vertical"),secao_1=require("./secao"),titulo_1=require("./titulo");function getIss({y:a,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g,larguraDoFormulario:h,emit:i,total:j}){return(void 0!==j.ISSQNtot?.vServ||void 0!==j.ISSQNtot?.vBC||void 0!==j.ISSQNtot?.vISS)&&((0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:762.2,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:782.2,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:762.2,y2:782.2,x:0,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:762.2,y2:782.2,x:136.1,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:762.2,y2:782.2,x:2*136.1-.1,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:762.2,y2:782.2,x:3*136.1-.1,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:762.2,y2:782.2,x:h,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,secao_1.secao)({doc:b,value:"C\xC1LCULO DO ISSQN",x:1.5,y:754.5,largura:0,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"INSCRI\xC7\xC3O MUNICIPAL",x:1.5,y:763,largura:132.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:i.IE,x:1.5,y:771,largura:132.5,alinhamento:"left",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"VALOR TOTAL DOS SERVI\xC7OS",x:137.5,y:763,largura:132.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:j.ISSQNtot?.vServ??"",x:137.5,y:771,largura:132.5,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"BASE DE C\xC1LCULO DO ISSQN",x:273.5,y:763,largura:132.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:j.ISSQNtot?.vBC??"",x:273.5,y:771,largura:132.5,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"VALOR TOTAL DO ISSQN",x:409.5,y:763,largura:175.5,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,campo_1.campo)({value:j.ISSQNtot?.vISS??"",x:409.5,y:771,largura:175.5,alinhamento:"right",ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g})),b.y}exports.getIss=getIss;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GeneratePdf } from '../../../../types';
|
|
2
2
|
export declare function getMenuItens({ y, doc, ajusteX, ajusteY, margemEsquerda, margemTopo, margemDireita, finalEspacoDet, larguraDoFormulario }: GeneratePdf.InputMenuItens): number;
|
|
@@ -1,46 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getMenuItens = void 0;
|
|
4
|
-
const titulo_1 = require("./titulo");
|
|
5
|
-
const default_1 = require("./default");
|
|
6
|
-
const secao_1 = require("./secao");
|
|
7
|
-
const linha_horizontal_1 = require("./linha-horizontal");
|
|
8
|
-
const linha_vertical_1 = require("./linha-vertical");
|
|
9
|
-
function getMenuItens({ y, doc, ajusteX, ajusteY, margemEsquerda, margemTopo, margemDireita, finalEspacoDet, larguraDoFormulario }) {
|
|
10
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: -0.5, x2: 0.5, y: y + 17, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
11
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: -0.5, x2: 0.5, y: y + 32, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
12
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: -0.5, x2: 0.5, y: finalEspacoDet, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
13
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 0, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
14
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 53, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
15
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 236.5, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
16
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 267, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
17
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 293.5, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
18
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 315, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
19
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 333, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
20
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 373, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
21
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 407.5, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
22
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 441.5, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
23
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 475, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
24
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 508, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
25
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 533.5, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
26
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 557, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
27
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: larguraDoFormulario, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
28
|
-
(0, secao_1.secao)({ doc, value: 'DADOS DOS PRODUTOS / SERVIÇOS', x: 1.5, y: y + 8, largura: 0, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
29
|
-
(0, titulo_1.titulo)({ value: 'CÓDIGO', x: 1.5, y: y + 21, largura: 50.5, alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
30
|
-
(0, titulo_1.titulo)({ value: 'DESCRIÇÃO DO PRODUTO / SERVIÇO', x: 55, y: y + 21, largura: 179, alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
31
|
-
(0, titulo_1.titulo)({ value: 'NCM/SH', x: 236.5, y: y + 21, largura: 31.5, alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
32
|
-
(0, titulo_1.titulo)({ value: 'O/CST', x: 270, y: y + 21, largura: 20, alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
33
|
-
(0, titulo_1.titulo)({ value: 'CFOP', x: 294.5, y: y + 21, largura: 19.5, alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
34
|
-
(0, titulo_1.titulo)({ value: 'UN.', x: 317, y: y + 21, largura: 14.5, alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
35
|
-
(0, titulo_1.titulo)({ value: 'QUANT.', x: 335, y: y + 21, largura: 37, alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
36
|
-
(0, titulo_1.titulo)({ value: 'VALOR UNIT.', x: 375, y: y + 21 - 3, largura: 31.5, alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
37
|
-
(0, titulo_1.titulo)({ value: 'VALOR TOTAL.', x: 409.5, y: y + 21 - 3, largura: 31.5, alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
38
|
-
(0, titulo_1.titulo)({ value: 'B. CÁLC. ICMS', x: 443, y: y + 21 - 3, largura: 31.5, alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
39
|
-
(0, titulo_1.titulo)({ value: 'VALOR ICMS', x: 476, y: y + 21 - 3, largura: 31.5, alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
40
|
-
(0, titulo_1.titulo)({ value: 'VALOR IPI', x: 507.5, y: y + 21 - 3, largura: 28, alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
41
|
-
(0, titulo_1.titulo)({ value: 'ALÍQ. ICMS', x: 532, y: y + 21 - 3, largura: 28, alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
42
|
-
(0, titulo_1.titulo)({ value: 'ALÍQ. IPI', x: 557.75, y: y + 21, largura: 28, alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
43
|
-
return doc.y;
|
|
44
|
-
}
|
|
45
|
-
exports.getMenuItens = getMenuItens;
|
|
46
|
-
//# sourceMappingURL=get-menu-itens.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getMenuItens=void 0;const default_1=require("./default"),linha_horizontal_1=require("./linha-horizontal"),linha_vertical_1=require("./linha-vertical"),secao_1=require("./secao"),titulo_1=require("./titulo");function getMenuItens({y:a,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f,margemDireita:g,finalEspacoDet:h,larguraDoFormulario:i}){return(0,linha_horizontal_1.linhaHorizontal)({x1:-.5,x2:.5,y:a+17,doc:b,ajusteX:c,ajusteY:d,margemDireita:g,margemEsquerda:e,margemTopo:f}),(0,linha_horizontal_1.linhaHorizontal)({x1:-.5,x2:.5,y:a+32,doc:b,ajusteX:c,ajusteY:d,margemDireita:g,margemEsquerda:e,margemTopo:f}),(0,linha_horizontal_1.linhaHorizontal)({x1:-.5,x2:.5,y:h,doc:b,ajusteX:c,ajusteY:d,margemDireita:g,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:0,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:53,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:236.5,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:267,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:293.5,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:315,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:333,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:373,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:407.5,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:441.5,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:475,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:508,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:533.5,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:557,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,linha_vertical_1.linhaVertical)({y1:a+17,y2:h,x:i,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,secao_1.secao)({doc:b,value:"DADOS DOS PRODUTOS / SERVI\xC7OS",x:1.5,y:a+8,largura:0,ajusteX:c,ajusteY:d,margemEsquerda:e,margemTopo:f}),(0,titulo_1.titulo)({value:"C\xD3DIGO",x:1.5,y:a+21,largura:50.5,alinhamento:default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:e,margemTopo:f}),(0,titulo_1.titulo)({value:"DESCRI\xC7\xC3O DO PRODUTO / SERVI\xC7O",x:55,y:a+21,largura:179,alinhamento:default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:e,margemTopo:f}),(0,titulo_1.titulo)({value:"NCM/SH",x:236.5,y:a+21,largura:31.5,alinhamento:default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:e,margemTopo:f}),(0,titulo_1.titulo)({value:"O/CST",x:270,y:a+21,largura:20,alinhamento:default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:e,margemTopo:f}),(0,titulo_1.titulo)({value:"CFOP",x:294.5,y:a+21,largura:19.5,alinhamento:default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:e,margemTopo:f}),(0,titulo_1.titulo)({value:"UN.",x:317,y:a+21,largura:14.5,alinhamento:default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:e,margemTopo:f}),(0,titulo_1.titulo)({value:"QUANT.",x:335,y:a+21,largura:37,alinhamento:default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:e,margemTopo:f}),(0,titulo_1.titulo)({value:"VALOR UNIT.",x:375,y:a+21-3,largura:31.5,alinhamento:default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:e,margemTopo:f}),(0,titulo_1.titulo)({value:"VALOR TOTAL.",x:409.5,y:a+21-3,largura:31.5,alinhamento:default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:e,margemTopo:f}),(0,titulo_1.titulo)({value:"B. C\xC1LC. ICMS",x:443,y:a+21-3,largura:31.5,alinhamento:default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:e,margemTopo:f}),(0,titulo_1.titulo)({value:"VALOR ICMS",x:476,y:a+21-3,largura:31.5,alinhamento:default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:e,margemTopo:f}),(0,titulo_1.titulo)({value:"VALOR IPI",x:507.5,y:a+21-3,largura:28,alinhamento:default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:e,margemTopo:f}),(0,titulo_1.titulo)({value:"AL\xCDQ. ICMS",x:532,y:a+21-3,largura:28,alinhamento:default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:e,margemTopo:f}),(0,titulo_1.titulo)({value:"AL\xCDQ. IPI",x:557.75,y:a+21,largura:28,alinhamento:default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:e,margemTopo:f}),b.y}exports.getMenuItens=getMenuItens;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GeneratePdf } from '../../../../types';
|
|
2
2
|
export declare function getRecibo({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, dest, emit, total, ide }: GeneratePdf.InputRecibo): number;
|
|
@@ -1,54 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRecibo = void 0;
|
|
4
|
-
const date_fns_1 = require("date-fns");
|
|
5
|
-
const linha_horizontal_1 = require("./linha-horizontal");
|
|
6
|
-
const linha_horizontal_tracejada_1 = require("./linha-horizontal-tracejada");
|
|
7
|
-
const linha_vertical_1 = require("./linha-vertical");
|
|
8
|
-
const normal_1 = require("./normal");
|
|
9
|
-
const titulo_1 = require("./titulo");
|
|
10
|
-
function getRecibo({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, dest, emit, total, ide }) {
|
|
11
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
12
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: -110.5, y: y + 28.3, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
13
|
-
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 51.1, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
14
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y, y2: y + 51.1, x: 0, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
15
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 28.3, y2: y + 51.1, x: 99.2, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
16
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 0, y2: y + 51.1, x: 476, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
17
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 0, y2: y + 51.1, x: 0, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
18
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y + 0, y2: y + 51.1, x: larguraDoFormulario, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
19
|
-
(0, normal_1.normal)({
|
|
20
|
-
doc,
|
|
21
|
-
value: [
|
|
22
|
-
'Recebemos de',
|
|
23
|
-
emit.xNome,
|
|
24
|
-
'os produtos e/ou serviços constantes da nota',
|
|
25
|
-
'fiscal eletrônica indicada abaixo.',
|
|
26
|
-
'Emissão:',
|
|
27
|
-
(0, date_fns_1.format)((0, date_fns_1.parseISO)(ide.dhEmi), 'dd/MM/yyyy HH:mm:ss'),
|
|
28
|
-
'- Valor Total:',
|
|
29
|
-
Intl.NumberFormat('pt-BR', { style: 'currency', currency: 'BRL', minimumFractionDigits: 2 }).format(Number(total.ICMSTot.vNF)),
|
|
30
|
-
'- Destinatário:',
|
|
31
|
-
dest.xNome,
|
|
32
|
-
'- Endereço:',
|
|
33
|
-
dest.enderDest?.xLgr
|
|
34
|
-
].join(' ').toUpperCase(),
|
|
35
|
-
x: 1.5,
|
|
36
|
-
y: y + 3,
|
|
37
|
-
largura: 472.5,
|
|
38
|
-
alinhamento: 'justify',
|
|
39
|
-
tamanho: 6.9,
|
|
40
|
-
ajusteX,
|
|
41
|
-
ajusteY,
|
|
42
|
-
margemEsquerda,
|
|
43
|
-
margemTopo
|
|
44
|
-
});
|
|
45
|
-
(0, titulo_1.titulo)({ value: 'DATA DE RECEBIMENTO', x: 1.5, y: y + 30, largura: 97, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
46
|
-
(0, titulo_1.titulo)({ value: 'IDENTIFICAÇÃO E ASSINATURA DO RECEBEDOR', x: 100.5, y: y + 30, largura: 374, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
47
|
-
(0, normal_1.normal)({ doc, value: 'NF-e', x: 476.6, y: y + 1.8, largura: 110, alinhamento: 'center', tamanho: 14, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
48
|
-
(0, normal_1.normal)({ doc, value: 'Nº. ' + ide.nNF.padStart(9, '0').replace(/(\d{3})(\d{3})(\d{3})/, '$1.$2.$3'), x: 476.6, y: y + 22, largura: 110, alinhamento: 'center', tamanho: 10, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
49
|
-
(0, normal_1.normal)({ doc, value: 'Série ' + ide.serie, x: 476.6, y: y + 31.5, largura: 110, alinhamento: 'center', tamanho: 10, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
50
|
-
(0, linha_horizontal_tracejada_1.linhaHorizontalTracejada)({ x1: 0, x2: 0, y: y + 55.32, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
51
|
-
return doc.y;
|
|
52
|
-
}
|
|
53
|
-
exports.getRecibo = getRecibo;
|
|
54
|
-
//# sourceMappingURL=get-recibo.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getRecibo=void 0;const date_fns_1=require("date-fns"),utils_1=require("../../../../domain/use-cases/utils"),linha_horizontal_1=require("./linha-horizontal"),linha_horizontal_tracejada_1=require("./linha-horizontal-tracejada"),linha_vertical_1=require("./linha-vertical"),normal_1=require("./normal"),titulo_1=require("./titulo");function getRecibo({y:a,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g,larguraDoFormulario:h,dest:i,emit:j,total:k,ide:l}){return(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:a,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:-110.5,y:a+28.3,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_1.linhaHorizontal)({x1:0,x2:0,y:a+51.1,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a,y2:a+51.1,x:0,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a+28.3,y2:a+51.1,x:99.2,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a,y2:a+51.1,x:476,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a,y2:a+51.1,x:0,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_vertical_1.linhaVertical)({y1:a,y2:a+51.1,x:h,doc:b,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,normal_1.normal)({doc:b,value:["Recebemos de",j.xNome,"os produtos e/ou servi\xE7os constantes da nota","fiscal eletr\xF4nica indicada abaixo.","Emiss\xE3o:",(0,date_fns_1.format)((0,date_fns_1.parseISO)(l.dhEmi),"dd/MM/yyyy HH:mm:ss"),"- Valor Total:",(0,utils_1.formatMoney)(k.ICMSTot.vNF,2),"- Destinat\xE1rio:",i.xNome,"- Endere\xE7o:",i.enderDest?.xLgr].join(" ").toUpperCase(),x:1.5,y:a+3,largura:472.5,alinhamento:"justify",tamanho:6.9,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"DATA DE RECEBIMENTO",x:1.5,y:a+30,largura:97,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,titulo_1.titulo)({value:"IDENTIFICA\xC7\xC3O E ASSINATURA DO RECEBEDOR",x:100.5,y:a+30,largura:374,ajusteX:c,ajusteY:d,doc:b,margemEsquerda:f,margemTopo:g}),(0,normal_1.normal)({doc:b,value:"NF-e",x:476.6,y:a+1.8,largura:110,alinhamento:"center",tamanho:14,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,normal_1.normal)({doc:b,value:"N\xBA. "+l.nNF.padStart(9,"0").replace(/(\d{3})(\d{3})(\d{3})/,"$1.$2.$3"),x:476.6,y:a+22,largura:110,alinhamento:"center",tamanho:10,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,normal_1.normal)({doc:b,value:"S\xE9rie "+l.serie,x:476.6,y:a+31.5,largura:110,alinhamento:"center",tamanho:10,ajusteX:c,ajusteY:d,margemEsquerda:f,margemTopo:g}),(0,linha_horizontal_tracejada_1.linhaHorizontalTracejada)({x1:0,x2:0,y:a+55.32,doc:b,ajusteX:c,ajusteY:d,margemDireita:e,margemEsquerda:f,margemTopo:g}),b.y}exports.getRecibo=getRecibo;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GeneratePdf } from '../../../../types';
|
|
2
2
|
export declare function getTransporte({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, transp }: GeneratePdf.InputTransporte): number;
|