-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renombra listado de beneficiarios por listado de poblacion vinculada …
…y presenta misma informacion de HTML. Closes #265
- Loading branch information
Showing
10 changed files
with
124 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<% s = ::Aporte.where(persona_id: registro.id).sum(:valor) %> | ||
<%= s.a_decimal_localizado %> | ||
<--% s = ::Aporte.where(persona_id: registro.id).sum(:valor) %--> | ||
<%= registro.aportes.a_decimal_localizado %> |
2 changes: 1 addition & 1 deletion
2
app/views/msip/personas/_index_campo_familiarvictima_ids.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<%= registro.como_familiar_de_victima.count %> | ||
<%= registro.cuenta_familiar_victima %> |
19 changes: 19 additions & 0 deletions
19
db/migrate/20240423155529_renombra_plantilla_beneficiarios.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class RenombraPlantillaBeneficiarios < ActiveRecord::Migration[7.1] | ||
def up | ||
execute <<-SQL | ||
UPDATE heb412_gen_plantillahcm | ||
SET nombremenu = 'Listado de población vinculada', | ||
ruta='plantillas/listado_poblacion_vinculada.ods' | ||
WHERE id=102; | ||
SQL | ||
end | ||
def down | ||
execute <<-SQL | ||
UPDATE heb412_gen_plantillahcm | ||
SET nombremenu = 'Listado de beneficiarios', | ||
ruta='plantillas/listado_beneficiarios.ods' | ||
WHERE id=102; | ||
SQL | ||
end | ||
|
||
end |
37 changes: 37 additions & 0 deletions
37
db/migrate/20240423162050_amplia_listado_poblacion_vinculada.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
class AmpliaListadoPoblacionVinculada < ActiveRecord::Migration[7.1] | ||
def up | ||
execute <<-SQL | ||
UPDATE heb412_gen_campoplantillahcm SET columna='F', | ||
nombrecampo='fechanac_localizada' | ||
WHERE id=535; --Fecha de nacimiento en F | ||
UPDATE heb412_gen_campoplantillahcm SET columna='G' | ||
WHERE id=534; --Sexo en G | ||
SQL | ||
Heb412Gen::PlantillaHelper.inserta_columna(102, 560, 'M', 'etiquetas') | ||
Heb412Gen::PlantillaHelper.inserta_columna(102, 561, 'N', 'cuenta_actividades') | ||
Heb412Gen::PlantillaHelper.inserta_columna(102, 562, 'O', 'cuenta_casos') | ||
Heb412Gen::PlantillaHelper.inserta_columna(102, 563, 'P', 'cuenta_familiar_victima') | ||
Heb412Gen::PlantillaHelper.inserta_columna(102, 564, 'Q', 'tipoaliado') | ||
Heb412Gen::PlantillaHelper.inserta_columna(102, 565, 'R', 'ultimo_aporte') | ||
Heb412Gen::PlantillaHelper.inserta_columna(102, 566, 'S', 'aportes') | ||
end | ||
|
||
def down | ||
Heb412Gen::PlantillaHelper.elimina_columna(102, 566) | ||
Heb412Gen::PlantillaHelper.elimina_columna(102, 565) | ||
Heb412Gen::PlantillaHelper.elimina_columna(102, 564) | ||
Heb412Gen::PlantillaHelper.elimina_columna(102, 563) | ||
Heb412Gen::PlantillaHelper.elimina_columna(102, 562) | ||
Heb412Gen::PlantillaHelper.elimina_columna(102, 561) | ||
Heb412Gen::PlantillaHelper.elimina_columna(102, 560) | ||
|
||
execute <<-SQL | ||
UPDATE heb412_gen_campoplantillahcm SET columna='G', | ||
nombrecampo='fechanac' | ||
WHERE id=535; --Fecha de nacimiento en G | ||
UPDATE heb412_gen_campoplantillahcm SET columna='F' | ||
WHERE id=534; --Sexo en F | ||
SQL | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.