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 /
}
}
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;
}
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;
}
}