@zauru-sdk/utils 2.0.41 → 2.0.43
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getHeaders, getSession, insertBookings, updateReceivedPurchaseOrder, } from "@zauru-sdk/services";
|
|
2
2
|
import { deleteQueueShipmentsFormHistory, updateQueueShipmentsFormHistory, } from "./4pinos-shipments-form-history.utils.js";
|
|
3
3
|
import { ESTADOS_COLA_RECEPCIONES } from "./4pinos-receptions-form-history.utils.js";
|
|
4
4
|
export const register4pinosShipment = async ({ cookie, idWebAppTable, apiStep, shipment_id, values, }) => {
|
|
@@ -38,15 +38,24 @@ export const register4pinosShipment = async ({ cookie, idWebAppTable, apiStep, s
|
|
|
38
38
|
new_shipment_id = createBookingResponse.data?.id;
|
|
39
39
|
}
|
|
40
40
|
proccess_step++;
|
|
41
|
+
//SE QUITA EL DESPACHO AUTOMATICO, PORQUE SE VA A HACER MANUAL AHORA
|
|
42
|
+
/*
|
|
41
43
|
if (proccess_step === 2) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
//PASO 2: DESPACHAR EL ENVIO -- PONER EN TRANSITO
|
|
45
|
+
console.log("========================================>");
|
|
46
|
+
console.log("paso 2: DESPACHAR EL ENVIO -- PONER EN TRANSITO");
|
|
47
|
+
const dispatchShipmentResponse = await despacharShipment_booking(
|
|
48
|
+
headers,
|
|
49
|
+
Number(new_shipment_id)
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
if (dispatchShipmentResponse.error) {
|
|
53
|
+
throw new Error(
|
|
54
|
+
`Error al despachar el envío: ${dispatchShipmentResponse.userMsg} con el id: ${new_shipment_id}`
|
|
55
|
+
);
|
|
56
|
+
}
|
|
49
57
|
}
|
|
58
|
+
*/
|
|
50
59
|
proccess_step++;
|
|
51
60
|
if (proccess_step === 3) {
|
|
52
61
|
//PASO 2: COLOCO EL NUMERO DE ENVIO EN TODAS LAS ORDENES DE COMPRA
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.43",
|
|
4
4
|
"description": "Utilidades, parseo de request y demás para desarrollo de webapps de Zauru",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"@zauru-sdk/common": "^2.0.40",
|
|
28
28
|
"@zauru-sdk/config": "^2.0.0",
|
|
29
29
|
"@zauru-sdk/graphql": "^2.0.41",
|
|
30
|
-
"@zauru-sdk/services": "^2.0.
|
|
30
|
+
"@zauru-sdk/services": "^2.0.43",
|
|
31
31
|
"@zauru-sdk/types": "^2.0.40"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "353c84b59ccdbc8c9fd5745659637f40ae965078"
|
|
34
34
|
}
|