/[openfoncier]/trunk/sql/pgsql/demande.inc.php
ViewVC logotype

Diff of /trunk/sql/pgsql/demande.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1037 by vpihour, Mon Dec 10 16:56:38 2012 UTC revision 1038 by vpihour, Tue Dec 11 10:26:42 2012 UTC
# Line 24  $table = DB_PREFIXE."demande Line 24  $table = DB_PREFIXE."demande
24      LEFT JOIN ".DB_PREFIXE."instruction      LEFT JOIN ".DB_PREFIXE."instruction
25          ON demande.instruction_recepisse=instruction.instruction ";          ON demande.instruction_recepisse=instruction.instruction ";
26    
27    $case_demandeur = "CASE WHEN demandeur.qualite='particulier'
28    THEN TRIM(CONCAT(demandeur.particulier_nom, ' ', demandeur.particulier_prenom))
29    ELSE TRIM(CONCAT(demandeur.personne_morale_raison_sociale, ' ', demandeur.personne_morale_denomination))
30    END";
31    
32  // SELECT  // SELECT
33  $champAffiche = array(  $champAffiche = array(
34      'demande.demande as "'._("demande").'"',      'demande.demande as "'._("demande").'"',
35      'COALESCE(demandeur.particulier_nom, demandeur.personne_morale_denomination) as "'._("petitionaire principal").'"',      $case_demandeur.' as "'._("petitionaire principal").'"',
36      'TRIM(CONCAT(demande.terrain_adresse_voie_numero,\' \',      'TRIM(CONCAT(demande.terrain_adresse_voie_numero,\' \',
37          demande.complement,\' \',          demande.complement,\' \',
38          demande.terrain_adresse_lieu_dit,\' \',          demande.terrain_adresse_lieu_dit,\' \',
# Line 65  $champs['adresse'] = array( Line 70  $champs['adresse'] = array(
70          'terrain_adresse_localite', 'terrain_adresse_bp',          'terrain_adresse_localite', 'terrain_adresse_bp',
71          'terrain_adresse_cedex'),          'terrain_adresse_cedex'),
72      'type' => 'text',      'type' => 'text',
73      'libelle' => _('terrain'));      'libelle' => _('adresse'));
74    
75  $champs['arrondissement'] =  $champs['arrondissement'] =
76      array('colonne' => 'arrondissement',      array('colonne' => 'arrondissement',

Legend:
Removed from v.1037  
changed lines
  Added in v.1038

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26