issue #0001372 : Adresse Personne Physique

This commit is contained in:
Michael RICOIS 2012-10-24 12:55:26 +00:00
parent 3ab521c33e
commit 76a9bced55
3 changed files with 46 additions and 2 deletions

View File

@ -1658,10 +1658,11 @@ class SaisieController extends Zend_Controller_Action
$params['PpPm'] = 'PM'; $params['PpPm'] = 'PM';
//Personne physique //Personne Physique
if ($params['pp']==1) { if ($params['pp']==1) {
$params['PpPm'] = 'PP'; $params['PpPm'] = 'PP';
$params['RS'] = ''; $params['RS'] = '';
//Personne Morale
} elseif (!empty($params['siren'])) { } elseif (!empty($params['siren'])) {
$params['RS'] = $params['nom']; $params['RS'] = $params['nom'];
$params['civilite'] = ''; $params['civilite'] = '';

View File

@ -141,7 +141,7 @@ $('a.lienfiche').each(function(){
my: "bottom left", my: "bottom left",
at: "top right" at: "top right"
}, },
hide: { event: 'unfocus' } show: { solo: true }
}); });
}); });
</script> </script>

View File

@ -35,3 +35,46 @@
</select> </select>
</div> </div>
</div> </div>
<div class="fieldgrp">
<label>Adresse</label>
<div class="field">
<input type="text" name="adresse_num" size="4"/>
<input type="text" name="adresse_btq" size="1"/>
<input type="text" name="adresse_codvoie" size="4"/>
<input type="text" name="adresse_libvoie" size="32"/>
</div>
</div>
<div class="fieldgrp">
<label>Adresse complément</label>
<div class="field">
<input type="text" name="adresse_comp" size="40"/>
</div>
</div>
<div class="fieldgrp">
<label>CP</label>
<div class="field">
<input type="text" name="adresse_cp"/>
</div>
</div>
<div class="fieldgrp">
<label>Ville</label>
<div class="field">
<input type="text" name="adresse_ville"/>
</div>
</div>
<div class="fieldgrp">
<label>Pays</label>
<div class="field">
<select name="adresse_pays">
<option value="">-</option>
<?php foreach($this->countries as $code => $lib) {?>
<option value="<?=$code?>"><?=$lib?></option>
<?php }?>
</select>
</div>
</div>