@alexssmusica/node-pdf-nfe 1.2.4 → 1.2.8
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/lib/application/helpers/generate-pdf/nfe/campo.js +14 -15
- package/lib/application/helpers/generate-pdf/nfe/cria-layout.js +147 -148
- package/lib/application/helpers/generate-pdf/nfe/default.js +26 -26
- package/lib/application/helpers/generate-pdf/nfe/gerar-itens.js +276 -277
- package/lib/application/helpers/generate-pdf/nfe/get-dados-adicionais.js +52 -53
- package/lib/application/helpers/generate-pdf/nfe/get-dados-emitente.js +333 -319
- package/lib/application/helpers/generate-pdf/nfe/get-destinatario-remetente.js +153 -154
- package/lib/application/helpers/generate-pdf/nfe/get-fatura-duplicata.js +63 -64
- package/lib/application/helpers/generate-pdf/nfe/get-homologacao.js +36 -37
- package/lib/application/helpers/generate-pdf/nfe/get-imposto.js +218 -219
- package/lib/application/helpers/generate-pdf/nfe/get-iss.js +73 -74
- package/lib/application/helpers/generate-pdf/nfe/get-menu-itens.js +198 -199
- package/lib/application/helpers/generate-pdf/nfe/get-nota-cancelada.js +16 -17
- package/lib/application/helpers/generate-pdf/nfe/get-recibo.js +100 -101
- package/lib/application/helpers/generate-pdf/nfe/get-transporte.js +178 -179
- package/lib/application/helpers/generate-pdf/nfe/italico.js +15 -16
- package/lib/application/helpers/generate-pdf/nfe/linha-horizontal-tracejada.js +7 -8
- package/lib/application/helpers/generate-pdf/nfe/linha-horizontal.js +15 -16
- package/lib/application/helpers/generate-pdf/nfe/linha-vertical.js +9 -10
- package/lib/application/helpers/generate-pdf/nfe/load-fontes.js +30 -31
- package/lib/application/helpers/generate-pdf/nfe/negrito.js +15 -16
- package/lib/application/helpers/generate-pdf/nfe/normal.js +15 -16
- package/lib/application/helpers/generate-pdf/nfe/options-doc.js +14 -14
- package/lib/application/helpers/generate-pdf/nfe/secao.js +16 -17
- package/lib/application/helpers/generate-pdf/nfe/titulo.js +16 -17
- package/lib/application/helpers/xml/deserialize.js +24 -25
- package/lib/application/helpers/xml/index.js +17 -17
- package/lib/domain/use-cases/pdf/index.js +25 -26
- package/lib/domain/use-cases/pdf/pdf-NFCe.js +688 -688
- package/lib/domain/use-cases/pdf/pdf-NFe.js +54 -54
- package/lib/domain/use-cases/utils/current-date.js +8 -12
- package/lib/domain/use-cases/utils/format-cnpj.js +8 -9
- package/lib/domain/use-cases/utils/format-cpf.js +8 -9
- package/lib/domain/use-cases/utils/format-date-time.js +10 -11
- package/lib/domain/use-cases/utils/format-date.js +9 -10
- package/lib/domain/use-cases/utils/format-key.js +6 -7
- package/lib/domain/use-cases/utils/format-number.js +6 -7
- package/lib/domain/use-cases/utils/format-phone.js +20 -21
- package/lib/domain/use-cases/utils/format-plate.js +16 -17
- package/lib/domain/use-cases/utils/format-postal-code.js +12 -9
- package/lib/domain/use-cases/utils/format-protocol.js +8 -9
- package/lib/domain/use-cases/utils/format-state-registration.js +49 -50
- package/lib/domain/use-cases/utils/format-time.js +8 -9
- package/lib/domain/use-cases/utils/index.js +30 -30
- package/lib/domain/use-cases/utils/return-font-size-carrier.js +23 -24
- package/lib/index.js +5 -5
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/generate-pdf.js +2 -2
- package/lib/types/index.js +19 -19
- package/lib/types/nfe-proc.js +2 -2
- package/lib/types/schema.js +2 -2
- package/package.json +76 -72
- package/lib/application/helpers/generate-pdf/nfe/campo.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/cria-layout.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/default.d.ts +0 -23
- package/lib/application/helpers/generate-pdf/nfe/gerar-itens.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/get-dados-adicionais.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/get-dados-emitente.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/get-destinatario-remetente.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/get-fatura-duplicata.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/get-homologacao.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/get-imposto.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/get-iss.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/get-menu-itens.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/get-nota-cancelada.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/get-recibo.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/get-transporte.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/italico.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/linha-horizontal-tracejada.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/linha-horizontal.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/linha-vertical.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/load-fontes.d.ts +0 -3
- package/lib/application/helpers/generate-pdf/nfe/negrito.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/normal.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/options-doc.d.ts +0 -10
- package/lib/application/helpers/generate-pdf/nfe/secao.d.ts +0 -2
- package/lib/application/helpers/generate-pdf/nfe/titulo.d.ts +0 -2
- package/lib/application/helpers/xml/deserialize.d.ts +0 -2
- package/lib/application/helpers/xml/index.d.ts +0 -1
- package/lib/domain/use-cases/pdf/index.d.ts +0 -3
- package/lib/domain/use-cases/pdf/pdf-NFCe.d.ts +0 -3
- package/lib/domain/use-cases/pdf/pdf-NFe.d.ts +0 -3
- package/lib/domain/use-cases/utils/current-date.d.ts +0 -1
- package/lib/domain/use-cases/utils/format-cnpj.d.ts +0 -1
- package/lib/domain/use-cases/utils/format-cpf.d.ts +0 -1
- package/lib/domain/use-cases/utils/format-date-time.d.ts +0 -1
- package/lib/domain/use-cases/utils/format-date.d.ts +0 -1
- package/lib/domain/use-cases/utils/format-key.d.ts +0 -1
- package/lib/domain/use-cases/utils/format-number.d.ts +0 -1
- package/lib/domain/use-cases/utils/format-phone.d.ts +0 -1
- package/lib/domain/use-cases/utils/format-plate.d.ts +0 -1
- package/lib/domain/use-cases/utils/format-postal-code.d.ts +0 -1
- package/lib/domain/use-cases/utils/format-protocol.d.ts +0 -1
- package/lib/domain/use-cases/utils/format-state-registration.d.ts +0 -1
- package/lib/domain/use-cases/utils/format-time.d.ts +0 -1
- package/lib/domain/use-cases/utils/index.d.ts +0 -14
- package/lib/domain/use-cases/utils/return-font-size-carrier.d.ts +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/types/generate-pdf.d.ts +0 -259
- package/lib/types/index.d.ts +0 -3
- package/lib/types/nfe-proc.d.ts +0 -42
- package/lib/types/schema.d.ts +0 -875
|
@@ -1,199 +1,198 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getMenuItens =
|
|
4
|
-
const default_1 = require("./default");
|
|
5
|
-
const linha_horizontal_1 = require("./linha-horizontal");
|
|
6
|
-
const linha_vertical_1 = require("./linha-vertical");
|
|
7
|
-
const secao_1 = require("./secao");
|
|
8
|
-
const titulo_1 = require("./titulo");
|
|
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)({
|
|
30
|
-
value: 'CÓDIGO',
|
|
31
|
-
x: 1.5,
|
|
32
|
-
y: y + 21,
|
|
33
|
-
largura: 50.5,
|
|
34
|
-
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
35
|
-
ajusteX,
|
|
36
|
-
ajusteY,
|
|
37
|
-
doc,
|
|
38
|
-
margemEsquerda,
|
|
39
|
-
margemTopo
|
|
40
|
-
});
|
|
41
|
-
(0, titulo_1.titulo)({
|
|
42
|
-
value: 'DESCRIÇÃO DO PRODUTO / SERVIÇO',
|
|
43
|
-
x: 55,
|
|
44
|
-
y: y + 21,
|
|
45
|
-
largura: 179,
|
|
46
|
-
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
47
|
-
ajusteX,
|
|
48
|
-
ajusteY,
|
|
49
|
-
doc,
|
|
50
|
-
margemEsquerda,
|
|
51
|
-
margemTopo
|
|
52
|
-
});
|
|
53
|
-
(0, titulo_1.titulo)({
|
|
54
|
-
value: 'NCM/SH',
|
|
55
|
-
x: 236.5,
|
|
56
|
-
y: y + 21,
|
|
57
|
-
largura: 31.5,
|
|
58
|
-
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
59
|
-
ajusteX,
|
|
60
|
-
ajusteY,
|
|
61
|
-
doc,
|
|
62
|
-
margemEsquerda,
|
|
63
|
-
margemTopo
|
|
64
|
-
});
|
|
65
|
-
(0, titulo_1.titulo)({
|
|
66
|
-
value: 'O/CST',
|
|
67
|
-
x: 270,
|
|
68
|
-
y: y + 21,
|
|
69
|
-
largura: 20,
|
|
70
|
-
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
71
|
-
ajusteX,
|
|
72
|
-
ajusteY,
|
|
73
|
-
doc,
|
|
74
|
-
margemEsquerda,
|
|
75
|
-
margemTopo
|
|
76
|
-
});
|
|
77
|
-
(0, titulo_1.titulo)({
|
|
78
|
-
value: 'CFOP',
|
|
79
|
-
x: 294.5,
|
|
80
|
-
y: y + 21,
|
|
81
|
-
largura: 19.5,
|
|
82
|
-
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
83
|
-
ajusteX,
|
|
84
|
-
ajusteY,
|
|
85
|
-
doc,
|
|
86
|
-
margemEsquerda,
|
|
87
|
-
margemTopo
|
|
88
|
-
});
|
|
89
|
-
(0, titulo_1.titulo)({
|
|
90
|
-
value: 'UN.',
|
|
91
|
-
x: 317,
|
|
92
|
-
y: y + 21,
|
|
93
|
-
largura: 14.5,
|
|
94
|
-
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
95
|
-
ajusteX,
|
|
96
|
-
ajusteY,
|
|
97
|
-
doc,
|
|
98
|
-
margemEsquerda,
|
|
99
|
-
margemTopo
|
|
100
|
-
});
|
|
101
|
-
(0, titulo_1.titulo)({
|
|
102
|
-
value: 'QUANT.',
|
|
103
|
-
x: 335,
|
|
104
|
-
y: y + 21,
|
|
105
|
-
largura: 37,
|
|
106
|
-
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
107
|
-
ajusteX,
|
|
108
|
-
ajusteY,
|
|
109
|
-
doc,
|
|
110
|
-
margemEsquerda,
|
|
111
|
-
margemTopo
|
|
112
|
-
});
|
|
113
|
-
(0, titulo_1.titulo)({
|
|
114
|
-
value: 'VALOR UNIT.',
|
|
115
|
-
x: 375,
|
|
116
|
-
y: y + 21 - 3,
|
|
117
|
-
largura: 31.5,
|
|
118
|
-
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
119
|
-
ajusteX,
|
|
120
|
-
ajusteY,
|
|
121
|
-
doc,
|
|
122
|
-
margemEsquerda,
|
|
123
|
-
margemTopo
|
|
124
|
-
});
|
|
125
|
-
(0, titulo_1.titulo)({
|
|
126
|
-
value: 'VALOR TOTAL.',
|
|
127
|
-
x: 409.5,
|
|
128
|
-
y: y + 21 - 3,
|
|
129
|
-
largura: 31.5,
|
|
130
|
-
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
131
|
-
ajusteX,
|
|
132
|
-
ajusteY,
|
|
133
|
-
doc,
|
|
134
|
-
margemEsquerda,
|
|
135
|
-
margemTopo
|
|
136
|
-
});
|
|
137
|
-
(0, titulo_1.titulo)({
|
|
138
|
-
value: 'B. CÁLC. ICMS',
|
|
139
|
-
x: 443,
|
|
140
|
-
y: y + 21 - 3,
|
|
141
|
-
largura: 31.5,
|
|
142
|
-
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
143
|
-
ajusteX,
|
|
144
|
-
ajusteY,
|
|
145
|
-
doc,
|
|
146
|
-
margemEsquerda,
|
|
147
|
-
margemTopo
|
|
148
|
-
});
|
|
149
|
-
(0, titulo_1.titulo)({
|
|
150
|
-
value: 'VALOR ICMS',
|
|
151
|
-
x: 476,
|
|
152
|
-
y: y + 21 - 3,
|
|
153
|
-
largura: 31.5,
|
|
154
|
-
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
155
|
-
ajusteX,
|
|
156
|
-
ajusteY,
|
|
157
|
-
doc,
|
|
158
|
-
margemEsquerda,
|
|
159
|
-
margemTopo
|
|
160
|
-
});
|
|
161
|
-
(0, titulo_1.titulo)({
|
|
162
|
-
value: 'VALOR IPI',
|
|
163
|
-
x: 507.5,
|
|
164
|
-
y: y + 21 - 3,
|
|
165
|
-
largura: 28,
|
|
166
|
-
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
167
|
-
ajusteX,
|
|
168
|
-
ajusteY,
|
|
169
|
-
doc,
|
|
170
|
-
margemEsquerda,
|
|
171
|
-
margemTopo
|
|
172
|
-
});
|
|
173
|
-
(0, titulo_1.titulo)({
|
|
174
|
-
value: 'ALÍQ. ICMS',
|
|
175
|
-
x: 532,
|
|
176
|
-
y: y + 21 - 3,
|
|
177
|
-
largura: 28,
|
|
178
|
-
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
179
|
-
ajusteX,
|
|
180
|
-
ajusteY,
|
|
181
|
-
doc,
|
|
182
|
-
margemEsquerda,
|
|
183
|
-
margemTopo
|
|
184
|
-
});
|
|
185
|
-
(0, titulo_1.titulo)({
|
|
186
|
-
value: 'ALÍQ. IPI',
|
|
187
|
-
x: 557.75,
|
|
188
|
-
y: y + 21,
|
|
189
|
-
largura: 28,
|
|
190
|
-
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
191
|
-
ajusteX,
|
|
192
|
-
ajusteY,
|
|
193
|
-
doc,
|
|
194
|
-
margemEsquerda,
|
|
195
|
-
margemTopo
|
|
196
|
-
});
|
|
197
|
-
return doc.y;
|
|
198
|
-
}
|
|
199
|
-
exports.getMenuItens = getMenuItens;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMenuItens = getMenuItens;
|
|
4
|
+
const default_1 = require("./default");
|
|
5
|
+
const linha_horizontal_1 = require("./linha-horizontal");
|
|
6
|
+
const linha_vertical_1 = require("./linha-vertical");
|
|
7
|
+
const secao_1 = require("./secao");
|
|
8
|
+
const titulo_1 = require("./titulo");
|
|
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)({
|
|
30
|
+
value: 'CÓDIGO',
|
|
31
|
+
x: 1.5,
|
|
32
|
+
y: y + 21,
|
|
33
|
+
largura: 50.5,
|
|
34
|
+
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
35
|
+
ajusteX,
|
|
36
|
+
ajusteY,
|
|
37
|
+
doc,
|
|
38
|
+
margemEsquerda,
|
|
39
|
+
margemTopo
|
|
40
|
+
});
|
|
41
|
+
(0, titulo_1.titulo)({
|
|
42
|
+
value: 'DESCRIÇÃO DO PRODUTO / SERVIÇO',
|
|
43
|
+
x: 55,
|
|
44
|
+
y: y + 21,
|
|
45
|
+
largura: 179,
|
|
46
|
+
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
47
|
+
ajusteX,
|
|
48
|
+
ajusteY,
|
|
49
|
+
doc,
|
|
50
|
+
margemEsquerda,
|
|
51
|
+
margemTopo
|
|
52
|
+
});
|
|
53
|
+
(0, titulo_1.titulo)({
|
|
54
|
+
value: 'NCM/SH',
|
|
55
|
+
x: 236.5,
|
|
56
|
+
y: y + 21,
|
|
57
|
+
largura: 31.5,
|
|
58
|
+
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
59
|
+
ajusteX,
|
|
60
|
+
ajusteY,
|
|
61
|
+
doc,
|
|
62
|
+
margemEsquerda,
|
|
63
|
+
margemTopo
|
|
64
|
+
});
|
|
65
|
+
(0, titulo_1.titulo)({
|
|
66
|
+
value: 'O/CST',
|
|
67
|
+
x: 270,
|
|
68
|
+
y: y + 21,
|
|
69
|
+
largura: 20,
|
|
70
|
+
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
71
|
+
ajusteX,
|
|
72
|
+
ajusteY,
|
|
73
|
+
doc,
|
|
74
|
+
margemEsquerda,
|
|
75
|
+
margemTopo
|
|
76
|
+
});
|
|
77
|
+
(0, titulo_1.titulo)({
|
|
78
|
+
value: 'CFOP',
|
|
79
|
+
x: 294.5,
|
|
80
|
+
y: y + 21,
|
|
81
|
+
largura: 19.5,
|
|
82
|
+
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
83
|
+
ajusteX,
|
|
84
|
+
ajusteY,
|
|
85
|
+
doc,
|
|
86
|
+
margemEsquerda,
|
|
87
|
+
margemTopo
|
|
88
|
+
});
|
|
89
|
+
(0, titulo_1.titulo)({
|
|
90
|
+
value: 'UN.',
|
|
91
|
+
x: 317,
|
|
92
|
+
y: y + 21,
|
|
93
|
+
largura: 14.5,
|
|
94
|
+
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
95
|
+
ajusteX,
|
|
96
|
+
ajusteY,
|
|
97
|
+
doc,
|
|
98
|
+
margemEsquerda,
|
|
99
|
+
margemTopo
|
|
100
|
+
});
|
|
101
|
+
(0, titulo_1.titulo)({
|
|
102
|
+
value: 'QUANT.',
|
|
103
|
+
x: 335,
|
|
104
|
+
y: y + 21,
|
|
105
|
+
largura: 37,
|
|
106
|
+
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
107
|
+
ajusteX,
|
|
108
|
+
ajusteY,
|
|
109
|
+
doc,
|
|
110
|
+
margemEsquerda,
|
|
111
|
+
margemTopo
|
|
112
|
+
});
|
|
113
|
+
(0, titulo_1.titulo)({
|
|
114
|
+
value: 'VALOR UNIT.',
|
|
115
|
+
x: 375,
|
|
116
|
+
y: y + 21 - 3,
|
|
117
|
+
largura: 31.5,
|
|
118
|
+
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
119
|
+
ajusteX,
|
|
120
|
+
ajusteY,
|
|
121
|
+
doc,
|
|
122
|
+
margemEsquerda,
|
|
123
|
+
margemTopo
|
|
124
|
+
});
|
|
125
|
+
(0, titulo_1.titulo)({
|
|
126
|
+
value: 'VALOR TOTAL.',
|
|
127
|
+
x: 409.5,
|
|
128
|
+
y: y + 21 - 3,
|
|
129
|
+
largura: 31.5,
|
|
130
|
+
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
131
|
+
ajusteX,
|
|
132
|
+
ajusteY,
|
|
133
|
+
doc,
|
|
134
|
+
margemEsquerda,
|
|
135
|
+
margemTopo
|
|
136
|
+
});
|
|
137
|
+
(0, titulo_1.titulo)({
|
|
138
|
+
value: 'B. CÁLC. ICMS',
|
|
139
|
+
x: 443,
|
|
140
|
+
y: y + 21 - 3,
|
|
141
|
+
largura: 31.5,
|
|
142
|
+
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
143
|
+
ajusteX,
|
|
144
|
+
ajusteY,
|
|
145
|
+
doc,
|
|
146
|
+
margemEsquerda,
|
|
147
|
+
margemTopo
|
|
148
|
+
});
|
|
149
|
+
(0, titulo_1.titulo)({
|
|
150
|
+
value: 'VALOR ICMS',
|
|
151
|
+
x: 476,
|
|
152
|
+
y: y + 21 - 3,
|
|
153
|
+
largura: 31.5,
|
|
154
|
+
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
155
|
+
ajusteX,
|
|
156
|
+
ajusteY,
|
|
157
|
+
doc,
|
|
158
|
+
margemEsquerda,
|
|
159
|
+
margemTopo
|
|
160
|
+
});
|
|
161
|
+
(0, titulo_1.titulo)({
|
|
162
|
+
value: 'VALOR IPI',
|
|
163
|
+
x: 507.5,
|
|
164
|
+
y: y + 21 - 3,
|
|
165
|
+
largura: 28,
|
|
166
|
+
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
167
|
+
ajusteX,
|
|
168
|
+
ajusteY,
|
|
169
|
+
doc,
|
|
170
|
+
margemEsquerda,
|
|
171
|
+
margemTopo
|
|
172
|
+
});
|
|
173
|
+
(0, titulo_1.titulo)({
|
|
174
|
+
value: 'ALÍQ. ICMS',
|
|
175
|
+
x: 532,
|
|
176
|
+
y: y + 21 - 3,
|
|
177
|
+
largura: 28,
|
|
178
|
+
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
179
|
+
ajusteX,
|
|
180
|
+
ajusteY,
|
|
181
|
+
doc,
|
|
182
|
+
margemEsquerda,
|
|
183
|
+
margemTopo
|
|
184
|
+
});
|
|
185
|
+
(0, titulo_1.titulo)({
|
|
186
|
+
value: 'ALÍQ. IPI',
|
|
187
|
+
x: 557.75,
|
|
188
|
+
y: y + 21,
|
|
189
|
+
largura: 28,
|
|
190
|
+
alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
|
|
191
|
+
ajusteX,
|
|
192
|
+
ajusteY,
|
|
193
|
+
doc,
|
|
194
|
+
margemEsquerda,
|
|
195
|
+
margemTopo
|
|
196
|
+
});
|
|
197
|
+
return doc.y;
|
|
198
|
+
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getNotaCancelada =
|
|
4
|
-
const default_1 = require("./default");
|
|
5
|
-
function getNotaCancelada({ doc, ajusteX, ajusteY, margemEsquerda, margemTopo, larguraDoFormulario }) {
|
|
6
|
-
doc
|
|
7
|
-
.font('normal')
|
|
8
|
-
.fillColor(default_1.DEFAULT_NFE.corDoTitulo)
|
|
9
|
-
.fontSize(60)
|
|
10
|
-
.fillOpacity(default_1.DEFAULT_NFE.opacidadeDaHomologacao)
|
|
11
|
-
.text('CANCELADA', margemEsquerda + ajusteX + 0, margemTopo + ajusteY + 200 + default_1.DEFAULT_NFE.ajusteYDaHomologacao, {
|
|
12
|
-
width: larguraDoFormulario,
|
|
13
|
-
align: 'center'
|
|
14
|
-
});
|
|
15
|
-
doc.fillOpacity(100);
|
|
16
|
-
}
|
|
17
|
-
exports.getNotaCancelada = getNotaCancelada;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNotaCancelada = getNotaCancelada;
|
|
4
|
+
const default_1 = require("./default");
|
|
5
|
+
function getNotaCancelada({ doc, ajusteX, ajusteY, margemEsquerda, margemTopo, larguraDoFormulario }) {
|
|
6
|
+
doc
|
|
7
|
+
.font('normal')
|
|
8
|
+
.fillColor(default_1.DEFAULT_NFE.corDoTitulo)
|
|
9
|
+
.fontSize(60)
|
|
10
|
+
.fillOpacity(default_1.DEFAULT_NFE.opacidadeDaHomologacao)
|
|
11
|
+
.text('CANCELADA', margemEsquerda + ajusteX + 0, margemTopo + ajusteY + 200 + default_1.DEFAULT_NFE.ajusteYDaHomologacao, {
|
|
12
|
+
width: larguraDoFormulario,
|
|
13
|
+
align: 'center'
|
|
14
|
+
});
|
|
15
|
+
doc.fillOpacity(100);
|
|
16
|
+
}
|
|
@@ -1,101 +1,100 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRecibo =
|
|
4
|
-
const utils_1 = require("../../../../domain/use-cases/utils");
|
|
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, y2: y + 51.1, x: 476, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
17
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y, y2: y + 51.1, x: 0, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
18
|
-
(0, linha_vertical_1.linhaVertical)({ y1: y, 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, utils_1.formatDateTime)(ide.dhEmi),
|
|
28
|
-
'- Valor Total:',
|
|
29
|
-
(0, utils_1.formatNumber)(total.ICMSTot.vNF, 2),
|
|
30
|
-
'- Destinatário:',
|
|
31
|
-
dest.xNome,
|
|
32
|
-
'- Endereço:',
|
|
33
|
-
dest.enderDest?.xLgr
|
|
34
|
-
]
|
|
35
|
-
.join(' ')
|
|
36
|
-
.toUpperCase(),
|
|
37
|
-
x: 1.5,
|
|
38
|
-
y: y + 3,
|
|
39
|
-
largura: 472.5,
|
|
40
|
-
alinhamento: 'justify',
|
|
41
|
-
tamanho: 6.9,
|
|
42
|
-
ajusteX,
|
|
43
|
-
ajusteY,
|
|
44
|
-
margemEsquerda,
|
|
45
|
-
margemTopo
|
|
46
|
-
});
|
|
47
|
-
(0, titulo_1.titulo)({ value: 'DATA DE RECEBIMENTO', x: 1.5, y: y + 30, largura: 97, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
48
|
-
(0, titulo_1.titulo)({
|
|
49
|
-
value: 'IDENTIFICAÇÃO E ASSINATURA DO RECEBEDOR',
|
|
50
|
-
x: 100.5,
|
|
51
|
-
y: y + 30,
|
|
52
|
-
largura: 374,
|
|
53
|
-
ajusteX,
|
|
54
|
-
ajusteY,
|
|
55
|
-
doc,
|
|
56
|
-
margemEsquerda,
|
|
57
|
-
margemTopo
|
|
58
|
-
});
|
|
59
|
-
(0, normal_1.normal)({
|
|
60
|
-
doc,
|
|
61
|
-
value: 'NF-e',
|
|
62
|
-
x: 476.6,
|
|
63
|
-
y: y + 1.8,
|
|
64
|
-
largura: 110,
|
|
65
|
-
alinhamento: 'center',
|
|
66
|
-
tamanho: 14,
|
|
67
|
-
ajusteX,
|
|
68
|
-
ajusteY,
|
|
69
|
-
margemEsquerda,
|
|
70
|
-
margemTopo
|
|
71
|
-
});
|
|
72
|
-
(0, normal_1.normal)({
|
|
73
|
-
doc,
|
|
74
|
-
value: 'Nº. ' + ide.nNF.padStart(9, '0').replace(/(\d{3})(\d{3})(\d{3})/, '$1.$2.$3'),
|
|
75
|
-
x: 476.6,
|
|
76
|
-
y: y + 22,
|
|
77
|
-
largura: 110,
|
|
78
|
-
alinhamento: 'center',
|
|
79
|
-
tamanho: 10,
|
|
80
|
-
ajusteX,
|
|
81
|
-
ajusteY,
|
|
82
|
-
margemEsquerda,
|
|
83
|
-
margemTopo
|
|
84
|
-
});
|
|
85
|
-
(0, normal_1.normal)({
|
|
86
|
-
doc,
|
|
87
|
-
value: 'Série ' + ide.serie,
|
|
88
|
-
x: 476.6,
|
|
89
|
-
y: y + 31.5,
|
|
90
|
-
largura: 110,
|
|
91
|
-
alinhamento: 'center',
|
|
92
|
-
tamanho: 10,
|
|
93
|
-
ajusteX,
|
|
94
|
-
ajusteY,
|
|
95
|
-
margemEsquerda,
|
|
96
|
-
margemTopo
|
|
97
|
-
});
|
|
98
|
-
(0, linha_horizontal_tracejada_1.linhaHorizontalTracejada)({ x1: 0, x2: 0, y: y + 55.32, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
99
|
-
return doc.y;
|
|
100
|
-
}
|
|
101
|
-
exports.getRecibo = getRecibo;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRecibo = getRecibo;
|
|
4
|
+
const utils_1 = require("../../../../domain/use-cases/utils");
|
|
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, y2: y + 51.1, x: 476, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
17
|
+
(0, linha_vertical_1.linhaVertical)({ y1: y, y2: y + 51.1, x: 0, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
18
|
+
(0, linha_vertical_1.linhaVertical)({ y1: y, 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, utils_1.formatDateTime)(ide.dhEmi),
|
|
28
|
+
'- Valor Total:',
|
|
29
|
+
(0, utils_1.formatNumber)(total.ICMSTot.vNF, 2),
|
|
30
|
+
'- Destinatário:',
|
|
31
|
+
dest.xNome,
|
|
32
|
+
'- Endereço:',
|
|
33
|
+
dest.enderDest?.xLgr
|
|
34
|
+
]
|
|
35
|
+
.join(' ')
|
|
36
|
+
.toUpperCase(),
|
|
37
|
+
x: 1.5,
|
|
38
|
+
y: y + 3,
|
|
39
|
+
largura: 472.5,
|
|
40
|
+
alinhamento: 'justify',
|
|
41
|
+
tamanho: 6.9,
|
|
42
|
+
ajusteX,
|
|
43
|
+
ajusteY,
|
|
44
|
+
margemEsquerda,
|
|
45
|
+
margemTopo
|
|
46
|
+
});
|
|
47
|
+
(0, titulo_1.titulo)({ value: 'DATA DE RECEBIMENTO', x: 1.5, y: y + 30, largura: 97, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
48
|
+
(0, titulo_1.titulo)({
|
|
49
|
+
value: 'IDENTIFICAÇÃO E ASSINATURA DO RECEBEDOR',
|
|
50
|
+
x: 100.5,
|
|
51
|
+
y: y + 30,
|
|
52
|
+
largura: 374,
|
|
53
|
+
ajusteX,
|
|
54
|
+
ajusteY,
|
|
55
|
+
doc,
|
|
56
|
+
margemEsquerda,
|
|
57
|
+
margemTopo
|
|
58
|
+
});
|
|
59
|
+
(0, normal_1.normal)({
|
|
60
|
+
doc,
|
|
61
|
+
value: 'NF-e',
|
|
62
|
+
x: 476.6,
|
|
63
|
+
y: y + 1.8,
|
|
64
|
+
largura: 110,
|
|
65
|
+
alinhamento: 'center',
|
|
66
|
+
tamanho: 14,
|
|
67
|
+
ajusteX,
|
|
68
|
+
ajusteY,
|
|
69
|
+
margemEsquerda,
|
|
70
|
+
margemTopo
|
|
71
|
+
});
|
|
72
|
+
(0, normal_1.normal)({
|
|
73
|
+
doc,
|
|
74
|
+
value: 'Nº. ' + ide.nNF.padStart(9, '0').replace(/(\d{3})(\d{3})(\d{3})/, '$1.$2.$3'),
|
|
75
|
+
x: 476.6,
|
|
76
|
+
y: y + 22,
|
|
77
|
+
largura: 110,
|
|
78
|
+
alinhamento: 'center',
|
|
79
|
+
tamanho: 10,
|
|
80
|
+
ajusteX,
|
|
81
|
+
ajusteY,
|
|
82
|
+
margemEsquerda,
|
|
83
|
+
margemTopo
|
|
84
|
+
});
|
|
85
|
+
(0, normal_1.normal)({
|
|
86
|
+
doc,
|
|
87
|
+
value: 'Série ' + ide.serie,
|
|
88
|
+
x: 476.6,
|
|
89
|
+
y: y + 31.5,
|
|
90
|
+
largura: 110,
|
|
91
|
+
alinhamento: 'center',
|
|
92
|
+
tamanho: 10,
|
|
93
|
+
ajusteX,
|
|
94
|
+
ajusteY,
|
|
95
|
+
margemEsquerda,
|
|
96
|
+
margemTopo
|
|
97
|
+
});
|
|
98
|
+
(0, linha_horizontal_tracejada_1.linhaHorizontalTracejada)({ x1: 0, x2: 0, y: y + 55.32, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
|
|
99
|
+
return doc.y;
|
|
100
|
+
}
|