@zauru-sdk/utils 2.0.13 → 2.0.14

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,5 +1,5 @@
1
1
  import { getHeaders, getSession, updateReceivedPurchaseOrder, } from "@zauru-sdk/services";
2
- import { updateQueueShipmentsFormHistory } from "./4pinos-shipments-form-history.utils.js";
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, agency_id, values, }) => {
5
5
  const session = await getSession(cookie);
@@ -16,6 +16,10 @@ export const register4pinosShipment = async ({ cookie, idWebAppTable, agency_id,
16
16
  throw new Error(`Error al actualizar la orden de compra ${purchaseOrder.id}: ${response.userMsg}`);
17
17
  }
18
18
  }
19
+ console.log("========================================>");
20
+ console.log("paso 4: ELIMINAR EL REGISTRO DE LA COLA");
21
+ //ELIMINAR EL REGISTRO DE LA COLA
22
+ await deleteQueueShipmentsFormHistory(headers, session, idWebAppTable.toString());
19
23
  }
20
24
  catch (e) {
21
25
  console.log("========================================>");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/utils",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
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.13",
31
31
  "@zauru-sdk/types": "^2.0.13"
32
32
  },
33
- "gitHead": "b3b6db7ab1d80167dc64315fdca7083ee649c484"
33
+ "gitHead": "d2ff8b2319a6bbac7a864ff258bf5b3e1315e56c"
34
34
  }