herramientaenvioestupendo 1.1.39 → 1.1.41

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # EstupendoCLI — v1.1.39
1
+ # EstupendoCLI — v1.1.41
2
2
 
3
3
  Esta herramienta esta destinada para uso de los Ing. implementadores y de soporte de la empresa Estupendo-Colombia.
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "herramientaenvioestupendo",
3
- "version": "1.1.39",
3
+ "version": "1.1.41",
4
4
  "private": false,
5
5
  "description": "Proyecto para envio documentos masivos",
6
6
  "keywords": [],
@@ -384,7 +384,7 @@ const toApiDocument = (document, isProd) => {
384
384
  documentHead: {
385
385
  UUID: asString(getAny(cabecera, ["UUID", "CUFE", "CUDE", "FolioKeyControl"], "CUFE-SHA384")),
386
386
  documentType: documentType,
387
- type: asString(firstValue(getAny(cabecera, ["SubTipoOperacion"]), getAny((document.documentosRelacionados || [])[0] || {}, ["CodigoNota"]))),
387
+ type: asString(firstValue(getAny(cabecera, ["SubTipoOperacion"]), getAny((document.documentosRelacionados || [])[0] || {}, ["CodigoNota"])), "1"),
388
388
  documentNumber: applyTestPrefix(asString(getAny(cabecera, ["NumeroDocumento"], document.numeroDocumento)), isProd, documentType),
389
389
  dateCreated: asString(getAny(cabecera, ["FechaEmision"])),
390
390
  timeCreated: asString(getAny(cabecera, ["HoraEmision"])),
package/src/index.js CHANGED
@@ -4,7 +4,7 @@ import { sendTxt, sendXml, sendAttached, sendJson, requestDocumentRace, sendTxtC
4
4
  import { sendDb2Sp } from "./db2_connector.js"
5
5
 
6
6
 
7
- program.name("estupendo").version("1.1.39")
7
+ program.name("estupendo").version("1.1.41")
8
8
 
9
9
  program.command("send_xml")
10
10
  .requiredOption("-d, --directory <char>", "Directorio donde se encuentran los documentos XML")