Skip to content

Commit

Permalink
Fiche parcelle - correctifs sur les champs date
Browse files Browse the repository at this point in the history
  • Loading branch information
mdouchin committed Jan 3, 2019
1 parent 817b06e commit 23eec8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions templates/parcelle_info_locaux.sql
Expand Up @@ -22,8 +22,8 @@ FROM (
'<td>' || dteloc_lib || '</td>' ||
'<td>' || cconlc_lib || '</td>' ||
'<td>' || dnatlc_lib || '</td>' ||
'<td>' || COALESCE(l10.jdatat, '') || '</td>' ||
'<td>' || Coalesce(l10.jannat, '') || '</td>' ||
'<td>' || COALESCE(cast(l10.jdatat AS text), '') || '</td>' ||
'<td>' || Coalesce(cast(l10.jannat AS text), '') || '</td>' ||
'<td>' ||
trim(coalesce(pr.dqualp, '')) || ' ' ||
CASE WHEN trim(pr.dnomus) != trim(pr.dnomlp) THEN Coalesce( trim(pr.dnomus) || '/' || trim(pr.dprnus) || ', née ', '' ) ELSE '' END ||
Expand Down
2 changes: 1 addition & 1 deletion templates/parcelle_info_parcelle_majic.sql
Expand Up @@ -3,7 +3,7 @@ SELECT
'<table class="table table-condensed table-striped" border=1 cellspacing=0 cellpadding=3>' ||
'<tr><th>Code</th> <td>' || ccosec || dnupla || '</td></tr>' ||
'<tr><th>Commune</th> <td>' || c.libcom || '</td></tr>' ||
'<tr><th>Date de l''acte</th> <td>' || COALESCE(p.jdatat, '') || '</td></tr>' ||
'<tr><th>Date de l''acte</th> <td>' || COALESCE(Cast(p.jdatat AS text), '') || '</td></tr>' ||
'<tr><th>Surface cadastrale (contenance)</th> <td>' || p.dcntpa || ' m²</td></tr>' ||
'<tr><th>Surface géographique</th> <td>' || round(ST_Area(gp.geom)) || ' m²</td></tr>' ||
'<tr><th>Surface bâtie</th><td>' || coalesce(sum(round(ST_Area(b.geom))), 0) || ' m²</td></tr>' ||
Expand Down

0 comments on commit 23eec8d

Please sign in to comment.