@alexssmusica/node-pdf-nfe 1.0.60 → 1.0.61
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.
|
@@ -9,12 +9,6 @@ const campo_1 = require("./campo");
|
|
|
9
9
|
const default_1 = require("./default");
|
|
10
10
|
const secao_1 = require("./secao");
|
|
11
11
|
function getDestinatarioRemetente({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, dest, ide }) {
|
|
12
|
-
let destEndereco = ''
|
|
13
|
-
if(dest.enderDest?.xLgr && dest.enderDest?.nro){
|
|
14
|
-
destEndereco = `${dest.enderDest.xLgr}, ${dest.enderDest.nro}`
|
|
15
|
-
}else if(dest.enderDest?.xLgr){
|
|
16
|
-
destEndereco = dest.enderDest.xLgr
|
|
17
|
-
}
|
|
18
12
|
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 9, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
19
13
|
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 29, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
20
14
|
(0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 49, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
@@ -35,7 +29,7 @@ function getDestinatarioRemetente({ y, doc, ajusteX, ajusteY, margemDireita, mar
|
|
|
35
29
|
(0, titulo_1.titulo)({ value: 'DATA DA EMISSÃO', x: 495, y: y + 11, largura: 90, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
36
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 });
|
|
37
31
|
(0, titulo_1.titulo)({ value: 'ENDEREÇO', x: 1.5, y: y + 30, largura: 272, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
38
|
-
(0, campo_1.campo)({ value:
|
|
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 });
|
|
39
33
|
(0, titulo_1.titulo)({ value: 'BAIRRO / DISTRITO', x: 276, y: y + 30, largura: 192, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
40
34
|
(0, campo_1.campo)({ value: dest.enderDest?.xBairro ?? '', x: 276, y: y + 38, largura: 119, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
41
35
|
(0, titulo_1.titulo)({ value: 'CEP', x: 398, y: y + 30, largura: 93, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|