@zauru-sdk/utils 2.0.25 → 2.0.26
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.
|
@@ -17,6 +17,7 @@ export const register4pinosShipment = async ({ cookie, idWebAppTable, apiStep, v
|
|
|
17
17
|
transporter_id: values.transporter_id,
|
|
18
18
|
planned_delivery: values.planned_delivery,
|
|
19
19
|
planned_shipping: values.planned_shipping,
|
|
20
|
+
needs_transport: true,
|
|
20
21
|
movements: values.purchase_orders.map((purchaseOrder) => ({
|
|
21
22
|
lot_id: purchaseOrder.lot_id,
|
|
22
23
|
booked_quantity: purchaseOrder.booked_quantity,
|
|
@@ -31,6 +32,7 @@ export const register4pinosShipment = async ({ cookie, idWebAppTable, apiStep, v
|
|
|
31
32
|
throw new Error(`Error al crear el envío: ${createBookingResponse.userMsg} con el body: ${JSON.stringify(shipmentBody)}`);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
35
|
+
proccess_step++;
|
|
34
36
|
if (proccess_step === 2) {
|
|
35
37
|
//PASO 2: COLOCO EL NUMERO DE ENVIO EN TODAS LAS ORDENES DE COMPRA
|
|
36
38
|
console.log("========================================>");
|
|
@@ -46,6 +48,7 @@ export const register4pinosShipment = async ({ cookie, idWebAppTable, apiStep, v
|
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
50
|
}
|
|
51
|
+
proccess_step++;
|
|
49
52
|
console.log("========================================>");
|
|
50
53
|
console.log("paso 3: ELIMINAR EL REGISTRO DE LA COLA");
|
|
51
54
|
//ELIMINAR EL REGISTRO DE LA COLA
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDatePickerCurrentDate, handlePossibleAxiosErrors, reduceAdd, } from "@zauru-sdk/common";
|
|
2
|
-
import { getDeliveryByBooking, getMyAgencyLotStocks,
|
|
2
|
+
import { getDeliveryByBooking, getMyAgencyLotStocks, getShipments, getVariablesByName, insertBookings, } from "@zauru-sdk/services";
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @param headers
|
|
@@ -8,7 +8,7 @@ import { getDeliveryByBooking, getMyAgencyLotStocks, getShipmentsByToAgencyLast1
|
|
|
8
8
|
*/
|
|
9
9
|
export const getShipmentsToMyAgency = async (session) => {
|
|
10
10
|
return handlePossibleAxiosErrors(async () => {
|
|
11
|
-
const response = await
|
|
11
|
+
const response = await getShipments(session, session.get("agency_id"));
|
|
12
12
|
if (response.error) {
|
|
13
13
|
throw new Error(`Ocurrió un error al consultar los envíos a mi agencia actual: ${response.userMsg}`);
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.26",
|
|
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",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@remix-run/node": "^2.8.1",
|
|
27
27
|
"@zauru-sdk/common": "^2.0.24",
|
|
28
28
|
"@zauru-sdk/config": "^2.0.0",
|
|
29
|
-
"@zauru-sdk/graphql": "^2.0.
|
|
30
|
-
"@zauru-sdk/services": "^2.0.
|
|
29
|
+
"@zauru-sdk/graphql": "^2.0.26",
|
|
30
|
+
"@zauru-sdk/services": "^2.0.26",
|
|
31
31
|
"@zauru-sdk/types": "^2.0.24"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "41440682edbc853c6e9ce4f7c982dbf4ac9a185b"
|
|
34
34
|
}
|