cardus 0.0.91 → 0.0.93
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 +2 -2
- package/index.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -153,7 +153,7 @@ class IntegrationManager {
|
|
|
153
153
|
id_usuario: idUsuario,
|
|
154
154
|
id_integracion: this.integrationType
|
|
155
155
|
});
|
|
156
|
-
const shouldFindWarehouseSkus = !!userIntegrationConfiguration.sku_almacen;
|
|
156
|
+
const shouldFindWarehouseSkus = !!(userIntegrationConfiguration === null || userIntegrationConfiguration === void 0 ? void 0 : userIntegrationConfiguration.sku_almacen);
|
|
157
157
|
yield this.insertQuantityRelatedLines({
|
|
158
158
|
orders: successfullShipments,
|
|
159
159
|
idUsuario,
|
|
@@ -331,7 +331,7 @@ class IntegrationManager {
|
|
|
331
331
|
orders.forEach(({ idEnvioTemporal, lineas }) => {
|
|
332
332
|
if (!idEnvioTemporal)
|
|
333
333
|
return;
|
|
334
|
-
if (grouped) {
|
|
334
|
+
if (grouped && lineas.length > 1) {
|
|
335
335
|
this.insertTempShipmentGroupLine({ idEnvioTemporal, group });
|
|
336
336
|
}
|
|
337
337
|
lineas.forEach((line) => {
|
package/index.ts
CHANGED
|
@@ -205,7 +205,7 @@ export class IntegrationManager {
|
|
|
205
205
|
id_usuario: idUsuario,
|
|
206
206
|
id_integracion: this.integrationType
|
|
207
207
|
});
|
|
208
|
-
const shouldFindWarehouseSkus = !!userIntegrationConfiguration
|
|
208
|
+
const shouldFindWarehouseSkus = !!userIntegrationConfiguration?.sku_almacen;
|
|
209
209
|
|
|
210
210
|
await this.insertQuantityRelatedLines({
|
|
211
211
|
orders: successfullShipments,
|
|
@@ -557,7 +557,7 @@ export class IntegrationManager {
|
|
|
557
557
|
orders.forEach(({ idEnvioTemporal, lineas }) => {
|
|
558
558
|
if (!idEnvioTemporal) return;
|
|
559
559
|
|
|
560
|
-
if (grouped) {
|
|
560
|
+
if (grouped && lineas.length > 1) {
|
|
561
561
|
this.insertTempShipmentGroupLine({ idEnvioTemporal, group });
|
|
562
562
|
}
|
|
563
563
|
|