Bienvenido a los foros %s

Foro comunidad hispana Dolibarr

Identificarse Registrarse

SOLUCION PARA COLOCAR EL RIF -VENEZUELA

jagmediaserviciosca
Novato
Mensajes: 1
Registrado: Mar, 11/07/2023, 17:42
Ubicación: Aragua, Maracay

SOLUCION PARA COLOCAR EL RIF -VENEZUELA

Mensaje por jagmediaserviciosca »

AQUI LES DEJO EL TUTOTIAL
PARA CAMBIAR ID PROFESIONAL 1 A RIF

DEBE ENTRA A C:\dolibarr\www\dolibarr\htdocs\langs\es_VE\commercial.lang

CAMBIAR LA LINEA 10 ProfId2ShortCM=R.I.F. A ProfId2ShortVE=R.I.F.
CAMBIAR LA LINEAA 11 ProfId1VE=CI/ RIF A ProfId1VE=CI/ RIF
CAMBIAR LA LINEA 21 ProfId2MX=Registro Patronal A IVSS ProfId2VE=Registro Patronal IVSS



AGREGAR EN C:\dolibarr\www\dolibarr\htdocs\core\class\html.formcompany.class

EN LA LINEA 943


Código: Seleccionar todo

elseif ($country_code == 'VE') {
				if ($idprof == 1) {
					$formlength = 10; //RIF 10 digits
				}
				if ($idprof == 2) {
					$formlength = 12; //SEGURO SOCIAL 12 digits without /
				}
			}
DEBE CAMBIAR C:\dolibarr\www\dolibarr\htdocs\societe\class\societe.class
AGREGAR EN LA LINEA 3888

Código: Seleccionar todo

if ($idprof == 1 && $thirdparty->country_code == 'VE') {
				$url = 'http://contribuyente.seniat.gob.ve/getContribuyente/getrif?rif='.$strippedIdProf1;
			}
AGREGAR EN LA LINEA 3812

Código: Seleccionar todo

//Verify RIF/ if pays VE
		//Returns: 1 if RIF ok,  -1 if RIF bad
		if ($idprof == 1 && $soc->country_code == 'VE') {
			$string = trim($this->idprof1);
			$string = preg_replace('/(\s)/', '', $string);
			$string = strtoupper($string);

			//Check format
			if (preg_match('/(^[J,G,V,E]{1}[0-9]{9}$)/', $string)) {
				return 1;
			}else{
				return -1;
			}

		}
JAG-MEDIA SERVICIOS, C.A
jagmediaserviciosca@gmail.com / (+58) 412-898.04.09