Conjunto 60aa084 en sipes
- Fecha y hora:
- 11/09/2019 13:51:59 (hace 5 años)
- Branches:
- stable
- Children:
- b9d4e2e
- Parents:
- 11b6d1c
- Fichero:
-
- 1 editado
Leyenda
- No modificado
- Añadido
- Eliminado
-
0.3-modules/proyectos_operativos/proyectos_operativos.module
rbce0d38 r60aa084 146 146 $result = db_query("SELECT ente FROM {proyectos_operativos} WHERE nid = %d", $node->nid); 147 147 $proyectos_operativos = db_fetch_array($result); 148 //print_r($proyectos_operativos);149 148 if ($proyectos_operativos && $proyectos_operativos['ente'] != $node->field_proyecto_ente[0]['nid']){ 150 149 db_query('update {proyectos_operativos} set ente = %d WHERE nid = %d', $node->field_proyecto_ente[0]['nid'], $node->nid); … … 318 317 //END RECONVERSION MONETARIA GET SENTTINGS 319 318 319 $format_number = array( 320 'decimals' => variable_get('proyectos_operativos_number_decimals', 0), 321 'dec_point' => variable_get('proyectos_operativos_number_dec_point', ','), 322 'thousands_sep' => variable_get('proyectos_operativos_number_thousands_sep', '.'), 323 ); 324 $min = $partidas_nodo[$tid][$id_field]; 320 325 //CHANGE THE VALUE OF FIELD 321 326 if ($years2 = variable_get('proyectos_operativos_anho_decimales_reconversion')) { … … 328 333 ); 329 334 // se divide entre 100.000 y se le dejan 6 decimales 330 $min = $partidas_nodo[$tid][$id_field];331 335 $min = round(($min/100000),6); 332 333 if (!isset($plant[$tid])) {334 $plant[$tid] = 0;335 }336 $totalT += $min;337 $plant[$tid] += $min;338 $total += $min;339 $sumaplan += $min;340 if (!isset($sumaplanm[$id_field])) {341 $sumaplanm[$id_field] = 0;342 }343 $sumaplanm[$id_field] += $min;344 $row[] = array('data' => number_format($min, $format_number['decimals'], $format_number['dec_point'], $format_number['thousands_sep']), );345 336 } 346 337 } 347 //END CHANGE THE VALUE OF FIELD 348 else{ 349 $format_number = array( 350 'decimals' => variable_get('proyectos_operativos_number_decimals', 0), 351 'dec_point' => variable_get('proyectos_operativos_number_dec_point', ','), 352 'thousands_sep' => variable_get('proyectos_operativos_number_thousands_sep', '.'), 353 ); 354 $min = $partidas_nodo[$tid][$id_field]; 355 if (!isset($plant[$tid])) { 356 $plant[$tid] = 0; 357 } 358 $totalT += $min; 359 $plant[$tid] += $min; 360 $total += $min; 361 $sumaplan += $min; 362 if (!isset($sumaplanm[$id_field])) { 363 $sumaplanm[$id_field] = 0; 364 } 365 $sumaplanm[$id_field] += $min; 366 $row[] = array('data' => number_format($min, $format_number['decimals'], $format_number['dec_point'], $format_number['thousands_sep']), ); 338 339 if (!isset($plant[$tid])) { 340 $plant[$tid] = 0; 367 341 } 342 $totalT += $min; 343 $plant[$tid] += $min; 344 $total += $min; 345 $sumaplan += $min; 346 if (!isset($sumaplanm[$id_field])) { 347 $sumaplanm[$id_field] = 0; 348 } 349 350 $sumaplanm[$id_field] += $min; 351 $row[] = array('data' => number_format($min, $format_number['decimals'], $format_number['dec_point'], $format_number['thousands_sep']), ); 368 352 } 369 353 $row[] = array('data' => number_format($plant[$tid], $format_number['decimals'], $format_number['dec_point'], $format_number['thousands_sep']), ); … … 1469 1453 $texto = t('Se elimino la acción especifica @nombre', array('@nombre' => $ac->titulo_asignado)); 1470 1454 $proyecto->log = $texto; 1471 //print "<pre>";print_r($proyecto);print "</pre>";1472 //juan();1473 //drupal_set_message("<pre>". print_r($proyecto, 1). "</pre>");1474 1455 node_save($proyecto); 1475 1456 drupal_set_message($texto); … … 4962 4943 //END CHANGE THE VALUE OF FIELD RECONVERSION MONETARIA 4963 4944 4964 4965 4945 //se construye la tabla de monto a financiar por acciones especificas 4966 4946 $header = array();
Nota: Vea TracChangeset
para ayuda en el uso del visor de conjuntos de cambios.