cardus 0.0.74 → 0.0.76
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 +4 -2
- package/dist/insertTempShipment/index.js +2 -1
- package/index.ts +4 -2
- package/insertTempShipment/index.ts +2 -1
- package/package.json +1 -1
- package/types/index.ts +3 -0
package/dist/index.js
CHANGED
|
@@ -219,9 +219,11 @@ class IntegrationManager {
|
|
|
219
219
|
id_envio: detail.id_envio,
|
|
220
220
|
id_usuario: idUsuario,
|
|
221
221
|
contenido: detail.bulto.nombre_producto,
|
|
222
|
-
valor: detail.bulto.
|
|
222
|
+
valor: detail.bulto.precio_producto
|
|
223
|
+
? parseFloat(detail.bulto.precio_producto)
|
|
224
|
+
: getRandomContentValue(),
|
|
223
225
|
dni: user.dni,
|
|
224
|
-
taric,
|
|
226
|
+
taric: detail.bulto.hs_code || taric,
|
|
225
227
|
eori_importacion: user.eori_import,
|
|
226
228
|
eori_exportacion: user.eori_export,
|
|
227
229
|
peso_bruto: detail.bulto.peso,
|
|
@@ -112,7 +112,8 @@ const cookTempShipment = (_a) => __awaiter(void 0, [_a], void 0, function* ({ or
|
|
|
112
112
|
referencia_cliente: order.referenciaCliente || null
|
|
113
113
|
});
|
|
114
114
|
const setDatosAdicionales = (order) => ({
|
|
115
|
-
datos_adicionales: order.etiquetaExtraInfo || null
|
|
115
|
+
datos_adicionales: order.etiquetaExtraInfo || null,
|
|
116
|
+
observaciones: order.observaciones || ''
|
|
116
117
|
});
|
|
117
118
|
const setters = [
|
|
118
119
|
setDatosVendedor,
|
package/index.ts
CHANGED
|
@@ -309,9 +309,11 @@ export class IntegrationManager {
|
|
|
309
309
|
id_envio: detail.id_envio,
|
|
310
310
|
id_usuario: idUsuario,
|
|
311
311
|
contenido: detail.bulto.nombre_producto,
|
|
312
|
-
valor: detail.bulto.
|
|
312
|
+
valor: detail.bulto.precio_producto
|
|
313
|
+
? parseFloat(detail.bulto.precio_producto)
|
|
314
|
+
: getRandomContentValue(),
|
|
313
315
|
dni: user.dni,
|
|
314
|
-
taric,
|
|
316
|
+
taric: detail.bulto.hs_code || taric,
|
|
315
317
|
eori_importacion: user.eori_import,
|
|
316
318
|
eori_exportacion: user.eori_export,
|
|
317
319
|
peso_bruto: detail.bulto.peso,
|
|
@@ -164,7 +164,8 @@ export const cookTempShipment = async ({
|
|
|
164
164
|
});
|
|
165
165
|
|
|
166
166
|
const setDatosAdicionales = (order: ModifiedOrder) => ({
|
|
167
|
-
datos_adicionales: order.etiquetaExtraInfo || null
|
|
167
|
+
datos_adicionales: order.etiquetaExtraInfo || null,
|
|
168
|
+
observaciones: order.observaciones || ''
|
|
168
169
|
});
|
|
169
170
|
|
|
170
171
|
const setters = [
|
package/package.json
CHANGED
package/types/index.ts
CHANGED
|
@@ -92,6 +92,8 @@ export type Bulto = {
|
|
|
92
92
|
url_imagen: string | null;
|
|
93
93
|
nombre_producto: string | null;
|
|
94
94
|
valor?: number;
|
|
95
|
+
precio_producto: string | null;
|
|
96
|
+
hs_code: string | null;
|
|
95
97
|
};
|
|
96
98
|
cantidad: number;
|
|
97
99
|
forzarAgrupamientoDeLinea: boolean;
|
|
@@ -123,6 +125,7 @@ export type ModifiedOrder = {
|
|
|
123
125
|
etiquetaExtraInfo?: string;
|
|
124
126
|
numeroIdentificacionLLegada?: string | null;
|
|
125
127
|
observacionesLLegada?: string;
|
|
128
|
+
observaciones?: string;
|
|
126
129
|
};
|
|
127
130
|
|
|
128
131
|
export interface ModifiedOrderExtended extends ModifiedOrder {
|