@alexssmusica/node-pdf-nfe 1.0.54 → 1.0.56
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.
|
@@ -43,7 +43,7 @@ function getDestinatarioRemetente({ y, doc, ajusteX, ajusteY, margemDireita, mar
|
|
|
43
43
|
(0, titulo_1.titulo)({ value: 'FONE / FAX', x: 299, y: y + 51, largura: 96, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
44
44
|
(0, campo_1.campo)({ value: dest.enderDest?.fone ?? '', x: 299, y: y + 58, largura: 96, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
45
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
|
|
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
47
|
(0, titulo_1.titulo)({ value: 'HORA DA SAÍDA', x: 495, y: y + 51, largura: 90, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
48
48
|
return doc.y;
|
|
49
49
|
}
|
|
@@ -25,7 +25,11 @@ function getTransporte({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda
|
|
|
25
25
|
(0, linha_vertical_1.linhaVertical)({ y1: y + 8, y2: y + 68, x: larguraDoFormulario, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
26
26
|
(0, secao_1.secao)({ doc, value: 'TRANSPORTADOR / VOLUMES TRANSPORTADOS', x: 1.5, y, largura: 0, ajusteX, ajusteY, margemEsquerda, margemTopo });
|
|
27
27
|
(0, titulo_1.titulo)({ value: 'NOME / RAZÃO SOCIAL', x: 1.5, y: y + 9.5, largura: 166.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
28
|
-
|
|
28
|
+
let tamanhoFonte = 6
|
|
29
|
+
if(transp.transporta?.xNome && transp.transporta?.xNome.length > 40){
|
|
30
|
+
tamanhoFonte = 5
|
|
31
|
+
}
|
|
32
|
+
(0, campo_1.campo)({ value: transp.transporta?.xNome ?? '', x: 1.5, y: y + 17.5, largura: 166.5, alinhamento: 'left', tamanho: tamanhoFonte, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
|
|
29
33
|
function ModFrete(value) {
|
|
30
34
|
if (value === '0') {
|
|
31
35
|
return 'Por conta do Remetente';
|