sigo-package 1.2.84 → 1.2.85
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.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -2
- package/dist/index.mjs +6 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -335,7 +335,7 @@ declare function updatePriceContractorMOAL02(valorizaciones: Pick<ValorizacionAl
|
|
|
335
335
|
|
|
336
336
|
declare function updatePriceMOAL02(valorizaciones: Pick<ValorizacionDTO, 'Ultimo_Estado_Interno' | 'DetalleChile' | 'Precio' | 'Total' | 'Cantidad'>[], priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): void;
|
|
337
337
|
|
|
338
|
-
declare function obtenerPrecioManoObraAL02(CodigoMO: string, TipoMO: string | null, priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'
|
|
338
|
+
declare function obtenerPrecioManoObraAL02(CodigoMO: string, TipoMO: string | null, priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>, ExceptionClass?: new (message?: string, messageSigo?: boolean) => Error): number;
|
|
339
339
|
|
|
340
340
|
declare function updatePriceContractorMOAL04(valorizaciones: Pick<ValorizacionAlemaniaDTO, 'Ultimo_Estado_Interno' | 'DetalleChile' | 'PrecioContrata' | 'TotalContrata' | 'Cantidad'>[], priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): void;
|
|
341
341
|
|
package/dist/index.d.ts
CHANGED
|
@@ -335,7 +335,7 @@ declare function updatePriceContractorMOAL02(valorizaciones: Pick<ValorizacionAl
|
|
|
335
335
|
|
|
336
336
|
declare function updatePriceMOAL02(valorizaciones: Pick<ValorizacionDTO, 'Ultimo_Estado_Interno' | 'DetalleChile' | 'Precio' | 'Total' | 'Cantidad'>[], priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): void;
|
|
337
337
|
|
|
338
|
-
declare function obtenerPrecioManoObraAL02(CodigoMO: string, TipoMO: string | null, priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'
|
|
338
|
+
declare function obtenerPrecioManoObraAL02(CodigoMO: string, TipoMO: string | null, priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>, ExceptionClass?: new (message?: string, messageSigo?: boolean) => Error): number;
|
|
339
339
|
|
|
340
340
|
declare function updatePriceContractorMOAL04(valorizaciones: Pick<ValorizacionAlemaniaDTO, 'Ultimo_Estado_Interno' | 'DetalleChile' | 'PrecioContrata' | 'TotalContrata' | 'Cantidad'>[], priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): void;
|
|
341
341
|
|
package/dist/index.js
CHANGED
|
@@ -14488,7 +14488,7 @@ function obtenerTipoYCodigoMO(codigoOriginal) {
|
|
|
14488
14488
|
__name(obtenerTipoYCodigoMO, "obtenerTipoYCodigoMO");
|
|
14489
14489
|
|
|
14490
14490
|
// src/Programados/Alemania/obtenerPrecioManoObraAL02.ts
|
|
14491
|
-
function obtenerPrecioManoObraAL02(CodigoMO, TipoMO, priceContractorMO) {
|
|
14491
|
+
function obtenerPrecioManoObraAL02(CodigoMO, TipoMO, priceContractorMO, ExceptionClass) {
|
|
14492
14492
|
const resultados = priceContractorMO.ManoObraGlobal.filter((e) => e.Codigo === CodigoMO && e.Estado.ID_Estado === 1);
|
|
14493
14493
|
if (resultados.length !== 1) {
|
|
14494
14494
|
throw new Error(`Hay ${resultados.length} resultados para precioContratista cod empresa: '${priceContractorMO.Empresa.Codigo}', cod mo: '${CodigoMO}'`);
|
|
@@ -14497,7 +14497,11 @@ function obtenerPrecioManoObraAL02(CodigoMO, TipoMO, priceContractorMO) {
|
|
|
14497
14497
|
if (TipoMO !== null) {
|
|
14498
14498
|
const precioObj = registro.TipoMO?.find((e) => e.Tipo === TipoMO);
|
|
14499
14499
|
if (!precioObj) {
|
|
14500
|
-
|
|
14500
|
+
const msg = `No hay precioContratista cod empresa: '${priceContractorMO.Empresa.Codigo}', cod mo: '${CodigoMO}', TipoMO: '${TipoMO}'`;
|
|
14501
|
+
if (ExceptionClass) {
|
|
14502
|
+
throw new ExceptionClass(msg, true);
|
|
14503
|
+
}
|
|
14504
|
+
throw new Error(msg);
|
|
14501
14505
|
}
|
|
14502
14506
|
return precioObj.Precio;
|
|
14503
14507
|
} else {
|
package/dist/index.mjs
CHANGED
|
@@ -14339,7 +14339,7 @@ function obtenerTipoYCodigoMO(codigoOriginal) {
|
|
|
14339
14339
|
__name(obtenerTipoYCodigoMO, "obtenerTipoYCodigoMO");
|
|
14340
14340
|
|
|
14341
14341
|
// src/Programados/Alemania/obtenerPrecioManoObraAL02.ts
|
|
14342
|
-
function obtenerPrecioManoObraAL02(CodigoMO, TipoMO, priceContractorMO) {
|
|
14342
|
+
function obtenerPrecioManoObraAL02(CodigoMO, TipoMO, priceContractorMO, ExceptionClass) {
|
|
14343
14343
|
const resultados = priceContractorMO.ManoObraGlobal.filter((e) => e.Codigo === CodigoMO && e.Estado.ID_Estado === 1);
|
|
14344
14344
|
if (resultados.length !== 1) {
|
|
14345
14345
|
throw new Error(`Hay ${resultados.length} resultados para precioContratista cod empresa: '${priceContractorMO.Empresa.Codigo}', cod mo: '${CodigoMO}'`);
|
|
@@ -14348,7 +14348,11 @@ function obtenerPrecioManoObraAL02(CodigoMO, TipoMO, priceContractorMO) {
|
|
|
14348
14348
|
if (TipoMO !== null) {
|
|
14349
14349
|
const precioObj = registro.TipoMO?.find((e) => e.Tipo === TipoMO);
|
|
14350
14350
|
if (!precioObj) {
|
|
14351
|
-
|
|
14351
|
+
const msg = `No hay precioContratista cod empresa: '${priceContractorMO.Empresa.Codigo}', cod mo: '${CodigoMO}', TipoMO: '${TipoMO}'`;
|
|
14352
|
+
if (ExceptionClass) {
|
|
14353
|
+
throw new ExceptionClass(msg, true);
|
|
14354
|
+
}
|
|
14355
|
+
throw new Error(msg);
|
|
14352
14356
|
}
|
|
14353
14357
|
return precioObj.Precio;
|
|
14354
14358
|
} else {
|