cardus 0.0.34 → 0.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/dist/index.js +1 -3
- package/index.ts +1 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -118,6 +118,7 @@ class IntegrationManager {
|
|
|
118
118
|
type: this.type
|
|
119
119
|
});
|
|
120
120
|
const isPriorityByDefault = () => __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
// TODO sacar esto de aqui, no hay que hacerlo cada vez, con una vale
|
|
121
122
|
const usuariosGeneiPriority = yield this.services.customizationService.getUsersWithSection(8);
|
|
122
123
|
const esPotencialmentePriority = usuariosGeneiPriority.some((seccion) => seccion.id_usuario === user.id_usuario ||
|
|
123
124
|
seccion.tipo_cliente === user.tipo_cliente ||
|
|
@@ -135,9 +136,6 @@ class IntegrationManager {
|
|
|
135
136
|
const parsedOrder = yield modificarOrdenOriginal({
|
|
136
137
|
originalOrder: order
|
|
137
138
|
});
|
|
138
|
-
const duplicatedTempShipment = yield integrationsService.checkDuplicateTempShipment(parsedOrder.codigoEnvioExterno, idUsuario);
|
|
139
|
-
if (duplicatedTempShipment)
|
|
140
|
-
throw new Error('Envio Duplicado');
|
|
141
139
|
return this.insertOrder({
|
|
142
140
|
order: parsedOrder,
|
|
143
141
|
agencyId: yield this.getAgencyIdForTempShipment({
|
package/index.ts
CHANGED
|
@@ -103,6 +103,7 @@ export class IntegrationManager {
|
|
|
103
103
|
});
|
|
104
104
|
|
|
105
105
|
const isPriorityByDefault = async () => {
|
|
106
|
+
// TODO sacar esto de aqui, no hay que hacerlo cada vez, con una vale
|
|
106
107
|
const usuariosGeneiPriority = await this.services.customizationService.getUsersWithSection(8);
|
|
107
108
|
const esPotencialmentePriority = usuariosGeneiPriority.some(
|
|
108
109
|
(seccion: { id_usuario: any; tipo_cliente: any; id_comercial: any; }) =>
|
|
@@ -125,12 +126,6 @@ export class IntegrationManager {
|
|
|
125
126
|
originalOrder: order
|
|
126
127
|
});
|
|
127
128
|
|
|
128
|
-
const duplicatedTempShipment = await integrationsService.checkDuplicateTempShipment(
|
|
129
|
-
parsedOrder.codigoEnvioExterno,
|
|
130
|
-
idUsuario
|
|
131
|
-
);
|
|
132
|
-
if (duplicatedTempShipment) throw new Error('Envio Duplicado');
|
|
133
|
-
|
|
134
129
|
return this.insertOrder({
|
|
135
130
|
order: parsedOrder,
|
|
136
131
|
agencyId: await this.getAgencyIdForTempShipment({
|