cardus 0.0.46 → 0.0.47
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/dist/index.js +5 -4
- package/index.ts +6 -4
- package/package.json +1 -1
- package/types/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -231,6 +231,11 @@ class IntegrationManager {
|
|
|
231
231
|
const { bulto, cantidad, idEnvioTemporal } = each;
|
|
232
232
|
try {
|
|
233
233
|
const arrayFake = Array.from({ length: Number(cantidad) });
|
|
234
|
+
this.dataToInsert.details.push({
|
|
235
|
+
id_envio: idEnvioTemporal,
|
|
236
|
+
bulto,
|
|
237
|
+
cantidad
|
|
238
|
+
});
|
|
234
239
|
arrayFake.forEach(() => {
|
|
235
240
|
if (!estaAgrupado) {
|
|
236
241
|
this.dataToInsert.lines.push({
|
|
@@ -238,10 +243,6 @@ class IntegrationManager {
|
|
|
238
243
|
bulto
|
|
239
244
|
});
|
|
240
245
|
}
|
|
241
|
-
this.dataToInsert.details.push({
|
|
242
|
-
id_envio: idEnvioTemporal,
|
|
243
|
-
bulto
|
|
244
|
-
});
|
|
245
246
|
});
|
|
246
247
|
}
|
|
247
248
|
catch (e) {
|
package/index.ts
CHANGED
|
@@ -407,6 +407,12 @@ export class IntegrationManager {
|
|
|
407
407
|
try {
|
|
408
408
|
const arrayFake = Array.from({ length: Number(cantidad) });
|
|
409
409
|
|
|
410
|
+
this.dataToInsert.details.push({
|
|
411
|
+
id_envio: idEnvioTemporal,
|
|
412
|
+
bulto,
|
|
413
|
+
cantidad
|
|
414
|
+
});
|
|
415
|
+
|
|
410
416
|
arrayFake.forEach(() => {
|
|
411
417
|
if (!estaAgrupado) {
|
|
412
418
|
this.dataToInsert.lines.push({
|
|
@@ -414,10 +420,6 @@ export class IntegrationManager {
|
|
|
414
420
|
bulto
|
|
415
421
|
});
|
|
416
422
|
}
|
|
417
|
-
this.dataToInsert.details.push({
|
|
418
|
-
id_envio: idEnvioTemporal,
|
|
419
|
-
bulto
|
|
420
|
-
});
|
|
421
423
|
});
|
|
422
424
|
} catch (e) {
|
|
423
425
|
console.log(e);
|
package/package.json
CHANGED
package/types/index.ts
CHANGED