diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php index 95333ba7c57..4cdafdc39e0 100644 --- a/htdocs/admin/company.php +++ b/htdocs/admin/company.php @@ -74,6 +74,8 @@ $quality = $tmparraysize['quality']; // Initialize a technical object to manage hooks of page. Note that conf->hooks_modules contains an array of hook context $hookmanager->initHooks(array('admincompany', 'globaladmin')); +$object = new Societe($db); + /* * Actions @@ -451,11 +453,11 @@ print ''; print ''; print ''; -print ''."\n"; +print ''."\n"; // Company name print ''."\n"; +print ''."\n"; // Main currency print ''."\n"; // Address print ''."\n"; +print ''."\n"; // Zip print ''."\n"; +print ''."\n"; print ''."\n"; +print ''."\n"; // State print ''."\n"; // Phone print ''; +print ''; print ''."\n"; // Phone mobile print ''; +print ''; print ''."\n"; // Fax print ''; +print ''; print ''."\n"; // Email print ''; +print ''; print ''."\n"; // Web print ''; +print ''; print ''."\n"; // Barcode @@ -527,7 +529,7 @@ if (isModEnabled('barcode')) { print ''; + print ''; print ''; } @@ -563,7 +565,7 @@ print ''; // Note print ''; +print ''; print ''; print '
'.$langs->trans("CompanyInfo").'
'.$langs->trans("CompanyInfo").'
'; -print '
'; @@ -472,14 +474,14 @@ print '
'; -print '
'; -print '
'; -print '
'; @@ -495,31 +497,31 @@ print '
'; print img_picto('', 'object_phoning', '', 0, 0, 0, '', 'pictofixedwidth'); -print '
'; print img_picto('', 'object_phoning_mobile', '', 0, 0, 0, '', 'pictofixedwidth'); -print '
'; print img_picto('', 'object_phoning_fax', '', 0, 0, 0, '', 'pictofixedwidth'); -print '
'; print img_picto('', 'object_email', '', 0, 0, 0, '', 'pictofixedwidth'); -print '
'; print img_picto('', 'globe', '', 0, 0, 0, '', 'pictofixedwidth'); -print '
'; print ''; print ''; - print '
'; -print '
'; @@ -576,23 +578,23 @@ print '

'; // IDs of the company (country-specific) print '
'; print ''; -print ''; +print ''; $langs->load("companies"); // Managing Director(s) print ''; +print ''; // GDPR contact print ''; +print ''; // Capital print ''; +print ''; // Juridical Status print ''; // Object of the company print ''; +print ''; print ''; // Tax ID Intra-community VAT number print ''; // ProfId1 if ($langs->transcountry("ProfId1", $mysoc->country_code) != '-') { print ''; +print $formother->select_month(getDolGlobalString('SOCIETE_FISCAL_MONTH_START'), 'SOCIETE_FISCAL_MONTH_START', 0, 1, 'maxwidth100').''; print "
'.$langs->trans("CompanyIds").'
'.$langs->trans("CompanyIds").'
'; -print '
'; print $form->textwithpicto($langs->trans("GDPRContact"), $langs->trans("GDPRContactDesc")); print ''; -print 'global->MAIN_INFO_GDPR : ''))).'">
'; -print '
'; @@ -605,19 +607,19 @@ print '
'; -print '
'; -print ''; +print ''; print '
'; if (!empty($mysoc->country_code)) { - print ''; + print ''; } else { print $countrynotdefined; } @@ -628,7 +630,7 @@ if ($langs->transcountry("ProfId1", $mysoc->country_code) != '-') { if ($langs->transcountry("ProfId2", $mysoc->country_code) != '-') { print '
'; if (!empty($mysoc->country_code)) { - print ''; + print ''; } else { print $countrynotdefined; } @@ -639,7 +641,7 @@ if ($langs->transcountry("ProfId2", $mysoc->country_code) != '-') { if ($langs->transcountry("ProfId3", $mysoc->country_code) != '-') { print '
'; if (!empty($mysoc->country_code)) { - print ''; + print ''; } else { print $countrynotdefined; } @@ -650,7 +652,7 @@ if ($langs->transcountry("ProfId3", $mysoc->country_code) != '-') { if ($langs->transcountry("ProfId4", $mysoc->country_code) != '-') { print '
'; if (!empty($mysoc->country_code)) { - print ''; + print ''; } else { print $countrynotdefined; } @@ -661,7 +663,7 @@ if ($langs->transcountry("ProfId4", $mysoc->country_code) != '-') { if ($langs->transcountry("ProfId5", $mysoc->country_code) != '-') { print '
'; if (!empty($mysoc->country_code)) { - print ''; + print ''; } else { print $countrynotdefined; } @@ -672,7 +674,7 @@ if ($langs->transcountry("ProfId5", $mysoc->country_code) != '-') { if ($langs->transcountry("ProfId6", $mysoc->country_code) != '-') { print '
'; if (!empty($mysoc->country_code)) { - print ''; + print ''; } else { print $countrynotdefined; } @@ -683,7 +685,7 @@ if ($langs->transcountry("ProfId6", $mysoc->country_code) != '-') { if ($langs->transcountry("ProfId7", $mysoc->country_code) != '-') { print '
'; if (!empty($mysoc->country_code)) { - print ''; + print ''; } else { print $countrynotdefined; } @@ -694,7 +696,7 @@ if ($langs->transcountry("ProfId7", $mysoc->country_code) != '-') { if ($langs->transcountry("ProfId8", $mysoc->country_code) != '-') { print '
'; if (!empty($mysoc->country_code)) { - print ''; + print ''; } else { print $countrynotdefined; } @@ -705,7 +707,7 @@ if ($langs->transcountry("ProfId8", $mysoc->country_code) != '-') { if ($langs->transcountry("ProfId9", $mysoc->country_code) != '-') { print '
'; if (!empty($mysoc->country_code)) { - print ''; + print ''; } else { print $countrynotdefined; } @@ -716,7 +718,7 @@ if ($langs->transcountry("ProfId9", $mysoc->country_code) != '-') { if ($langs->transcountry("ProfId10", $mysoc->country_code) != '-') { print '
'; if (!empty($mysoc->country_code)) { - print ''; + print ''; } else { print $countrynotdefined; } @@ -735,7 +737,7 @@ print ''.$langs->trans("FiscalYearInformation").'\n"; print '
'; -print $formother->select_month(getDolGlobalInt('SOCIETE_FISCAL_MONTH_START') ? $conf->global->SOCIETE_FISCAL_MONTH_START : '', 'SOCIETE_FISCAL_MONTH_START', 0, 1, 'maxwidth100').'
";