@plasoft/boletos 1.0.34 → 1.0.35

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/build/index.js CHANGED
@@ -2241,7 +2241,8 @@ function gerarRemessa5({ dados }) {
2241
2241
  arquivo.add("1");
2242
2242
  arquivo.add("R");
2243
2243
  arquivo.add("01");
2244
- arquivo.add("00");
2244
+ arquivo.add(" ");
2245
+ arquivo.add("0");
2245
2246
  arquivo.add("020");
2246
2247
  arquivo.add(" ");
2247
2248
  arquivo.add("2");
@@ -2287,15 +2288,15 @@ function gerarRemessa5({ dados }) {
2287
2288
  } else if (convenio.length === 7) {
2288
2289
  switch (boleto.tipoDocumento) {
2289
2290
  case "NFE": {
2290
- nosso_numero = `${convenio}${boleto.id_boleto.toString().padStart(10, "0")}2`;
2291
+ nosso_numero = `${convenio}${(boleto.id_boleto.toString() + "2").padStart(10, "0")}`;
2291
2292
  break;
2292
2293
  }
2293
2294
  case "FAT": {
2294
- nosso_numero = `${convenio}${boleto.id_boleto.toString().padStart(10, "0")}4`;
2295
+ nosso_numero = `${convenio}${(boleto.id_boleto.toString() + "4").padStart(10, "0")}`;
2295
2296
  break;
2296
2297
  }
2297
2298
  case "FIN": {
2298
- nosso_numero = `${convenio}${boleto.id_boleto.toString().padStart(10, "0")}5`;
2299
+ nosso_numero = `${convenio}${(boleto.id_boleto.toString() + "5").padStart(10, "0")}`;
2299
2300
  break;
2300
2301
  }
2301
2302
  }
package/build/index.mjs CHANGED
@@ -2204,7 +2204,8 @@ function gerarRemessa5({ dados }) {
2204
2204
  arquivo.add("1");
2205
2205
  arquivo.add("R");
2206
2206
  arquivo.add("01");
2207
- arquivo.add("00");
2207
+ arquivo.add(" ");
2208
+ arquivo.add("0");
2208
2209
  arquivo.add("020");
2209
2210
  arquivo.add(" ");
2210
2211
  arquivo.add("2");
@@ -2250,15 +2251,15 @@ function gerarRemessa5({ dados }) {
2250
2251
  } else if (convenio.length === 7) {
2251
2252
  switch (boleto.tipoDocumento) {
2252
2253
  case "NFE": {
2253
- nosso_numero = `${convenio}${boleto.id_boleto.toString().padStart(10, "0")}2`;
2254
+ nosso_numero = `${convenio}${(boleto.id_boleto.toString() + "2").padStart(10, "0")}`;
2254
2255
  break;
2255
2256
  }
2256
2257
  case "FAT": {
2257
- nosso_numero = `${convenio}${boleto.id_boleto.toString().padStart(10, "0")}4`;
2258
+ nosso_numero = `${convenio}${(boleto.id_boleto.toString() + "4").padStart(10, "0")}`;
2258
2259
  break;
2259
2260
  }
2260
2261
  case "FIN": {
2261
- nosso_numero = `${convenio}${boleto.id_boleto.toString().padStart(10, "0")}5`;
2262
+ nosso_numero = `${convenio}${(boleto.id_boleto.toString() + "5").padStart(10, "0")}`;
2262
2263
  break;
2263
2264
  }
2264
2265
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasoft/boletos",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "main": "build",
5
5
  "license": "ISC",
6
6
  "scripts": {