dmencu 0.4.5 → 0.4.7

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.
@@ -2112,12 +2112,10 @@ setCalcularVariables((respuestasRaiz:RespuestasRaiz, forPk:ForPk)=>{
2112
2112
  })
2113
2113
  respuestasRaiz.vdominio=getDatosByPass().informacionHdr[forPk.vivienda].tem.dominio;
2114
2114
  //TODO: MEJORAR EN ALGUN MOMENTO EL BOTON LISTO
2115
- if(forPk.formulario == "F:RE" as IdFormulario){
2116
- respuestasRaiz['$B.F:S1' as IdVariable] = 'ok';
2117
- }
2118
- if(forPk.formulario == "F:RE_SUP" as IdFormulario){
2119
- respuestasRaiz['$B.F:S1_SUP' as IdVariable] = 'ok';
2120
- }
2115
+ let totalH = respuestasRaiz['total_h' as IdVariable];
2116
+ respuestasRaiz['$B.F:S1' as IdVariable] = (respuestasRaiz['hogares'] || []).length == totalH?'ok':null;
2117
+ let totalHsup = respuestasRaiz['total_h_sup' as IdVariable];
2118
+ respuestasRaiz['$B.F:S1_SUP' as IdVariable] = (respuestasRaiz['hogares_sup' as IdUnidadAnalisis] || []).length == totalHsup?'ok':null;
2121
2119
  })
2122
2120
 
2123
2121
  window.addEventListener('load', function(){
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dmencu",
3
3
  "description": "DM Encu - Encuestas en dispositivo móvil",
4
- "version": "0.4.5",
4
+ "version": "0.4.7",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "main": "dist/server/server/app-dmencu.js",