@zauru-sdk/utils 2.0.16 → 2.0.17
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.
|
@@ -6,6 +6,8 @@ export const register4pinosShipment = async ({ cookie, idWebAppTable, values, })
|
|
|
6
6
|
const headers = await getHeaders(cookie, session);
|
|
7
7
|
try {
|
|
8
8
|
//PASO 1: COLOCO EL NUMERO DE ENVIO EN TODAS LAS ORDENES DE COMPRA
|
|
9
|
+
console.log("========================================>");
|
|
10
|
+
console.log("paso 1: COLOCO EL NUMERO DE ENVIO EN TODAS LAS ORDENES DE COMPRA");
|
|
9
11
|
for (const purchaseOrder of values.purchase_orders) {
|
|
10
12
|
const response = await updateReceivedPurchaseOrder(headers, {
|
|
11
13
|
purchase_order: {
|
|
@@ -29,6 +31,7 @@ export const register4pinosShipment = async ({ cookie, idWebAppTable, values, })
|
|
|
29
31
|
})),
|
|
30
32
|
};
|
|
31
33
|
console.log("========================================>");
|
|
34
|
+
console.log("paso 2: CREAR EL ENVIO");
|
|
32
35
|
console.log("Enviando: ", JSON.stringify(shipmentBody));
|
|
33
36
|
const createBookingResponse = await insertBookings(headers, shipmentBody);
|
|
34
37
|
if (createBookingResponse.error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.17",
|
|
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",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"@zauru-sdk/services": "^2.0.16",
|
|
31
31
|
"@zauru-sdk/types": "^2.0.16"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "45cfebb98a0108d888a5e9b51f5fceb5d32aad39"
|
|
34
34
|
}
|