commit
d07c5ae49f
@ -673,7 +673,7 @@ function dol_get_fiche_end($notab=0)
|
||||
function dol_format_address($object)
|
||||
{
|
||||
$ret='';
|
||||
$countriesusingstate=array('US','IN','GB');
|
||||
$countriesusingstate=array('US','IN','GB','ES');
|
||||
|
||||
// Address
|
||||
$ret .= $object->address;
|
||||
@ -696,6 +696,16 @@ function dol_format_address($object)
|
||||
}
|
||||
if ($object->zip) $ret .= ($ret ? "\n" : '' ).$object->zip;
|
||||
}
|
||||
else if (in_array($object->country_code,array('ES'))) // title firstname name \n address lines \n zip town \n state \n country
|
||||
{
|
||||
$ret .= ($ret ? "\n" : '' ).$object->zip;
|
||||
$ret .= ' '.$object->town;
|
||||
if ($object->state && in_array($object->country_code,$countriesusingstate))
|
||||
{
|
||||
$ret.="\n".$object->state;
|
||||
}
|
||||
}
|
||||
|
||||
else // Other: title firstname name \n address lines \n zip town \n country
|
||||
{
|
||||
$ret .= ($ret ? "\n" : '' ).$object->zip;
|
||||
|
||||
@ -265,7 +265,8 @@ function pdf_build_address($outputlangs,$sourcecompany,$targetcompany='',$target
|
||||
if ($mode == 'target' && ! is_object($targetcompany)) return -1;
|
||||
if ($mode == 'delivery' && ! is_object($deliverycompany)) return -1;
|
||||
|
||||
if (! empty($sourcecompany->state_id) && empty($sourcecompany->departement)) $sourcecompany->departement=getState($sourcecompany->state_id);
|
||||
if (! empty($sourcecompany->state_id) && empty($sourcecompany->departement)) $sourcecompany->departement=getState($sourcecompany->state_id); //TODO: Deprecated
|
||||
if (! empty($sourcecompany->state_id) && empty($sourcecompany->state)) $sourcecompany->state=getState($sourcecompany->state_id);
|
||||
if (! empty($targetcompany->state_id) && empty($targetcompany->departement)) $targetcompany->departement=getState($targetcompany->state_id);
|
||||
|
||||
if ($mode == 'source')
|
||||
|
||||
@ -960,7 +960,7 @@ NotificationsDesc=La funció de les notificacions permet enviar automàticament
|
||||
ModelModules=Models de documents
|
||||
DocumentModelOdt=Generació des dels documents amb format OpenDocument (Arxiu .ODT OpenOffice, KOffice, TextEdit,...)
|
||||
WatermarkOnDraft=Marca d'aigua en els documents esborrany
|
||||
CompanyIdProfChecker=Id Professional únic
|
||||
CompanyIdProfChecker=Règles sobre els ID professionals
|
||||
MustBeUnique=Ha de ser únic?
|
||||
MustBeMandatory=Ha de ser obligatori?
|
||||
Miscellanous=Miscel·lània
|
||||
|
||||
@ -962,7 +962,7 @@ NotificationsDesc=La función de las notificaciones permite enviar automáticame
|
||||
ModelModules=Modelos de documentos
|
||||
DocumentModelOdt=Generación desde los documentos OpenDocument (Archivo .ODT OpenOffice, KOffice, TextEdit,...)
|
||||
WatermarkOnDraft=Marca de agua en los documentos borrador
|
||||
CompanyIdProfChecker=Id Profesional único
|
||||
CompanyIdProfChecker=Reglas sobre los ID profesionales
|
||||
MustBeUnique=¿Debe ser único?
|
||||
MustBeMandatory=¿Debe ser obligatorio?
|
||||
Miscellanous=Miscelánea
|
||||
|
||||
@ -91,7 +91,7 @@ LastDayOfHoliday=Último día libre
|
||||
ConfCP=Configuración del módulo Vacaciones
|
||||
DescOptionCP=Descripción de la opción
|
||||
ValueOptionCP=Valor
|
||||
GroupToValidateCP=Grupo con posibilidad de validar las vacaciones
|
||||
GroupToValidateCP=Grupo con posibilidad de aprobar las vacaciones
|
||||
ConfirmConfigCP=Validar la configuración
|
||||
LastUpdateCP=Última actualización automática de vacaciones
|
||||
UpdateConfCPOK=Actualización efectuada correctamente.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user