cardus 0.0.45 → 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/dist/insertTempShipment/index.js +2 -1
- package/index.ts +6 -4
- package/insertTempShipment/index.ts +2 -1
- 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) {
|
|
@@ -103,7 +103,8 @@ const cookTempShipment = (_a) => __awaiter(void 0, [_a], void 0, function* ({ or
|
|
|
103
103
|
num_bultos: warehouseId ? 0 : order.lineas.length,
|
|
104
104
|
tipo_envio: shipmentType,
|
|
105
105
|
codigo_envio_externo: order.codigoEnvioExterno,
|
|
106
|
-
id_almacen: warehouseId
|
|
106
|
+
id_almacen: warehouseId,
|
|
107
|
+
agencia_envio_integracion: order.agenciaEnvioIntegracion
|
|
107
108
|
});
|
|
108
109
|
const setters = [
|
|
109
110
|
setDatosVendedor,
|
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);
|
|
@@ -150,7 +150,8 @@ export const cookTempShipment = async ({
|
|
|
150
150
|
num_bultos: warehouseId ? 0 : order.lineas.length,
|
|
151
151
|
tipo_envio: shipmentType,
|
|
152
152
|
codigo_envio_externo: order.codigoEnvioExterno,
|
|
153
|
-
id_almacen: warehouseId
|
|
153
|
+
id_almacen: warehouseId,
|
|
154
|
+
agencia_envio_integracion: order.agenciaEnvioIntegracion
|
|
154
155
|
});
|
|
155
156
|
|
|
156
157
|
const setters = [
|
package/package.json
CHANGED
package/types/index.ts
CHANGED