@zauru-sdk/utils 1.0.97 → 1.0.99
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,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.register4pinosReception = void 0;
|
|
4
|
-
const common_1 = require("@zauru-sdk/common");
|
|
5
4
|
const services_1 = require("@zauru-sdk/services");
|
|
6
5
|
const motivos_rechazo_utils_js_1 = require("./motivos-rechazo.utils.js");
|
|
7
6
|
const _4pinos_receptions_form_history_utils_js_1 = require("./4pinos-receptions-form-history.utils.js");
|
|
@@ -22,7 +21,9 @@ const register4pinosReception = async ({ cookie, idWebAppTable, agency_id, value
|
|
|
22
21
|
}
|
|
23
22
|
const existentes = responsePOSearch?.data?.filter((x) => !x.voided);
|
|
24
23
|
if (existentes?.length > 0) {
|
|
25
|
-
throw new Error(`Ya existe una órden de compra con este número de contraseña asociado, revise el listado general. Peso: ${existentes[0].due}, Ingresado el:
|
|
24
|
+
throw new Error(`Ya existe una órden de compra con este número de contraseña asociado, revise el listado general. Peso: ${existentes[0].due}, Ingresado el:
|
|
25
|
+
existentes[0].issue_date
|
|
26
|
+
, Memo: ${existentes[0].memo}, Tipo: ${existentes[0].reference}`);
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
const esCentroDeAcopio = values?.esCentroDeAcopio === "true";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { zauruDateToLongString } from "@zauru-sdk/common";
|
|
2
1
|
import { createNewAuthorizedPurchaseOrder, createNewReception, getDeliveryByBooking, getHeaders, getLoteByName, getPurchasesOrderByIdNumber, getSession, getVariablesByName, insertBookings, saveMotivosDeRechazoByPurchase, } from "@zauru-sdk/services";
|
|
3
2
|
import { saveRechazoCanastas } from "./motivos-rechazo.utils.js";
|
|
4
3
|
import { deleteQueueFormReceptionHistory, ESTADOS_COLA_RECEPCIONES, updateQueueFormReceptionHistory, } from "./4pinos-receptions-form-history.utils.js";
|
|
@@ -19,7 +18,9 @@ export const register4pinosReception = async ({ cookie, idWebAppTable, agency_id
|
|
|
19
18
|
}
|
|
20
19
|
const existentes = responsePOSearch?.data?.filter((x) => !x.voided);
|
|
21
20
|
if (existentes?.length > 0) {
|
|
22
|
-
throw new Error(`Ya existe una órden de compra con este número de contraseña asociado, revise el listado general. Peso: ${existentes[0].due}, Ingresado el:
|
|
21
|
+
throw new Error(`Ya existe una órden de compra con este número de contraseña asociado, revise el listado general. Peso: ${existentes[0].due}, Ingresado el:
|
|
22
|
+
existentes[0].issue_date
|
|
23
|
+
, Memo: ${existentes[0].memo}, Tipo: ${existentes[0].reference}`);
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
const esCentroDeAcopio = values?.esCentroDeAcopio === "true";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.99",
|
|
4
4
|
"description": "Utilidades, parseo de request y demás para desarrollo de webapps de Zauru",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@remix-run/node": "^2.8.1",
|
|
28
|
-
"@zauru-sdk/common": "^1.0.
|
|
28
|
+
"@zauru-sdk/common": "^1.0.99",
|
|
29
29
|
"@zauru-sdk/config": "^1.0.60",
|
|
30
30
|
"@zauru-sdk/graphql": "^1.0.94",
|
|
31
|
-
"@zauru-sdk/services": "^1.0.
|
|
32
|
-
"@zauru-sdk/types": "^1.0.
|
|
31
|
+
"@zauru-sdk/services": "^1.0.99",
|
|
32
|
+
"@zauru-sdk/types": "^1.0.98"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "ad07b6fa1ffed108a45c2ae3e043e2168664dfb5"
|
|
35
35
|
}
|