';
// Name
- print ''.$langs->trans('ThirdPartyName').' ';
+ print ''.$langs->trans('ThirdPartyName').' ';
// Prefix
if (! empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field
{
print ''.$langs->trans("Prefix").' ';
// It does not change the prefix mode using the auto numbering prefix
- if (($prefixCustomerIsUsed || $prefixSupplierIsUsed) && $soc->prefix_comm)
+ if (($prefixCustomerIsUsed || $prefixSupplierIsUsed) && $object->prefix_comm)
{
- print ' ';
- print $soc->prefix_comm;
+ print ' ';
+ print $object->prefix_comm;
}
else
{
- print ' ';
+ print ' ';
}
print ' ';
}
// Prospect/Customer
print ''.$langs->trans('ProspectCustomer').' ';
- if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) print 'client==2?' selected="selected"':'').'>'.$langs->trans('Prospect').' ';
- if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) print 'client==3?' selected="selected"':'').'>'.$langs->trans('ProspectCustomer').' ';
- print 'client==1?' selected="selected"':'').'>'.$langs->trans('Customer').' ';
- print 'client==0?' selected="selected"':'').'>'.$langs->trans('NorProspectNorCustomer').' ';
+ if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) print 'client==2?' selected="selected"':'').'>'.$langs->trans('Prospect').' ';
+ if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) print 'client==3?' selected="selected"':'').'>'.$langs->trans('ProspectCustomer').' ';
+ print 'client==1?' selected="selected"':'').'>'.$langs->trans('Customer').' ';
+ print 'client==0?' selected="selected"':'').'>'.$langs->trans('NorProspectNorCustomer').' ';
print ' ';
print ''.$langs->trans('CustomerCode').' ';
print '';
@@ -1218,44 +1220,44 @@ else
{
print ' ';
print ''.$langs->trans('Supplier').' ';
- print $form->selectyesno("fournisseur",$soc->fournisseur,1);
+ print $form->selectyesno("fournisseur",$object->fournisseur,1);
print ' ';
print ''.$langs->trans('SupplierCode').' ';
print '';
print ' ';
// Category
- if ($conf->categorie->enabled && $soc->fournisseur)
+ if ($conf->categorie->enabled && $object->fournisseur)
{
- $load = $soc->LoadSupplierCateg();
+ $load = $object->LoadSupplierCateg();
if ( $load == 0)
{
- if (sizeof($soc->SupplierCategories) > 0)
+ if (sizeof($object->SupplierCategories) > 0)
{
print '';
print ''.$langs->trans('SupplierCategory').' ';
- print $form->selectarray("fournisseur_categorie",$soc->SupplierCategories,'',1);
+ print $form->selectarray("fournisseur_categorie",$object->SupplierCategories,'',1);
print ' ';
}
}
@@ -1264,31 +1266,31 @@ else
// Status
print ''.$langs->trans("Status").' ';
- print $form->selectarray('status', array('0'=>$langs->trans('ActivityCeased'),'1'=>$langs->trans('InActivity')),$soc->status);
+ print $form->selectarray('status', array('0'=>$langs->trans('ActivityCeased'),'1'=>$langs->trans('InActivity')),$object->status);
print ' ';
// Barcode
if ($conf->global->MAIN_MODULE_BARCODE)
{
- print ''.$langs->trans('Gencod').' ';
+ print ''.$langs->trans('Gencod').' ';
print ' ';
}
// Address
print ''.$langs->trans('Address').' ';
// Zip / Town
print ''.$langs->trans('Zip').' ';
- print $formcompany->select_ziptown($soc->cp,'zipcode',array('town','selectpays_id','departement_id'),6);
+ print $formcompany->select_ziptown($object->cp,'zipcode',array('town','selectpays_id','departement_id'),6);
print ' '.$langs->trans('Town').' ';
- print $formcompany->select_ziptown($soc->ville,'town',array('zipcode','selectpays_id','departement_id'));
+ print $formcompany->select_ziptown($object->ville,'town',array('zipcode','selectpays_id','departement_id'));
print ' ';
// Country
print ''.$langs->trans('Country').' ';
- $form->select_pays($soc->pays_id,'pays_id');
+ $form->select_pays($object->pays_id,'pays_id');
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
print ' ';
@@ -1296,54 +1298,54 @@ else
if (empty($conf->global->SOCIETE_DISABLE_STATE))
{
print ''.$langs->trans('State').' ';
- $formcompany->select_departement($soc->departement_id,$soc->pays_code);
+ $formcompany->select_departement($object->departement_id,$object->pays_code);
print ' ';
}
// Phone / Fax
- print ''.$langs->trans('Phone').' ';
- print ''.$langs->trans('Fax').' ';
+ print ''.$langs->trans('Phone').' ';
+ print ''.$langs->trans('Fax').' ';
// EMail / Web
- print ''.$langs->trans('EMail').($conf->global->SOCIETE_MAIL_REQUIRED?'*':'').' ';
- print ''.$langs->trans('Web').' ';
+ print ''.$langs->trans('EMail').($conf->global->SOCIETE_MAIL_REQUIRED?'*':'').' ';
+ print ''.$langs->trans('Web').' ';
print '';
// IdProf1 (SIREN for France)
- $idprof=$langs->transcountry('ProfId1',$soc->pays_code);
+ $idprof=$langs->transcountry('ProfId1',$object->pays_code);
if ($idprof!='-')
{
print ''.$idprof.' ';
- print $formcompany->get_input_id_prof(1,'idprof1',$soc->siren,$soc->pays_code);
+ print $formcompany->get_input_id_prof(1,'idprof1',$object->siren,$object->pays_code);
print ' ';
}
else print ' ';
// IdProf2 (SIRET for France)
- $idprof=$langs->transcountry('ProfId2',$soc->pays_code);
+ $idprof=$langs->transcountry('ProfId2',$object->pays_code);
if ($idprof!='-')
{
print ''.$idprof.' ';
- print $formcompany->get_input_id_prof(2,'idprof2',$soc->siret,$soc->pays_code);
+ print $formcompany->get_input_id_prof(2,'idprof2',$object->siret,$object->pays_code);
print ' ';
}
else print ' ';
print ' ';
print '';
// IdProf3 (APE for France)
- $idprof=$langs->transcountry('ProfId3',$soc->pays_code);
+ $idprof=$langs->transcountry('ProfId3',$object->pays_code);
if ($idprof!='-')
{
print ''.$idprof.' ';
- print $formcompany->get_input_id_prof(3,'idprof3',$soc->ape,$soc->pays_code);
+ print $formcompany->get_input_id_prof(3,'idprof3',$object->ape,$object->pays_code);
print ' ';
}
else print ' ';
// IdProf4 (NU for France)
- $idprof=$langs->transcountry('ProfId4',$soc->pays_code);
+ $idprof=$langs->transcountry('ProfId4',$object->pays_code);
if ($idprof!='-')
{
print ''.$idprof.' ';
- print $formcompany->get_input_id_prof(4,'idprof4',$soc->idprof4,$soc->pays_code);
+ print $formcompany->get_input_id_prof(4,'idprof4',$object->idprof4,$object->pays_code);
print ' ';
}
else print ' ';
@@ -1351,13 +1353,13 @@ else
// VAT payers
print ' '.$langs->trans('VATIsUsed').' ';
- print $form->selectyesno('assujtva_value',$soc->tva_assuj,1);
+ print $form->selectyesno('assujtva_value',$object->tva_assuj,1);
print ' ';
// VAT Code
print ''.$langs->trans('VATIntra').' ';
print '';
- $s =' ';
+ $s =' ';
if (empty($conf->global->MAIN_DISABLEVATCHECK))
{
@@ -1377,7 +1379,7 @@ else
}
else
{
- $s.='id_pays).'" target="_blank">'.img_picto($langs->trans("VATIntraCheckableOnEUSite"),'help').' ';
+ $s.='id_pays).'" target="_blank">'.img_picto($langs->trans("VATIntraCheckableOnEUSite"),'help').' ';
}
}
print $s;
@@ -1391,49 +1393,49 @@ else
if($mysoc->localtax1_assuj=="1" && $mysoc->localtax2_assuj=="1")
{
print ' '.$langs->trans("LocalTax1IsUsedES").' ';
- print $form->selectyesno('localtax1assuj_value',$soc->localtax1_assuj,1);
+ print $form->selectyesno('localtax1assuj_value',$object->localtax1_assuj,1);
print ' '.$langs->trans("LocalTax2IsUsedES").' ';
- print $form->selectyesno('localtax2assuj_value',$soc->localtax2_assuj,1);
+ print $form->selectyesno('localtax2assuj_value',$object->localtax2_assuj,1);
print ' ';
}
elseif($mysoc->localtax1_assuj=="1")
{
print ''.$langs->trans("LocalTax1IsUsedES").' ';
- print $form->selectyesno('localtax1assuj_value',$soc->localtax1_assuj,1);
+ print $form->selectyesno('localtax1assuj_value',$object->localtax1_assuj,1);
print ' ';
}
elseif($mysoc->localtax2_assuj=="1")
{
print ''.$langs->trans("LocalTax2IsUsedES").' ';
- print $form->selectyesno('localtax2assuj_value',$soc->localtax2_assuj,1);
+ print $form->selectyesno('localtax2assuj_value',$object->localtax2_assuj,1);
print ' ';
}
}
// Type - Size
print ''.$langs->trans("ThirdPartyType").' ';
- print $form->selectarray("typent_id",$formcompany->typent_array(0), $soc->typent_id);
+ print $form->selectarray("typent_id",$formcompany->typent_array(0), $object->typent_id);
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
print ' ';
print ''.$langs->trans("Staff").' ';
- print $form->selectarray("effectif_id",$formcompany->effectif_array(0), $soc->effectif_id);
+ print $form->selectarray("effectif_id",$formcompany->effectif_array(0), $object->effectif_id);
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
print ' ';
print ''.$langs->trans('JuridicalStatus').' ';
- $formcompany->select_forme_juridique($soc->forme_juridique_code,$soc->pays_code);
+ $formcompany->select_forme_juridique($object->forme_juridique_code,$object->pays_code);
print ' ';
// Capital
- print ''.$langs->trans("Capital").' '.$langs->trans("Currency".$conf->monnaie).' ';
+ print ''.$langs->trans("Capital").' '.$langs->trans("Currency".$conf->monnaie).' ';
// Default language
if ($conf->global->MAIN_MULTILANGS)
{
print ''.$langs->trans("DefaultLang").' '."\n";
- print $formadmin->select_language($soc->default_lang,'default_lang',0,0,1);
+ print $formadmin->select_language($object->default_lang,'default_lang',0,0,1);
print ' ';
print ' ';
}
@@ -1441,7 +1443,7 @@ else
// Other attributes
foreach($extrafields->attribute_label as $key=>$label)
{
- $value=(isset($_POST["options_$key"])?$_POST["options_$key"]:$soc->array_options["options_$key"]);
+ $value=(isset($_POST["options_$key"])?$_POST["options_$key"]:$object->array_options["options_$key"]);
print "".$label." ";
print $extrafields->showInputField($key,$value);
print " \n";
@@ -1451,13 +1453,13 @@ else
print '';
print ''.$langs->trans("Logo").' ';
print '';
- if ($soc->logo) print $form->showphoto('societe',$soc,50);
+ if ($object->logo) print $form->showphoto('societe',$object,50);
$caneditfield=1;
if ($caneditfield)
{
- if ($soc->logo) print " \n";
+ if ($object->logo) print " \n";
print '';
@@ -1482,14 +1484,14 @@ else
/*
* View
*/
- $soc = new Societe($db);
- $res=$soc->fetch($socid);
- if ($res < 0) { dol_print_error($db,$soc->error); exit; }
- $res=$soc->fetch_optionals($socid,$extralabels);
+ $object = new Societe($db);
+ $res=$object->fetch($socid);
+ if ($res < 0) { dol_print_error($db,$object->error); exit; }
+ $res=$object->fetch_optionals($socid,$extralabels);
if ($res < 0) { dol_print_error($db); exit; }
- $head = societe_prepare_head($soc);
+ $head = societe_prepare_head($object);
dol_fiche_head($head, 'card', $langs->trans("ThirdParty"),0,'company');
@@ -1500,7 +1502,7 @@ else
if ($action == 'delete' || $conf->use_javascript_ajax)
{
$html = new Form($db);
- $ret=$html->form_confirm($_SERVER["PHP_SELF"]."?socid=".$soc->id,$langs->trans("DeleteACompany"),$langs->trans("ConfirmDeleteCompany"),"confirm_delete",'',0,"action-delete");
+ $ret=$html->form_confirm($_SERVER["PHP_SELF"]."?socid=".$object->id,$langs->trans("DeleteACompany"),$langs->trans("ConfirmDeleteCompany"),"confirm_delete",'',0,"action-delete");
if ($ret == 'html') print ' ';
}
@@ -1520,49 +1522,49 @@ else
// Name
print ' '.$langs->trans('ThirdPartyName').' ';
print '';
- print $form->showrefnav($soc,'socid','',($user->societe_id?0:1),'rowid','nom');
+ print $form->showrefnav($object,'socid','',($user->societe_id?0:1),'rowid','nom');
print ' ';
print ' ';
// Logo
$rowspan=4;
if (! empty($conf->global->SOCIETE_USEPREFIX)) $rowspan++;
- if ($soc->client) $rowspan++;
- if ($conf->fournisseur->enabled && $soc->fournisseur) $rowspan++;
+ if ($object->client) $rowspan++;
+ if ($conf->fournisseur->enabled && $object->fournisseur) $rowspan++;
if ($conf->global->MAIN_MODULE_BARCODE) $rowspan++;
if (empty($conf->global->SOCIETE_DISABLE_STATE)) $rowspan++;
$showlogo='';
- if ($soc->logo)
+ if ($object->logo)
{
$showlogo.='';
- $showlogo.=$html->showphoto('societe',$soc,50);
+ $showlogo.=$html->showphoto('societe',$object,50);
$showlogo.=' ';
}
if (! empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field
{
- print ''.$langs->trans('Prefix').' '.$soc->prefix_comm.' ';
+ print ''.$langs->trans('Prefix').' '.$object->prefix_comm.' ';
print $showlogo; $showlogo='';
print ' ';
}
- if ($soc->client)
+ if ($object->client)
{
print '';
- print $langs->trans('CustomerCode').' ';
- print $soc->code_client;
- if ($soc->check_codeclient() <> 0) print ' ('.$langs->trans("WrongCustomerCode").') ';
+ print $langs->trans('CustomerCode').' ';
+ print $object->code_client;
+ if ($object->check_codeclient() <> 0) print ' ('.$langs->trans("WrongCustomerCode").') ';
print ' ';
print $showlogo; $showlogo='';
print ' ';
}
- if ($conf->fournisseur->enabled && $soc->fournisseur)
+ if ($conf->fournisseur->enabled && $object->fournisseur)
{
print '';
- print $langs->trans('SupplierCode').' ';
- print $soc->code_fournisseur;
- if ($soc->check_codefournisseur() <> 0) print ' ('.$langs->trans("WrongSupplierCode").') ';
+ print $langs->trans('SupplierCode').' ';
+ print $object->code_fournisseur;
+ if ($object->check_codefournisseur() <> 0) print ' ('.$langs->trans("WrongSupplierCode").') ';
print ' ';
print $showlogo; $showlogo='';
print ' ';
@@ -1570,8 +1572,8 @@ else
// Status
print ''.$langs->trans("Status").' ';
- print '';
- print $soc->getLibStatut(2);
+ print ' ';
+ print $object->getLibStatut(2);
print ' ';
print $showlogo; $showlogo='';
print ' ';
@@ -1579,66 +1581,66 @@ else
// Barcode
if ($conf->global->MAIN_MODULE_BARCODE)
{
- print ''.$langs->trans('Gencod').' '.$soc->gencod.' ';
+ print ''.$langs->trans('Gencod').' '.$object->gencod.' ';
}
// Address
- print "".$langs->trans('Address').' ';
- dol_print_address($soc->address,'gmap','thirdparty',$soc->id);
+ print " ".$langs->trans('Address').' ';
+ dol_print_address($object->address,'gmap','thirdparty',$object->id);
print " ";
// Zip / Town
- print ''.$langs->trans('Zip').' / '.$langs->trans("Town").' ';
- print $soc->cp.($soc->cp && $soc->ville?" / ":"").$soc->ville;
+ print ' '.$langs->trans('Zip').' / '.$langs->trans("Town").' ';
+ print $object->cp.($object->cp && $object->ville?" / ":"").$object->ville;
print " ";
print ' ';
// Country
- print ''.$langs->trans("Country").' ';
- $img=picto_from_langcode($soc->pays_code);
- if ($soc->isInEEC()) print $form->textwithpicto(($img?$img.' ':'').$soc->pays,$langs->trans("CountryIsInEEC"),1,0);
- else print ($img?$img.' ':'').$soc->pays;
+ print ' '.$langs->trans("Country").' ';
+ $img=picto_from_langcode($object->pays_code);
+ if ($object->isInEEC()) print $form->textwithpicto(($img?$img.' ':'').$object->pays,$langs->trans("CountryIsInEEC"),1,0);
+ else print ($img?$img.' ':'').$object->pays;
print ' ';
// State
- if (empty($conf->global->SOCIETE_DISABLE_STATE)) print ''.$langs->trans('State').' '.$soc->departement.' ';
+ if (empty($conf->global->SOCIETE_DISABLE_STATE)) print ''.$langs->trans('State').' '.$object->departement.' ';
- print ''.$langs->trans('Phone').' '.dol_print_phone($soc->tel,$soc->pays_code,0,$soc->id,'AC_TEL').' ';
- print ''.$langs->trans('Fax').' '.dol_print_phone($soc->fax,$soc->pays_code,0,$soc->id,'AC_FAX').' ';
+ print ''.$langs->trans('Phone').' '.dol_print_phone($object->tel,$object->pays_code,0,$object->id,'AC_TEL').' ';
+ print ''.$langs->trans('Fax').' '.dol_print_phone($object->fax,$object->pays_code,0,$object->id,'AC_FAX').' ';
// EMail
print ''.$langs->trans('EMail').' ';
- print dol_print_email($soc->email,0,$soc->id,'AC_EMAIL');
+ print dol_print_email($object->email,0,$object->id,'AC_EMAIL');
print ' ';
// Web
print ''.$langs->trans('Web').' ';
- print dol_print_url($soc->url);
+ print dol_print_url($object->url);
print ' ';
// ProfId1 (SIREN for France)
- $profid=$langs->transcountry('ProfId1',$soc->pays_code);
+ $profid=$langs->transcountry('ProfId1',$object->pays_code);
if ($profid!='-')
{
print ''.$profid.' ';
- print $soc->siren;
- if ($soc->siren)
+ print $object->siren;
+ if ($object->siren)
{
- if ($soc->id_prof_check(1,$soc) > 0) print ' '.$soc->id_prof_url(1,$soc);
+ if ($object->id_prof_check(1,$object) > 0) print ' '.$object->id_prof_url(1,$object);
else print ' ('.$langs->trans("ErrorWrongValue").') ';
}
print ' ';
}
else print ' ';
// ProfId2 (SIRET for France)
- $profid=$langs->transcountry('ProfId2',$soc->pays_code);
+ $profid=$langs->transcountry('ProfId2',$object->pays_code);
if ($profid!='-')
{
print ''.$profid.' ';
- print $soc->siret;
- if ($soc->siret)
+ print $object->siret;
+ if ($object->siret)
{
- if ($soc->id_prof_check(2,$soc) > 0) print ' '.$soc->id_prof_url(2,$soc);
+ if ($object->id_prof_check(2,$object) > 0) print ' '.$object->id_prof_url(2,$object);
else print ' ('.$langs->trans("ErrorWrongValue").') ';
}
print ' ';
@@ -1646,28 +1648,28 @@ else
else print ' ';
// ProfId3 (APE for France)
- $profid=$langs->transcountry('ProfId3',$soc->pays_code);
+ $profid=$langs->transcountry('ProfId3',$object->pays_code);
if ($profid!='-')
{
print ''.$profid.' ';
- print $soc->ape;
- if ($soc->ape)
+ print $object->ape;
+ if ($object->ape)
{
- if ($soc->id_prof_check(3,$soc) > 0) print ' '.$soc->id_prof_url(3,$soc);
+ if ($object->id_prof_check(3,$object) > 0) print ' '.$object->id_prof_url(3,$object);
else print ' ('.$langs->trans("ErrorWrongValue").') ';
}
print ' ';
}
else print ' ';
// ProfId4 (NU for France)
- $profid=$langs->transcountry('ProfId4',$soc->pays_code);
+ $profid=$langs->transcountry('ProfId4',$object->pays_code);
if ($profid!='-')
{
print ''.$profid.' ';
- print $soc->idprof4;
- if ($soc->idprof4)
+ print $object->idprof4;
+ if ($object->idprof4)
{
- if ($soc->id_prof_check(4,$soc) > 0) print ' '.$soc->id_prof_url(4,$soc);
+ if ($object->id_prof_check(4,$object) > 0) print ' '.$object->id_prof_url(4,$object);
else print ' ('.$langs->trans("ErrorWrongValue").') ';
}
print ' ';
@@ -1679,16 +1681,16 @@ else
print '';
print $langs->trans('VATIsUsed');
print ' ';
- print yn($soc->tva_assuj);
+ print yn($object->tva_assuj);
print ' ';
// VAT Code
print ''.$langs->trans('VATIntra').' ';
- if ($soc->tva_intra)
+ if ($object->tva_intra)
{
$s='';
- $s.=$soc->tva_intra;
- $s.=' ';
+ $s.=$object->tva_intra;
+ $s.=' ';
if (empty($conf->global->MAIN_DISABLEVATCHECK))
{
@@ -1708,7 +1710,7 @@ else
}
else
{
- $s.='id_pays).'" target="_blank">'.img_picto($langs->trans("VATIntraCheckableOnEUSite"),'help').' ';
+ $s.='id_pays).'" target="_blank">'.img_picto($langs->trans("VATIntraCheckableOnEUSite"),'help').' ';
}
}
print $s;
@@ -1727,37 +1729,37 @@ else
if($mysoc->localtax1_assuj=="1" && $mysoc->localtax2_assuj=="1")
{
print ' '.$langs->trans("LocalTax1IsUsedES").' ';
- print yn($soc->localtax1_assuj);
+ print yn($object->localtax1_assuj);
print ' '.$langs->trans("LocalTax2IsUsedES").' ';
- print yn($soc->localtax2_assuj);
+ print yn($object->localtax2_assuj);
print ' ';
}
elseif($mysoc->localtax1_assuj=="1")
{
print ''.$langs->trans("LocalTax1IsUsedES").' ';
- print yn($soc->localtax1_assuj);
+ print yn($object->localtax1_assuj);
print ' ';
}
elseif($mysoc->localtax2_assuj=="1")
{
print ' '.$langs->trans("LocalTax2IsUsedES").' ';
- print yn($soc->localtax2_assuj);
+ print yn($object->localtax2_assuj);
print ' ';
}
}
// Type + Staff
$arr = $formcompany->typent_array(1);
- $soc->typent= $arr[$soc->typent_code];
- print ' '.$langs->trans("ThirdPartyType").' '.$soc->typent.' '.$langs->trans("Staff").' '.$soc->effectif.' ';
+ $object->typent= $arr[$object->typent_code];
+ print ''.$langs->trans("ThirdPartyType").' '.$object->typent.' '.$langs->trans("Staff").' '.$object->effectif.' ';
// Legal
- print ''.$langs->trans('JuridicalStatus').' '.$soc->forme_juridique.' ';
+ print ''.$langs->trans('JuridicalStatus').' '.$object->forme_juridique.' ';
// Capital
print ''.$langs->trans('Capital').' ';
- if ($soc->capital) print $soc->capital.' '.$langs->trans("Currency".$conf->monnaie);
+ if ($object->capital) print $object->capital.' '.$langs->trans("Currency".$conf->monnaie);
else print ' ';
print ' ';
@@ -1766,10 +1768,10 @@ else
{
require_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php");
print ''.$langs->trans("DefaultLang").' ';
- //$s=picto_from_langcode($soc->default_lang);
+ //$s=picto_from_langcode($object->default_lang);
//print ($s?$s.' ':'');
$langs->load("languages");
- $labellang = ($soc->default_lang?$langs->trans('Language_'.$soc->default_lang):'');
+ $labellang = ($object->default_lang?$langs->trans('Language_'.$object->default_lang):'');
print $labellang;
print ' ';
}
@@ -1777,7 +1779,7 @@ else
// Other attributes
foreach($extrafields->attribute_label as $key=>$label)
{
- $value=$soc->array_options["options_$key"];
+ $value=$object->array_options["options_$key"];
print "".$label.' ';
print $extrafields->showOutputField($key,$value);
print " \n";
@@ -1791,13 +1793,13 @@ else
print $langs->trans('RIB');
print '';
if ($user->rights->societe->creer)
- print ''.img_edit().' ';
+ print ''.img_edit().' ';
else
print ' ';
print '
';
print '';
print '