From 7b6146c2dacb775a73ca9f78280499f9957da8ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Sklar?= Date: Mon, 14 Jul 2003 18:16:18 +0000 Subject: [PATCH] Implemente la funcion getCuil() del objeto agente. --- lib/MECON/Agente.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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']; -- 2.43.0