sigo-package 1.2.101 → 1.2.103
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 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -6
- package/dist/index.mjs +7 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -686,6 +686,7 @@ declare function validateNoLookup(input: any | any[]): void;
|
|
|
686
686
|
|
|
687
687
|
declare function getChannelName(id: string): {
|
|
688
688
|
reportAutoInventory: string;
|
|
689
|
+
updateDataTOAOrdersLiquidation: string;
|
|
689
690
|
};
|
|
690
691
|
|
|
691
692
|
declare const timeZones: readonly ["America/Santiago", "America/Bogota", "Europe/Berlin"];
|
package/dist/index.d.ts
CHANGED
|
@@ -686,6 +686,7 @@ declare function validateNoLookup(input: any | any[]): void;
|
|
|
686
686
|
|
|
687
687
|
declare function getChannelName(id: string): {
|
|
688
688
|
reportAutoInventory: string;
|
|
689
|
+
updateDataTOAOrdersLiquidation: string;
|
|
689
690
|
};
|
|
690
691
|
|
|
691
692
|
declare const timeZones: readonly ["America/Santiago", "America/Bogota", "Europe/Berlin"];
|
package/dist/index.js
CHANGED
|
@@ -166,11 +166,11 @@ var ActualizarDataManoObra = /* @__PURE__ */ __name(({ manoObra, ContratoOT, env
|
|
|
166
166
|
if (Sistema == "default") Sistema = !ContratoOT.CheckPrecioMO ? "default" : "onNet";
|
|
167
167
|
for (const valorizacion of manoObra.Valorizacion) {
|
|
168
168
|
const { DatosManoObraGlobal: { DetalleChile: { ManoObraBaremo } }, DatosPrecioEspecialidad: { Agencias } } = valorizacion.DatosCatalogoMO;
|
|
169
|
-
if (!!!Agencias.length) throw Error(`\xA1No se pudo obtener Precio, hay ${Agencias.length} Agencias para ${valorizacion.DetalleChile.ManoObra.Codigo}! Comun\xEDcate con Soporte`);
|
|
169
|
+
if (!!!Agencias.length) throw Error(`\xA1No se pudo obtener Precio, hay ${Agencias.length} Agencias para ${valorizacion.DetalleChile.ManoObra.Codigo}, linea ${valorizacion.DetalleChile.Linea}! Comun\xEDcate con Soporte`);
|
|
170
170
|
const agencia = Agencias.find((e) => e.Estado.ID_Estado === 1);
|
|
171
|
-
if (!!!agencia) throw Error(`\xA1No se pudo obtener Precio, hay 0 Agencias con estado activo para ${valorizacion.DetalleChile.ManoObra.Codigo}! Comun\xEDcate con Soporte`);
|
|
171
|
+
if (!!!agencia) throw Error(`\xA1No se pudo obtener Precio, hay 0 Agencias con estado activo para ${valorizacion.DetalleChile.ManoObra.Codigo}, linea ${valorizacion.DetalleChile.Linea}! Comun\xEDcate con Soporte`);
|
|
172
172
|
valorizacion.Precio = Number(agencia.Ultimo_Precio.Precio);
|
|
173
|
-
if (!!!ManoObraBaremo.length) throw Error(`\xA1No se pudo obtener Punto Baremo para ${valorizacion.DetalleChile.ManoObra.Codigo}! Comun\xEDcate con Soporte`);
|
|
173
|
+
if (!!!ManoObraBaremo.length) throw Error(`\xA1No se pudo obtener Punto Baremo para ${valorizacion.DetalleChile.ManoObra.Codigo}, linea ${valorizacion.DetalleChile.Linea}! Comun\xEDcate con Soporte`);
|
|
174
174
|
valorizacion.DetalleChile.PuntoBaremo = ManoObraBaremo[0].PuntoBaremo;
|
|
175
175
|
const sistema = {
|
|
176
176
|
onNet: {
|
|
@@ -3817,7 +3817,7 @@ var codMOTroncal_ReglaLiquidacion1 = [
|
|
|
3817
3817
|
"T8",
|
|
3818
3818
|
"T2",
|
|
3819
3819
|
"T20",
|
|
3820
|
-
|
|
3820
|
+
//'T27', Comentado por solicitud de Arturo 19-11-2025 (74939)
|
|
3821
3821
|
"T28",
|
|
3822
3822
|
"T23",
|
|
3823
3823
|
"T24",
|
|
@@ -4463,7 +4463,7 @@ var newCodMOTroncalReglaLiquidacion1 = [
|
|
|
4463
4463
|
"T8",
|
|
4464
4464
|
"T2",
|
|
4465
4465
|
"T20",
|
|
4466
|
-
|
|
4466
|
+
//'T27',Comentado por solicitud de Arturo 19-11-2025 (74939)
|
|
4467
4467
|
"T28",
|
|
4468
4468
|
"T26",
|
|
4469
4469
|
"T29",
|
|
@@ -15362,7 +15362,8 @@ __name(validateNoLookup, "validateNoLookup");
|
|
|
15362
15362
|
// src/shared/Utils/getChannelName.ts
|
|
15363
15363
|
function getChannelName(id) {
|
|
15364
15364
|
return {
|
|
15365
|
-
reportAutoInventory: `${id}reportAutoInventory
|
|
15365
|
+
reportAutoInventory: `${id}reportAutoInventory`,
|
|
15366
|
+
updateDataTOAOrdersLiquidation: `${id}updateDataTOAOrdersLiquidation`
|
|
15366
15367
|
};
|
|
15367
15368
|
}
|
|
15368
15369
|
__name(getChannelName, "getChannelName");
|
package/dist/index.mjs
CHANGED
|
@@ -9,11 +9,11 @@ var ActualizarDataManoObra = /* @__PURE__ */ __name(({ manoObra, ContratoOT, env
|
|
|
9
9
|
if (Sistema == "default") Sistema = !ContratoOT.CheckPrecioMO ? "default" : "onNet";
|
|
10
10
|
for (const valorizacion of manoObra.Valorizacion) {
|
|
11
11
|
const { DatosManoObraGlobal: { DetalleChile: { ManoObraBaremo } }, DatosPrecioEspecialidad: { Agencias } } = valorizacion.DatosCatalogoMO;
|
|
12
|
-
if (!!!Agencias.length) throw Error(`\xA1No se pudo obtener Precio, hay ${Agencias.length} Agencias para ${valorizacion.DetalleChile.ManoObra.Codigo}! Comun\xEDcate con Soporte`);
|
|
12
|
+
if (!!!Agencias.length) throw Error(`\xA1No se pudo obtener Precio, hay ${Agencias.length} Agencias para ${valorizacion.DetalleChile.ManoObra.Codigo}, linea ${valorizacion.DetalleChile.Linea}! Comun\xEDcate con Soporte`);
|
|
13
13
|
const agencia = Agencias.find((e) => e.Estado.ID_Estado === 1);
|
|
14
|
-
if (!!!agencia) throw Error(`\xA1No se pudo obtener Precio, hay 0 Agencias con estado activo para ${valorizacion.DetalleChile.ManoObra.Codigo}! Comun\xEDcate con Soporte`);
|
|
14
|
+
if (!!!agencia) throw Error(`\xA1No se pudo obtener Precio, hay 0 Agencias con estado activo para ${valorizacion.DetalleChile.ManoObra.Codigo}, linea ${valorizacion.DetalleChile.Linea}! Comun\xEDcate con Soporte`);
|
|
15
15
|
valorizacion.Precio = Number(agencia.Ultimo_Precio.Precio);
|
|
16
|
-
if (!!!ManoObraBaremo.length) throw Error(`\xA1No se pudo obtener Punto Baremo para ${valorizacion.DetalleChile.ManoObra.Codigo}! Comun\xEDcate con Soporte`);
|
|
16
|
+
if (!!!ManoObraBaremo.length) throw Error(`\xA1No se pudo obtener Punto Baremo para ${valorizacion.DetalleChile.ManoObra.Codigo}, linea ${valorizacion.DetalleChile.Linea}! Comun\xEDcate con Soporte`);
|
|
17
17
|
valorizacion.DetalleChile.PuntoBaremo = ManoObraBaremo[0].PuntoBaremo;
|
|
18
18
|
const sistema = {
|
|
19
19
|
onNet: {
|
|
@@ -3660,7 +3660,7 @@ var codMOTroncal_ReglaLiquidacion1 = [
|
|
|
3660
3660
|
"T8",
|
|
3661
3661
|
"T2",
|
|
3662
3662
|
"T20",
|
|
3663
|
-
|
|
3663
|
+
//'T27', Comentado por solicitud de Arturo 19-11-2025 (74939)
|
|
3664
3664
|
"T28",
|
|
3665
3665
|
"T23",
|
|
3666
3666
|
"T24",
|
|
@@ -4306,7 +4306,7 @@ var newCodMOTroncalReglaLiquidacion1 = [
|
|
|
4306
4306
|
"T8",
|
|
4307
4307
|
"T2",
|
|
4308
4308
|
"T20",
|
|
4309
|
-
|
|
4309
|
+
//'T27',Comentado por solicitud de Arturo 19-11-2025 (74939)
|
|
4310
4310
|
"T28",
|
|
4311
4311
|
"T26",
|
|
4312
4312
|
"T29",
|
|
@@ -15205,7 +15205,8 @@ __name(validateNoLookup, "validateNoLookup");
|
|
|
15205
15205
|
// src/shared/Utils/getChannelName.ts
|
|
15206
15206
|
function getChannelName(id) {
|
|
15207
15207
|
return {
|
|
15208
|
-
reportAutoInventory: `${id}reportAutoInventory
|
|
15208
|
+
reportAutoInventory: `${id}reportAutoInventory`,
|
|
15209
|
+
updateDataTOAOrdersLiquidation: `${id}updateDataTOAOrdersLiquidation`
|
|
15209
15210
|
};
|
|
15210
15211
|
}
|
|
15211
15212
|
__name(getChannelName, "getChannelName");
|