sigo-package 1.2.173 → 1.2.174
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.js +6 -5
- package/dist/index.mjs +6 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -15987,10 +15987,10 @@ var MapeoEspecialidades9612 = [
|
|
|
15987
15987
|
// src/Programados/BuscarZonaContratista.ts
|
|
15988
15988
|
function BuscarZonaContratista(EmpresaContratistaEnPrecioEspecialidad, Obra, ZonaAsignada) {
|
|
15989
15989
|
const zonaSearchMapping = {
|
|
15990
|
-
"512": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Descripcion.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "512"),
|
|
15991
|
-
"004": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Descripcion.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "004"),
|
|
15992
|
-
"480": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Codigo.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "480"),
|
|
15993
|
-
"504": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Codigo.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "504")
|
|
15990
|
+
"512": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Descripcion?.trim().toUpperCase() === ZonaAsignada?.trim().toUpperCase() && e.Estado.ID_Estado === 1), "512"),
|
|
15991
|
+
"004": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Descripcion?.trim().toUpperCase() === ZonaAsignada?.trim().toUpperCase() && e.Estado.ID_Estado === 1), "004"),
|
|
15992
|
+
"480": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Codigo?.trim().toUpperCase() === ZonaAsignada?.trim().toUpperCase() && e.Estado.ID_Estado === 1), "480"),
|
|
15993
|
+
"504": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Codigo?.trim().toUpperCase() === ZonaAsignada?.trim().toUpperCase() && e.Estado.ID_Estado === 1), "504")
|
|
15994
15994
|
};
|
|
15995
15995
|
return zonaSearchMapping[Obra.Pais.Codigo]();
|
|
15996
15996
|
}
|
|
@@ -16139,7 +16139,8 @@ function ObtenerZonaAsignada(Obra) {
|
|
|
16139
16139
|
"480": Obra.Ubicacion.Municipio,
|
|
16140
16140
|
"504": Obra.ZonaAsignada
|
|
16141
16141
|
};
|
|
16142
|
-
|
|
16142
|
+
const zona = zonaMapping[Obra.Pais?.Codigo] ? zonaMapping[Obra.Pais?.Codigo] : Obra.ZonaAsignada;
|
|
16143
|
+
return typeof zona === "string" ? zona.trim() : zona || "";
|
|
16143
16144
|
}
|
|
16144
16145
|
__name(ObtenerZonaAsignada, "ObtenerZonaAsignada");
|
|
16145
16146
|
|
package/dist/index.mjs
CHANGED
|
@@ -15804,10 +15804,10 @@ var MapeoEspecialidades9612 = [
|
|
|
15804
15804
|
// src/Programados/BuscarZonaContratista.ts
|
|
15805
15805
|
function BuscarZonaContratista(EmpresaContratistaEnPrecioEspecialidad, Obra, ZonaAsignada) {
|
|
15806
15806
|
const zonaSearchMapping = {
|
|
15807
|
-
"512": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Descripcion.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "512"),
|
|
15808
|
-
"004": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Descripcion.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "004"),
|
|
15809
|
-
"480": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Codigo.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "480"),
|
|
15810
|
-
"504": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Codigo.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "504")
|
|
15807
|
+
"512": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Descripcion?.trim().toUpperCase() === ZonaAsignada?.trim().toUpperCase() && e.Estado.ID_Estado === 1), "512"),
|
|
15808
|
+
"004": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Descripcion?.trim().toUpperCase() === ZonaAsignada?.trim().toUpperCase() && e.Estado.ID_Estado === 1), "004"),
|
|
15809
|
+
"480": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Codigo?.trim().toUpperCase() === ZonaAsignada?.trim().toUpperCase() && e.Estado.ID_Estado === 1), "480"),
|
|
15810
|
+
"504": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Codigo?.trim().toUpperCase() === ZonaAsignada?.trim().toUpperCase() && e.Estado.ID_Estado === 1), "504")
|
|
15811
15811
|
};
|
|
15812
15812
|
return zonaSearchMapping[Obra.Pais.Codigo]();
|
|
15813
15813
|
}
|
|
@@ -15956,7 +15956,8 @@ function ObtenerZonaAsignada(Obra) {
|
|
|
15956
15956
|
"480": Obra.Ubicacion.Municipio,
|
|
15957
15957
|
"504": Obra.ZonaAsignada
|
|
15958
15958
|
};
|
|
15959
|
-
|
|
15959
|
+
const zona = zonaMapping[Obra.Pais?.Codigo] ? zonaMapping[Obra.Pais?.Codigo] : Obra.ZonaAsignada;
|
|
15960
|
+
return typeof zona === "string" ? zona.trim() : zona || "";
|
|
15960
15961
|
}
|
|
15961
15962
|
__name(ObtenerZonaAsignada, "ObtenerZonaAsignada");
|
|
15962
15963
|
|
package/package.json
CHANGED