sigo-package 1.2.69 → 1.2.71
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 +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +21 -14
- package/dist/index.mjs +20 -14
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -384,10 +384,7 @@ interface ResumenLiquidacionesTypeChile {
|
|
|
384
384
|
MatStockAlmacen: MatStockPersonalType[];
|
|
385
385
|
}
|
|
386
386
|
interface MatStockPersonalType {
|
|
387
|
-
|
|
388
|
-
Identificacion: string;
|
|
389
|
-
Codigo: string;
|
|
390
|
-
CodigoLlave: string;
|
|
387
|
+
ID_StockPersonal: number;
|
|
391
388
|
Cantidad: number;
|
|
392
389
|
}
|
|
393
390
|
interface MatUtilizadosType {
|
|
@@ -572,4 +569,6 @@ declare function formatNumberSmart(value: number | string): number;
|
|
|
572
569
|
|
|
573
570
|
declare function formatCurrencyV1(num: number, maximumFractionDigits?: number, symbol?: string): string;
|
|
574
571
|
|
|
575
|
-
|
|
572
|
+
declare function formatPercentageV1(num: number, maximumFractionDigits?: number): string;
|
|
573
|
+
|
|
574
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$1 as MatStockPersonalType, type MatUtilizadosType$1 as MatUtilizadosType, type MoUoType$1 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, SEGMENT_TY, type TARGET, UpdateNodosDocDP, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildTenantCollectionName, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, consumirStockPersonal, convertDates, dataFlujosHomePass, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
package/dist/index.d.ts
CHANGED
|
@@ -384,10 +384,7 @@ interface ResumenLiquidacionesTypeChile {
|
|
|
384
384
|
MatStockAlmacen: MatStockPersonalType[];
|
|
385
385
|
}
|
|
386
386
|
interface MatStockPersonalType {
|
|
387
|
-
|
|
388
|
-
Identificacion: string;
|
|
389
|
-
Codigo: string;
|
|
390
|
-
CodigoLlave: string;
|
|
387
|
+
ID_StockPersonal: number;
|
|
391
388
|
Cantidad: number;
|
|
392
389
|
}
|
|
393
390
|
interface MatUtilizadosType {
|
|
@@ -572,4 +569,6 @@ declare function formatNumberSmart(value: number | string): number;
|
|
|
572
569
|
|
|
573
570
|
declare function formatCurrencyV1(num: number, maximumFractionDigits?: number, symbol?: string): string;
|
|
574
571
|
|
|
575
|
-
|
|
572
|
+
declare function formatPercentageV1(num: number, maximumFractionDigits?: number): string;
|
|
573
|
+
|
|
574
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$1 as MatStockPersonalType, type MatUtilizadosType$1 as MatUtilizadosType, type MoUoType$1 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, SEGMENT_TY, type TARGET, UpdateNodosDocDP, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildTenantCollectionName, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, consumirStockPersonal, convertDates, dataFlujosHomePass, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
package/dist/index.js
CHANGED
|
@@ -104,6 +104,7 @@ __export(index_exports, {
|
|
|
104
104
|
esObjetoFecha: () => esObjetoFecha,
|
|
105
105
|
formatCurrencyV1: () => formatCurrencyV1,
|
|
106
106
|
formatNumberSmart: () => formatNumberSmart,
|
|
107
|
+
formatPercentageV1: () => formatPercentageV1,
|
|
107
108
|
generateUniqueNumber: () => generateUniqueNumber,
|
|
108
109
|
generateUniqueNumberArray: () => generateUniqueNumberArray,
|
|
109
110
|
getChannelName: () => getChannelName,
|
|
@@ -199,16 +200,11 @@ var ActualizarDataResumenLiquidaciones = /* @__PURE__ */ __name((ManoObra, Reser
|
|
|
199
200
|
if (StockPersonal && Array.isArray(StockPersonal)) {
|
|
200
201
|
for (const stockPersonal of StockPersonal) {
|
|
201
202
|
stockPersonal.Liquidacion = 0;
|
|
202
|
-
const stock = ResumenPreLiquidado.MatStockPersonal.
|
|
203
|
-
if (stock) {
|
|
204
|
-
|
|
205
|
-
stockPersonal.Liquidacion = stockPersonal.Despacho;
|
|
206
|
-
stock.Cantidad = stock.Cantidad - stockPersonal.Despacho;
|
|
207
|
-
} else {
|
|
208
|
-
stockPersonal.Liquidacion = stock.Cantidad;
|
|
209
|
-
stock.Cantidad = 0;
|
|
210
|
-
}
|
|
203
|
+
const stock = ResumenPreLiquidado.MatStockPersonal.filter((e) => e.ID_StockPersonal === stockPersonal.ID_StockPersonal);
|
|
204
|
+
if (stock.length !== 1) {
|
|
205
|
+
throw new Error(`Hay ${stock.length} resultados para stock ID_StockPersonal: ${stockPersonal.ID_StockPersonal}`);
|
|
211
206
|
}
|
|
207
|
+
stockPersonal.Liquidacion = stock[0].Cantidad;
|
|
212
208
|
}
|
|
213
209
|
}
|
|
214
210
|
}, "ActualizarDataResumenLiquidaciones");
|
|
@@ -14840,13 +14836,13 @@ var CalcularResumenLiquidaciones = /* @__PURE__ */ __name((trabajo, trabajos) =>
|
|
|
14840
14836
|
Codigo: mu.Codigo,
|
|
14841
14837
|
Cantidad: mu.Cantidad
|
|
14842
14838
|
});
|
|
14843
|
-
const matStockPersonal = MatStockPersonal.find((e) => e.
|
|
14839
|
+
const matStockPersonal = MatStockPersonal.find((e) => e.ID_StockPersonal === mu.ID_StockPersonal);
|
|
14844
14840
|
if (matStockPersonal) matStockPersonal.Cantidad += mu.Cantidad;
|
|
14845
14841
|
else MatStockPersonal.push({
|
|
14846
|
-
|
|
14847
|
-
Identificacion: trabajoDB.Ultima_asignacion.Personal[0].Identificacion,
|
|
14848
|
-
CodigoLlave: mu.CodigoLlave,
|
|
14849
|
-
Codigo: mu.Codigo,
|
|
14842
|
+
ID_StockPersonal: mu.ID_StockPersonal,
|
|
14843
|
+
// Identificacion: trabajoDB.Ultima_asignacion.Personal[0].Identificacion,
|
|
14844
|
+
// CodigoLlave: mu.CodigoLlave,
|
|
14845
|
+
// Codigo: mu.Codigo,
|
|
14850
14846
|
Cantidad: mu.Cantidad
|
|
14851
14847
|
});
|
|
14852
14848
|
}
|
|
@@ -15320,6 +15316,16 @@ function formatCurrencyV1(num, maximumFractionDigits = 2, symbol = "$") {
|
|
|
15320
15316
|
}
|
|
15321
15317
|
__name(formatCurrencyV1, "formatCurrencyV1");
|
|
15322
15318
|
|
|
15319
|
+
// src/shared/Utils/formatPercentageV1.ts
|
|
15320
|
+
function formatPercentageV1(num, maximumFractionDigits = 2) {
|
|
15321
|
+
const options = {
|
|
15322
|
+
minimumFractionDigits: 0,
|
|
15323
|
+
maximumFractionDigits
|
|
15324
|
+
};
|
|
15325
|
+
return new Intl.NumberFormat("es-ES", options).format(num) + " %";
|
|
15326
|
+
}
|
|
15327
|
+
__name(formatPercentageV1, "formatPercentageV1");
|
|
15328
|
+
|
|
15323
15329
|
// src/Programados/Procesos/Preliquidar/ObtenerPrecioContratistaVigente.ts
|
|
15324
15330
|
function ObtenerPrecioContratistaVigente({ actividad, FechaVerificar }) {
|
|
15325
15331
|
const fechaVerificar = new Date(FechaVerificar);
|
|
@@ -15468,6 +15474,7 @@ var getNextID_AsignacionValorizacion = /* @__PURE__ */ __name((Valorizaciones) =
|
|
|
15468
15474
|
esObjetoFecha,
|
|
15469
15475
|
formatCurrencyV1,
|
|
15470
15476
|
formatNumberSmart,
|
|
15477
|
+
formatPercentageV1,
|
|
15471
15478
|
generateUniqueNumber,
|
|
15472
15479
|
generateUniqueNumberArray,
|
|
15473
15480
|
getChannelName,
|
package/dist/index.mjs
CHANGED
|
@@ -58,16 +58,11 @@ var ActualizarDataResumenLiquidaciones = /* @__PURE__ */ __name((ManoObra, Reser
|
|
|
58
58
|
if (StockPersonal && Array.isArray(StockPersonal)) {
|
|
59
59
|
for (const stockPersonal of StockPersonal) {
|
|
60
60
|
stockPersonal.Liquidacion = 0;
|
|
61
|
-
const stock = ResumenPreLiquidado.MatStockPersonal.
|
|
62
|
-
if (stock) {
|
|
63
|
-
|
|
64
|
-
stockPersonal.Liquidacion = stockPersonal.Despacho;
|
|
65
|
-
stock.Cantidad = stock.Cantidad - stockPersonal.Despacho;
|
|
66
|
-
} else {
|
|
67
|
-
stockPersonal.Liquidacion = stock.Cantidad;
|
|
68
|
-
stock.Cantidad = 0;
|
|
69
|
-
}
|
|
61
|
+
const stock = ResumenPreLiquidado.MatStockPersonal.filter((e) => e.ID_StockPersonal === stockPersonal.ID_StockPersonal);
|
|
62
|
+
if (stock.length !== 1) {
|
|
63
|
+
throw new Error(`Hay ${stock.length} resultados para stock ID_StockPersonal: ${stockPersonal.ID_StockPersonal}`);
|
|
70
64
|
}
|
|
65
|
+
stockPersonal.Liquidacion = stock[0].Cantidad;
|
|
71
66
|
}
|
|
72
67
|
}
|
|
73
68
|
}, "ActualizarDataResumenLiquidaciones");
|
|
@@ -14699,13 +14694,13 @@ var CalcularResumenLiquidaciones = /* @__PURE__ */ __name((trabajo, trabajos) =>
|
|
|
14699
14694
|
Codigo: mu.Codigo,
|
|
14700
14695
|
Cantidad: mu.Cantidad
|
|
14701
14696
|
});
|
|
14702
|
-
const matStockPersonal = MatStockPersonal.find((e) => e.
|
|
14697
|
+
const matStockPersonal = MatStockPersonal.find((e) => e.ID_StockPersonal === mu.ID_StockPersonal);
|
|
14703
14698
|
if (matStockPersonal) matStockPersonal.Cantidad += mu.Cantidad;
|
|
14704
14699
|
else MatStockPersonal.push({
|
|
14705
|
-
|
|
14706
|
-
Identificacion: trabajoDB.Ultima_asignacion.Personal[0].Identificacion,
|
|
14707
|
-
CodigoLlave: mu.CodigoLlave,
|
|
14708
|
-
Codigo: mu.Codigo,
|
|
14700
|
+
ID_StockPersonal: mu.ID_StockPersonal,
|
|
14701
|
+
// Identificacion: trabajoDB.Ultima_asignacion.Personal[0].Identificacion,
|
|
14702
|
+
// CodigoLlave: mu.CodigoLlave,
|
|
14703
|
+
// Codigo: mu.Codigo,
|
|
14709
14704
|
Cantidad: mu.Cantidad
|
|
14710
14705
|
});
|
|
14711
14706
|
}
|
|
@@ -15179,6 +15174,16 @@ function formatCurrencyV1(num, maximumFractionDigits = 2, symbol = "$") {
|
|
|
15179
15174
|
}
|
|
15180
15175
|
__name(formatCurrencyV1, "formatCurrencyV1");
|
|
15181
15176
|
|
|
15177
|
+
// src/shared/Utils/formatPercentageV1.ts
|
|
15178
|
+
function formatPercentageV1(num, maximumFractionDigits = 2) {
|
|
15179
|
+
const options = {
|
|
15180
|
+
minimumFractionDigits: 0,
|
|
15181
|
+
maximumFractionDigits
|
|
15182
|
+
};
|
|
15183
|
+
return new Intl.NumberFormat("es-ES", options).format(num) + " %";
|
|
15184
|
+
}
|
|
15185
|
+
__name(formatPercentageV1, "formatPercentageV1");
|
|
15186
|
+
|
|
15182
15187
|
// src/Programados/Procesos/Preliquidar/ObtenerPrecioContratistaVigente.ts
|
|
15183
15188
|
function ObtenerPrecioContratistaVigente({ actividad, FechaVerificar }) {
|
|
15184
15189
|
const fechaVerificar = new Date(FechaVerificar);
|
|
@@ -15326,6 +15331,7 @@ export {
|
|
|
15326
15331
|
esObjetoFecha,
|
|
15327
15332
|
formatCurrencyV1,
|
|
15328
15333
|
formatNumberSmart,
|
|
15334
|
+
formatPercentageV1,
|
|
15329
15335
|
generateUniqueNumber,
|
|
15330
15336
|
generateUniqueNumberArray,
|
|
15331
15337
|
getChannelName,
|