@alexssmusica/node-pdf-nfe 1.0.53 → 1.0.55

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.
@@ -33,8 +33,8 @@ async function gerarItens({ nf, ajusteX, ajusteY, doc, margemEsquerda, margemTop
33
33
  for (let i = 0; i < keys.length; i++) {
34
34
  if (keys[i].includes('ICMS')) {
35
35
  const newKeys = Object.keys(item.imposto[keys[i]]);
36
- (0, normal_1.normal)({ doc, value: item.imposto[keys[i]][newKeys[0]].CST ? `${item.imposto[keys[i]][newKeys[0]].orig}${item.imposto[keys[i]][newKeys[0]].CST}` : '', x: 270, y: yDoItemAtual, largura: 21, alinhamento: 'center', tamanho: default_1.DEFAULT_NFE.tamanhoDaFonteDosItens, ajusteX, ajusteY, margemEsquerda, margemTopo });
37
- (0, normal_1.normal)({ doc, value: item.imposto[keys[i]][newKeys[0]].CSOSN ? `${item.imposto[keys[i]][newKeys[0]].orig}${item.imposto[keys[i]][newKeys[0]].CSOSN}` : '', x: 270, y: yDoItemAtual, largura: 21, alinhamento: 'center', tamanho: default_1.DEFAULT_NFE.tamanhoDaFonteDosItens, ajusteX, ajusteY, margemEsquerda, margemTopo });
36
+ (0, normal_1.normal)({ doc, value: item.imposto[keys[i]][newKeys[0]].CST ? `${item.imposto[keys[i]][newKeys[0]].orig}${item.imposto[keys[i]][newKeys[0]].CST}` : '', x: 270, y, largura: 21, alinhamento: 'center', tamanho: default_1.DEFAULT_NFE.tamanhoDaFonteDosItens, ajusteX, ajusteY, margemEsquerda, margemTopo });
37
+ (0, normal_1.normal)({ doc, value: item.imposto[keys[i]][newKeys[0]].CSOSN ? `${item.imposto[keys[i]][newKeys[0]].orig}${item.imposto[keys[i]][newKeys[0]].CSOSN}` : '', x: 270, y, largura: 21, alinhamento: 'center', tamanho: default_1.DEFAULT_NFE.tamanhoDaFonteDosItens, ajusteX, ajusteY, margemEsquerda, margemTopo });
38
38
  maiorY = Math.max(maiorY, pdf.y);
39
39
  (0, normal_1.normal)({ doc, value: item.imposto[keys[i]][newKeys[0]].vBc ?? Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(Number(0)), x: 443, y, largura: 32.5, alinhamento: 'center', tamanho: default_1.DEFAULT_NFE.tamanhoDaFonteDosItens, ajusteX, ajusteY, margemEsquerda, margemTopo });
40
40
  maiorY = Math.max(maiorY, pdf.y);
@@ -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.indIEDest.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 });
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexssmusica/node-pdf-nfe",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "description": "Modulo que auxilia na geração de NFe e NFCe",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",