X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/8643737b4ccdd6e32a99f4626854a84f77d47fd9..6633d763d3bc4797857a2b62ccad3a90f765da9f:/lib/MECON/Agente.php diff --git a/lib/MECON/Agente.php b/lib/MECON/Agente.php index 01f7e96..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,6 +180,7 @@ 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'];