X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/e9a6b33cd9b4cce840ddf9f30ca41b09a0a60bc0..7b6146c2dacb775a73ca9f78280499f9957da8ca:/lib/MECON/Agente.php diff --git a/lib/MECON/Agente.php b/lib/MECON/Agente.php index f28bc70..c80cad7 100644 --- a/lib/MECON/Agente.php +++ b/lib/MECON/Agente.php @@ -166,7 +166,9 @@ class Agente { */ function getCuil()// ~X2C { - trigger_error('Not implemented!', E_USER_WARNING); + $aux = $this->datos['cuil']; + $aux = preg_replace('/(\d{2})(\d*)(\d{1})/','$1-$2-$3',$aux); + return $aux; } // -X2C @@ -178,11 +180,12 @@ class Agente { function getOtrosDatos()// ~X2C { if(!is_null($this->datos['tipo_agente'])) { + $aux['tipo_doc'] = $this->datos['tipodoc']; $aux['fecha_nac'] = $this->datos['fecha_nac']; $aux['edad'] = $this->datos['edad']; $aux['estado_civil'] = $this->datos['estado_civil']; $aux['domicilio'] = $this->datos['domicilio']; - $aux['puerta'] = $this->datos['puerta']; + $aux['puerta'] = $this->datos['num_puerta']; $aux['piso'] = $this->datos['piso']; $aux['depto'] = $this->datos['depto']; $aux['localidad'] = $this->datos['localidad'];