|
@@ -600,7 +600,7 @@ if (empty($reshook)) {
|
|
|
exit;
|
|
|
} else {
|
|
|
$url = $_SERVER["PHP_SELF"]."?socid=".$object->id; // Old method
|
|
|
- if (($object->client == 1 || $object->client == 3) && empty($conf->global->SOCIETE_DISABLE_CUSTOMERS)) {
|
|
|
+ if (($object->client == 1 || $object->client == 3) && !getDolGlobalString('SOCIETE_DISABLE_CUSTOMERS')) {
|
|
|
$url = DOL_URL_ROOT."/comm/card.php?socid=".$object->id;
|
|
|
} elseif ($object->fournisseur == 1) {
|
|
|
$url = DOL_URL_ROOT."/fourn/card.php?socid=".$object->id;
|
|
@@ -719,7 +719,7 @@ if (empty($reshook)) {
|
|
|
$object->addThumbs($newfile);
|
|
|
|
|
|
// Index file in database
|
|
|
- if (!empty($conf->global->THIRDPARTY_LOGO_ALLOW_EXTERNAL_DOWNLOAD)) {
|
|
|
+ if (getDolGlobalString('THIRDPARTY_LOGO_ALLOW_EXTERNAL_DOWNLOAD')) {
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
|
|
// the dir dirname($newfile) is directory of logo, so we should have only one file at once into index, so we delete indexes for the dir
|
|
|
deleteFilesIntoDatabaseIndex(dirname($newfile), '', '');
|
|
@@ -824,7 +824,7 @@ if (empty($reshook)) {
|
|
|
$object->fetch($socid);
|
|
|
|
|
|
// Selection of new fields
|
|
|
- if (!empty($conf->global->MAIN_DUPLICATE_CONTACTS_TAB_ON_MAIN_CARD) && (empty($conf->global->SOCIETE_DISABLE_CONTACTS) || !empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT))) {
|
|
|
+ if (getDolGlobalString('MAIN_DUPLICATE_CONTACTS_TAB_ON_MAIN_CARD') && (!getDolGlobalString('SOCIETE_DISABLE_CONTACTS') || getDolGlobalString('SOCIETE_ADDRESSES_MANAGEMENT'))) {
|
|
|
include DOL_DOCUMENT_ROOT.'/core/actions_changeselectedfields.inc.php';
|
|
|
}
|
|
|
|
|
@@ -867,7 +867,7 @@ $title = $langs->trans("ThirdParty");
|
|
|
if ($action == 'create') {
|
|
|
$title = $langs->trans("NewThirdParty");
|
|
|
}
|
|
|
-if (!empty($conf->global->MAIN_HTML_TITLE) && preg_match('/thirdpartynameonly/', $conf->global->MAIN_HTML_TITLE) && $object->name) {
|
|
|
+if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/thirdpartynameonly/', $conf->global->MAIN_HTML_TITLE) && $object->name) {
|
|
|
$title = $object->name." - ".$langs->trans('Card');
|
|
|
}
|
|
|
$help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas|DE:Modul_Geschäftspartner';
|
|
@@ -896,7 +896,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
* Creation
|
|
|
*/
|
|
|
$private = GETPOST("private", "int");
|
|
|
- if (!empty($conf->global->THIRDPARTY_DEFAULT_CREATE_CONTACT) && !GETPOSTISSET('private')) {
|
|
|
+ if (getDolGlobalString('THIRDPARTY_DEFAULT_CREATE_CONTACT') && !GETPOSTISSET('private')) {
|
|
|
$private = 1;
|
|
|
}
|
|
|
if (empty($private)) {
|
|
@@ -904,7 +904,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
}
|
|
|
|
|
|
// Load object modCodeTiers
|
|
|
- $module = (!empty($conf->global->SOCIETE_CODECLIENT_ADDON) ? $conf->global->SOCIETE_CODECLIENT_ADDON : 'mod_codeclient_leopard');
|
|
|
+ $module = (getDolGlobalString('SOCIETE_CODECLIENT_ADDON') ? $conf->global->SOCIETE_CODECLIENT_ADDON : 'mod_codeclient_leopard');
|
|
|
if (substr($module, 0, 15) == 'mod_codeclient_' && substr($module, -3) == 'php') {
|
|
|
$module = substr($module, 0, dol_strlen($module) - 4);
|
|
|
}
|
|
@@ -917,7 +917,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
}
|
|
|
$modCodeClient = new $module;
|
|
|
// Load object modCodeFournisseur
|
|
|
- $module = (!empty($conf->global->SOCIETE_CODECLIENT_ADDON) ? $conf->global->SOCIETE_CODECLIENT_ADDON : 'mod_codeclient_leopard');
|
|
|
+ $module = (getDolGlobalString('SOCIETE_CODECLIENT_ADDON') ? $conf->global->SOCIETE_CODECLIENT_ADDON : 'mod_codeclient_leopard');
|
|
|
if (substr($module, 0, 15) == 'mod_codeclient_' && substr($module, -3) == 'php') {
|
|
|
$module = substr($module, 0, dol_strlen($module) - 4);
|
|
|
}
|
|
@@ -933,13 +933,13 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
// Define if customer/prospect or supplier status is set or not
|
|
|
if (GETPOST("type", 'aZ') != 'f') {
|
|
|
$object->client = -1;
|
|
|
- if (!empty($conf->global->THIRDPARTY_CUSTOMERPROSPECT_BY_DEFAULT)) {
|
|
|
+ if (getDolGlobalString('THIRDPARTY_CUSTOMERPROSPECT_BY_DEFAULT')) {
|
|
|
$object->client = 3;
|
|
|
}
|
|
|
}
|
|
|
// Prospect / Customer
|
|
|
if (GETPOST("type", 'aZ') == 'c') {
|
|
|
- if (!empty($conf->global->THIRDPARTY_CUSTOMERTYPE_BY_DEFAULT)) {
|
|
|
+ if (getDolGlobalString('THIRDPARTY_CUSTOMERTYPE_BY_DEFAULT')) {
|
|
|
$object->client = $conf->global->THIRDPARTY_CUSTOMERTYPE_BY_DEFAULT;
|
|
|
} else {
|
|
|
$object->client = 3;
|
|
@@ -949,11 +949,11 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
$object->client = 2;
|
|
|
}
|
|
|
|
|
|
- if (!empty($conf->global->SOCIETE_DISABLE_PROSPECTSCUSTOMERS) && $object->client == 3) {
|
|
|
+ if (getDolGlobalString('SOCIETE_DISABLE_PROSPECTSCUSTOMERS') && $object->client == 3) {
|
|
|
$object->client = 1;
|
|
|
}
|
|
|
|
|
|
- if ((isModEnabled("supplier_order") || isModEnabled("supplier_invoice")) && (GETPOST("type") == 'f' || (GETPOST("type") == '' && !empty($conf->global->THIRDPARTY_SUPPLIER_BY_DEFAULT)))) {
|
|
|
+ if ((isModEnabled("supplier_order") || isModEnabled("supplier_invoice")) && (GETPOST("type") == 'f' || (GETPOST("type") == '' && getDolGlobalString('THIRDPARTY_SUPPLIER_BY_DEFAULT')))) {
|
|
|
$object->fournisseur = 1;
|
|
|
}
|
|
|
|
|
@@ -1153,7 +1153,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
|
|
|
print '<script type="text/javascript">';
|
|
|
print '$(document).ready(function () {
|
|
|
- var canHaveCategoryIfNotCustomerProspectSupplier = ' . (empty($conf->global->THIRDPARTY_CAN_HAVE_CATEGORY_EVEN_IF_NOT_CUSTOMER_PROSPECT) ? '0' : '1') . ';
|
|
|
+ var canHaveCategoryIfNotCustomerProspectSupplier = ' . (!getDolGlobalString('THIRDPARTY_CAN_HAVE_CATEGORY_EVEN_IF_NOT_CUSTOMER_PROSPECT') ? '0' : '1') . ';
|
|
|
|
|
|
init_customer_categ();
|
|
|
$("#customerprospect").change(function() {
|
|
@@ -1222,7 +1222,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
} else {
|
|
|
print '<span id="TypeName" class="fieldrequired">'.$form->editfieldkey('ThirdPartyName', 'name', '', $object, 0).'</span>';
|
|
|
}
|
|
|
- print '</td><td'.(empty($conf->global->SOCIETE_USEPREFIX) ? ' colspan="3"' : '').'>';
|
|
|
+ print '</td><td'.(!getDolGlobalString('SOCIETE_USEPREFIX') ? ' colspan="3"' : '').'>';
|
|
|
|
|
|
print '<input type="text" class="minwidth300" maxlength="128" name="name" id="name" value="'.dol_escape_htmltag($object->name).'" autofocus="autofocus">';
|
|
|
print $form->widgetForTranslation("name", $object, $permissiontoadd, 'string', 'alpahnohtml', 'minwidth300'); // For some countries that need the company name in 2 languages
|
|
@@ -1319,14 +1319,14 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
';
|
|
|
*/
|
|
|
print '</td>';
|
|
|
- if (!empty($conf->global->SOCIETE_USEPREFIX)) { // Old not used prefix field
|
|
|
+ if (getDolGlobalString('SOCIETE_USEPREFIX')) { // Old not used prefix field
|
|
|
print '<td>'.$langs->trans('Prefix').'</td><td><input type="text" size="5" maxlength="5" name="prefix_comm" value="'.dol_escape_htmltag($object->prefix_comm).'"></td>';
|
|
|
}
|
|
|
print '</tr>';
|
|
|
|
|
|
// If javascript on, we show option individual
|
|
|
if ($conf->use_javascript_ajax) {
|
|
|
- if (!empty($conf->global->THIRDPARTY_SUGGEST_ALSO_ADDRESS_CREATION)) {
|
|
|
+ if (getDolGlobalString('THIRDPARTY_SUGGEST_ALSO_ADDRESS_CREATION')) {
|
|
|
// Firstname
|
|
|
print '<tr class="individualline"><td>'.$form->editfieldkey('FirstName', 'firstname', '', $object, 0).'</td>';
|
|
|
print '<td colspan="3"><input type="text" class="minwidth300" maxlength="128" name="firstname" id="firstname" value="'.dol_escape_htmltag($object->firstname).'"></td>';
|
|
@@ -1367,13 +1367,13 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '</td></tr></table>';
|
|
|
print '</td></tr>';
|
|
|
|
|
|
- if ((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))
|
|
|
+ if ((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && !getDolGlobalString('MAIN_USE_NEW_SUPPLIERMOD')) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))
|
|
|
|| (isModEnabled('supplier_proposal') && $user->hasRight('supplier_proposal', 'lire'))) {
|
|
|
// Supplier
|
|
|
print '<tr>';
|
|
|
print '<td>'.$form->editfieldkey('Vendor', 'fournisseur', '', $object, 0, 'string', '', 1).'</td><td>';
|
|
|
$default = -1;
|
|
|
- if (!empty($conf->global->THIRDPARTY_SUPPLIER_BY_DEFAULT)) {
|
|
|
+ if (getDolGlobalString('THIRDPARTY_SUPPLIER_BY_DEFAULT')) {
|
|
|
$default = 1;
|
|
|
}
|
|
|
print $form->selectyesno("fournisseur", (GETPOST('fournisseur', 'int') != '' ? GETPOST('fournisseur', 'int') : (GETPOST("type", 'alpha') == '' ? $default : $object->fournisseur)), 1, 0, (GETPOST("type", 'alpha') == '' ? 1 : 0), 1);
|
|
@@ -1385,11 +1385,11 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
}
|
|
|
|
|
|
print '<td>';
|
|
|
- if ((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))) {
|
|
|
+ if ((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && !getDolGlobalString('MAIN_USE_NEW_SUPPLIERMOD')) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))) {
|
|
|
print $form->editfieldkey('SupplierCode', 'supplier_code', '', $object, 0);
|
|
|
}
|
|
|
print '</td><td>';
|
|
|
- if ((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))) {
|
|
|
+ if ((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && !getDolGlobalString('MAIN_USE_NEW_SUPPLIERMOD')) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))) {
|
|
|
print '<table class="nobordernopadding"><tr><td>';
|
|
|
$tmpcode = $object->code_fournisseur;
|
|
|
if (empty($tmpcode) && !empty($modCodeFournisseur->code_auto)) {
|
|
@@ -1451,7 +1451,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '</td></tr>';
|
|
|
|
|
|
// State
|
|
|
- if (empty($conf->global->SOCIETE_DISABLE_STATE)) {
|
|
|
+ if (!getDolGlobalString('SOCIETE_DISABLE_STATE')) {
|
|
|
if ((getDolGlobalInt('MAIN_SHOW_REGION_IN_STATE_SELECT') == 1 || getDolGlobalInt('MAIN_SHOW_REGION_IN_STATE_SELECT') == 2)) {
|
|
|
print '<tr><td>'.$form->editfieldkey('Region-State', 'state_id', '', $object, 0).'</td><td colspan="3" class="maxwidthonsmartphone">';
|
|
|
} else {
|
|
@@ -1477,9 +1477,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '<td'.($conf->browser->layout == 'phone' ? ' colspan="3"' : '').'>'.img_picto('', 'object_phoning_fax', 'class="pictofixedwidth"').' <input type="text" name="fax" id="fax" class="maxwidth200 widthcentpercentminusx" value="'.(GETPOSTISSET('fax') ?GETPOST('fax', 'alpha') : $object->fax).'"></td></tr>';
|
|
|
|
|
|
// Email / Web
|
|
|
- print '<tr><td>'.$form->editfieldkey('EMail', 'email', '', $object, 0, 'string', '', empty($conf->global->SOCIETE_EMAIL_MANDATORY) ? '' : $conf->global->SOCIETE_EMAIL_MANDATORY).'</td>';
|
|
|
+ print '<tr><td>'.$form->editfieldkey('EMail', 'email', '', $object, 0, 'string', '', !getDolGlobalString('SOCIETE_EMAIL_MANDATORY') ? '' : $conf->global->SOCIETE_EMAIL_MANDATORY).'</td>';
|
|
|
print '<td'.(($conf->browser->layout == 'phone') || !isModEnabled('mailing') ? ' colspan="3"' : '').'>'.img_picto('', 'object_email', 'class="pictofixedwidth"').' <input type="text" class="maxwidth200 widthcentpercentminusx" name="email" id="email" value="'.$object->email.'"></td>';
|
|
|
- if (isModEnabled('mailing') && !empty($conf->global->THIRDPARTY_SUGGEST_ALSO_ADDRESS_CREATION)) {
|
|
|
+ if (isModEnabled('mailing') && getDolGlobalString('THIRDPARTY_SUGGEST_ALSO_ADDRESS_CREATION')) {
|
|
|
if ($conf->browser->layout == 'phone') {
|
|
|
print '</tr><tr>';
|
|
|
}
|
|
@@ -1563,7 +1563,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '<td class="nowrap">';
|
|
|
$s = '<input type="text" class="flat maxwidthonsmartphone" name="tva_intra" id="intra_vat" maxlength="20" value="'.$object->tva_intra.'">';
|
|
|
|
|
|
- if (empty($conf->global->MAIN_DISABLEVATCHECK) && isInEEC($object)) {
|
|
|
+ if (!getDolGlobalString('MAIN_DISABLEVATCHECK') && isInEEC($object)) {
|
|
|
$s .= ' ';
|
|
|
|
|
|
if (!empty($conf->use_javascript_ajax)) {
|
|
@@ -1594,7 +1594,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '</tr>';
|
|
|
|
|
|
// VAT reverse charge by default
|
|
|
- if (!empty($conf->global->ACCOUNTING_FORCE_ENABLE_VAT_REVERSE_CHARGE)) {
|
|
|
+ if (getDolGlobalString('ACCOUNTING_FORCE_ENABLE_VAT_REVERSE_CHARGE')) {
|
|
|
print '<tr><td>' . $form->editfieldkey('VATReverseChargeByDefault', 'vat_reverse_charge', '', $object, 0) . '</td><td colspan="3">';
|
|
|
print '<input type="checkbox" name="vat_reverse_charge" '.($object->vat_reverse_charge == '1' ? ' checked' : '').'>';
|
|
|
print '</td></tr>';
|
|
@@ -1623,13 +1623,13 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
}
|
|
|
|
|
|
// Type - Workforce/Staff
|
|
|
- print '<tr><td>'.$form->editfieldkey('ThirdPartyType', 'typent_id', '', $object, 0).'</td><td class="maxwidthonsmartphone"'.( ($conf->browser->layout == 'phone' || !empty($conf->global->SOCIETE_DISABLE_WORKFORCE)) ? ' colspan="3"' : '').'>'."\n";
|
|
|
- $sortparam = (empty($conf->global->SOCIETE_SORT_ON_TYPEENT) ? 'ASC' : $conf->global->SOCIETE_SORT_ON_TYPEENT); // NONE means we keep sort of original array, so we sort on position. ASC, means next function will sort on label.
|
|
|
+ print '<tr><td>'.$form->editfieldkey('ThirdPartyType', 'typent_id', '', $object, 0).'</td><td class="maxwidthonsmartphone"'.( ($conf->browser->layout == 'phone' || getDolGlobalString('SOCIETE_DISABLE_WORKFORCE')) ? ' colspan="3"' : '').'>'."\n";
|
|
|
+ $sortparam = (!getDolGlobalString('SOCIETE_SORT_ON_TYPEENT') ? 'ASC' : $conf->global->SOCIETE_SORT_ON_TYPEENT); // NONE means we keep sort of original array, so we sort on position. ASC, means next function will sort on label.
|
|
|
print $form->selectarray("typent_id", $formcompany->typent_array(0), $object->typent_id, 1, 0, 0, '', 0, 0, 0, $sortparam, '', 1);
|
|
|
if ($user->admin) {
|
|
|
print ' '.info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
|
|
|
}
|
|
|
- if (empty($conf->global->SOCIETE_DISABLE_WORKFORCE)) {
|
|
|
+ if (!getDolGlobalString('SOCIETE_DISABLE_WORKFORCE')) {
|
|
|
print '</td>';
|
|
|
if ($conf->browser->layout == 'phone') {
|
|
|
print '</tr><tr>';
|
|
@@ -1688,7 +1688,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print img_picto('', 'category', 'class="pictofixedwidth"').$form->multiselectarray('custcats', $cate_arbo, GETPOST('custcats', 'array'), null, null, 'quatrevingtpercent widthcentpercentminusx', 0, 0);
|
|
|
print "</td></tr>";
|
|
|
|
|
|
- if (!empty($conf->global->THIRDPARTY_SUGGEST_ALSO_ADDRESS_CREATION)) {
|
|
|
+ if (getDolGlobalString('THIRDPARTY_SUGGEST_ALSO_ADDRESS_CREATION')) {
|
|
|
print '<tr class="individualline"><td class="toptd">'.$form->editfieldkey('ContactCategoriesShort', 'contcats', '', $object, 0).'</td><td colspan="3">';
|
|
|
$cate_arbo = $form->select_all_categories(Categorie::TYPE_CONTACT, null, 'parent', null, null, 1);
|
|
|
print img_picto('', 'category', 'class="pictofixedwidth"').$form->multiselectarray('contcats', $cate_arbo, GETPOST('contcats', 'array'), null, null, 'quatrevingtpercent widthcentpercentminusx', 0, 0);
|
|
@@ -1719,7 +1719,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_add.tpl.php';
|
|
|
|
|
|
// Parent company
|
|
|
- if (empty($conf->global->SOCIETE_DISABLE_PARENTCOMPANY)) {
|
|
|
+ if (!getDolGlobalString('SOCIETE_DISABLE_PARENTCOMPANY')) {
|
|
|
print '<tr>';
|
|
|
print '<td>'.$langs->trans('ParentCompany').'</td>';
|
|
|
print '<td colspan="3" class="maxwidthonsmartphone">';
|
|
@@ -1749,7 +1749,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '</table>'."\n";
|
|
|
|
|
|
// Accountancy codes
|
|
|
- if (!empty($conf->global->ACCOUNTANCY_USE_PRODUCT_ACCOUNT_ON_THIRDPARTY)) {
|
|
|
+ if (getDolGlobalString('ACCOUNTANCY_USE_PRODUCT_ACCOUNT_ON_THIRDPARTY')) {
|
|
|
print '<table class="border centpercent">';
|
|
|
|
|
|
if (isModEnabled('accounting')) {
|
|
@@ -1797,7 +1797,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
$head = societe_prepare_head($object);
|
|
|
|
|
|
// Load object modCodeTiers
|
|
|
- $module = (!empty($conf->global->SOCIETE_CODECLIENT_ADDON) ? $conf->global->SOCIETE_CODECLIENT_ADDON : 'mod_codeclient_leopard');
|
|
|
+ $module = (getDolGlobalString('SOCIETE_CODECLIENT_ADDON') ? $conf->global->SOCIETE_CODECLIENT_ADDON : 'mod_codeclient_leopard');
|
|
|
if (substr($module, 0, 15) == 'mod_codeclient_' && substr($module, -3) == 'php') {
|
|
|
$module = substr($module, 0, dol_strlen($module) - 4);
|
|
|
}
|
|
@@ -1976,7 +1976,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- var canHaveCategoryIfNotCustomerProspectSupplier = ' . (empty($conf->global->THIRDPARTY_CAN_HAVE_CUSTOMER_CATEGORY_EVEN_IF_NOT_CUSTOMER_PROSPECT) ? '0' : '1') . ';
|
|
|
+ var canHaveCategoryIfNotCustomerProspectSupplier = ' . (!getDolGlobalString('THIRDPARTY_CAN_HAVE_CUSTOMER_CATEGORY_EVEN_IF_NOT_CUSTOMER_PROSPECT') ? '0' : '1') . ';
|
|
|
|
|
|
init_customer_categ();
|
|
|
$("#customerprospect").change(function() {
|
|
@@ -2040,7 +2040,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '<table class="border centpercent">';
|
|
|
|
|
|
// Ref/ID
|
|
|
- if (!empty($conf->global->MAIN_SHOW_TECHNICAL_ID)) {
|
|
|
+ if (getDolGlobalString('MAIN_SHOW_TECHNICAL_ID')) {
|
|
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ID").'</td><td colspan="3">';
|
|
|
print $object->ref;
|
|
|
print '</td></tr>';
|
|
@@ -2057,7 +2057,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '<td colspan="3"><input type="text" class="minwidth300" name="name_alias" id="name_alias_input" value="'.dol_escape_htmltag($object->name_alias).'"></td></tr>';
|
|
|
|
|
|
// Prefix
|
|
|
- if (!empty($conf->global->SOCIETE_USEPREFIX)) { // Old not used prefix field
|
|
|
+ if (getDolGlobalString('SOCIETE_USEPREFIX')) { // Old not used prefix field
|
|
|
print '<tr><td>'.$form->editfieldkey('Prefix', 'prefix', '', $object, 0).'</td><td colspan="3">';
|
|
|
// It does not change the prefix mode using the auto numbering prefix
|
|
|
if (($prefixCustomerIsUsed || $prefixSupplierIsUsed) && $object->prefix_comm) {
|
|
@@ -2103,7 +2103,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '</td></tr>';
|
|
|
|
|
|
// Supplier
|
|
|
- if (((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire')))
|
|
|
+ if (((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && !getDolGlobalString('MAIN_USE_NEW_SUPPLIERMOD')) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire')))
|
|
|
|| (isModEnabled('supplier_proposal') && $user->hasRight('supplier_proposal', 'lire'))) {
|
|
|
print '<tr>';
|
|
|
print '<td>'.$form->editfieldkey('Supplier', 'fournisseur', '', $object, 0, 'string', '', 1).'</td>';
|
|
@@ -2114,7 +2114,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '</tr><tr>';
|
|
|
}
|
|
|
print '<td>';
|
|
|
- if ((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))) {
|
|
|
+ if ((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && !getDolGlobalString('MAIN_USE_NEW_SUPPLIERMOD')) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))) {
|
|
|
print $form->editfieldkey('SupplierCode', 'supplier_code', '', $object, 0);
|
|
|
}
|
|
|
print '</td>';
|
|
@@ -2186,7 +2186,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '</td></tr>';
|
|
|
|
|
|
// State
|
|
|
- if (empty($conf->global->SOCIETE_DISABLE_STATE)) {
|
|
|
+ if (!getDolGlobalString('SOCIETE_DISABLE_STATE')) {
|
|
|
if ((getDolGlobalInt('MAIN_SHOW_REGION_IN_STATE_SELECT') == 1 || getDolGlobalInt('MAIN_SHOW_REGION_IN_STATE_SELECT') == 2)) {
|
|
|
print '<tr><td>'.$form->editfieldkey('Region-State', 'state_id', '', $object, 0).'</td><td colspan="3">';
|
|
|
} else {
|
|
@@ -2213,7 +2213,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '<td colspan="3">'.img_picto('', 'globe', 'class="pictofixedwidth"').' <input type="text" name="url" id="url" class="maxwidth200onsmartphone maxwidth300 widthcentpercentminusx " value="'.(GETPOSTISSET('url') ?GETPOST('url', 'alpha') : $object->url).'"></td></tr>';
|
|
|
|
|
|
// EMail
|
|
|
- print '<tr><td>'.$form->editfieldkey('EMail', 'email', GETPOST('email', 'alpha'), $object, 0, 'string', '', (!empty($conf->global->SOCIETE_EMAIL_MANDATORY))).'</td>';
|
|
|
+ print '<tr><td>'.$form->editfieldkey('EMail', 'email', GETPOST('email', 'alpha'), $object, 0, 'string', '', (getDolGlobalString('SOCIETE_EMAIL_MANDATORY'))).'</td>';
|
|
|
print '<td colspan="3">';
|
|
|
print img_picto('', 'object_email', 'class="pictofixedwidth"');
|
|
|
print '<input type="text" name="email" id="email" class="maxwidth500 widthcentpercentminusx" value="'.(GETPOSTISSET('email') ?GETPOST('email', 'alpha') : $object->email).'">';
|
|
@@ -2334,7 +2334,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
}
|
|
|
|
|
|
// VAT reverse charge by default
|
|
|
- if (!empty($conf->global->ACCOUNTING_FORCE_ENABLE_VAT_REVERSE_CHARGE)) {
|
|
|
+ if (getDolGlobalString('ACCOUNTING_FORCE_ENABLE_VAT_REVERSE_CHARGE')) {
|
|
|
print '<tr><td>' . $form->editfieldkey('VATReverseChargeByDefault', 'vat_reverse_charge', '', $object, 0) . '</td><td colspan="3">';
|
|
|
print '<input type="checkbox" name="vat_reverse_charge" '.($object->vat_reverse_charge == '1' ? ' checked' : '').'>';
|
|
|
print '</td></tr>';
|
|
@@ -2345,7 +2345,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '<td colspan="3">';
|
|
|
$s = '<input type="text" class="flat maxwidthonsmartphone" name="tva_intra" id="intra_vat" maxlength="20" value="'.$object->tva_intra.'">';
|
|
|
|
|
|
- if (empty($conf->global->MAIN_DISABLEVATCHECK) && isInEEC($object)) {
|
|
|
+ if (!getDolGlobalString('MAIN_DISABLEVATCHECK') && isInEEC($object)) {
|
|
|
$s .= ' ';
|
|
|
|
|
|
if ($conf->use_javascript_ajax) {
|
|
@@ -2376,12 +2376,12 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '</tr>';
|
|
|
|
|
|
// Type - Workforce/Staff
|
|
|
- print '<tr><td>'.$form->editfieldkey('ThirdPartyType', 'typent_id', '', $object, 0).'</td><td class="maxwidthonsmartphone"'.( ($conf->browser->layout == 'phone' || !empty($conf->global->SOCIETE_DISABLE_WORKFORCE)) ? ' colspan="3"' : '').'>';
|
|
|
- print $form->selectarray("typent_id", $formcompany->typent_array(0), $object->typent_id, 1, 0, 0, '', 0, 0, 0, (empty($conf->global->SOCIETE_SORT_ON_TYPEENT) ? 'ASC' : $conf->global->SOCIETE_SORT_ON_TYPEENT), '', 1);
|
|
|
+ print '<tr><td>'.$form->editfieldkey('ThirdPartyType', 'typent_id', '', $object, 0).'</td><td class="maxwidthonsmartphone"'.( ($conf->browser->layout == 'phone' || getDolGlobalString('SOCIETE_DISABLE_WORKFORCE')) ? ' colspan="3"' : '').'>';
|
|
|
+ print $form->selectarray("typent_id", $formcompany->typent_array(0), $object->typent_id, 1, 0, 0, '', 0, 0, 0, (!getDolGlobalString('SOCIETE_SORT_ON_TYPEENT') ? 'ASC' : $conf->global->SOCIETE_SORT_ON_TYPEENT), '', 1);
|
|
|
if ($user->admin) {
|
|
|
print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
|
|
|
}
|
|
|
- if (empty($conf->global->SOCIETE_DISABLE_WORKFORCE)) {
|
|
|
+ if (!getDolGlobalString('SOCIETE_DISABLE_WORKFORCE')) {
|
|
|
print '</td>';
|
|
|
if ($conf->browser->layout == 'phone') {
|
|
|
print '</tr><tr>';
|
|
@@ -2444,7 +2444,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print "</td></tr>";
|
|
|
|
|
|
// Supplier
|
|
|
- if ((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))) {
|
|
|
+ if ((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && !getDolGlobalString('MAIN_USE_NEW_SUPPLIERMOD')) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))) {
|
|
|
print '<tr class="visibleifsupplier"><td>'.$form->editfieldkey('SuppliersCategoriesShort', 'suppcats', '', $object, 0).'</td>';
|
|
|
print '<td colspan="3">';
|
|
|
$cate_arbo = $form->select_all_categories(Categorie::TYPE_SUPPLIER, null, null, null, null, 1);
|
|
@@ -2474,7 +2474,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_edit.tpl.php';
|
|
|
|
|
|
// Parent company
|
|
|
- if (empty($conf->global->SOCIETE_DISABLE_PARENTCOMPANY)) {
|
|
|
+ if (!getDolGlobalString('SOCIETE_DISABLE_PARENTCOMPANY')) {
|
|
|
print '<tr>';
|
|
|
print '<td>'.$langs->trans('ParentCompany').'</td>';
|
|
|
print '<td colspan="3" class="maxwidthonsmartphone">';
|
|
@@ -2535,7 +2535,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
|
|
|
print '</table>';
|
|
|
|
|
|
- if (!empty($conf->global->ACCOUNTANCY_USE_PRODUCT_ACCOUNT_ON_THIRDPARTY)) {
|
|
|
+ if (getDolGlobalString('ACCOUNTANCY_USE_PRODUCT_ACCOUNT_ON_THIRDPARTY')) {
|
|
|
print '<br>';
|
|
|
print '<table class="border centpercent">';
|
|
|
|
|
@@ -2644,7 +2644,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '</td></tr>';
|
|
|
|
|
|
// Prefix
|
|
|
- if (!empty($conf->global->SOCIETE_USEPREFIX)) { // Old not used prefix field
|
|
|
+ if (getDolGlobalString('SOCIETE_USEPREFIX')) { // Old not used prefix field
|
|
|
print '<tr><td>'.$langs->trans('Prefix').'</td><td>'.dol_escape_htmltag($object->prefix_comm).'</td>';
|
|
|
print '</tr>';
|
|
|
}
|
|
@@ -2665,7 +2665,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
}
|
|
|
|
|
|
// Supplier code
|
|
|
- if (((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))) && $object->fournisseur) {
|
|
|
+ if (((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && !getDolGlobalString('MAIN_USE_NEW_SUPPLIERMOD')) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))) && $object->fournisseur) {
|
|
|
print '<tr><td>';
|
|
|
print $langs->trans('SupplierCode').'</td><td>';
|
|
|
print showValueWithClipboardCPButton(dol_escape_htmltag($object->code_fournisseur));
|
|
@@ -2727,7 +2727,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '</td>';
|
|
|
print '</tr>';
|
|
|
|
|
|
- if (!empty($conf->global->ACCOUNTING_FORCE_ENABLE_VAT_REVERSE_CHARGE)) {
|
|
|
+ if (getDolGlobalString('ACCOUNTING_FORCE_ENABLE_VAT_REVERSE_CHARGE')) {
|
|
|
// VAT reverse charge by default
|
|
|
print '<tr><td>';
|
|
|
print $form->textwithpicto($langs->trans('VATReverseChargeByDefault'), $langs->trans('VATReverseChargeByDefaultDesc'));
|
|
@@ -2822,7 +2822,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
$s .= dol_print_profids($object->tva_intra, 'VAT', $object->country_code, 1);
|
|
|
$s .= '<input type="hidden" id="tva_intra" name="tva_intra" maxlength="20" value="'.$object->tva_intra.'">';
|
|
|
|
|
|
- if (empty($conf->global->MAIN_DISABLEVATCHECK) && isInEEC($object)) {
|
|
|
+ if (!getDolGlobalString('MAIN_DISABLEVATCHECK') && isInEEC($object)) {
|
|
|
$s .= ' ';
|
|
|
|
|
|
if ($conf->use_javascript_ajax) {
|
|
@@ -2855,7 +2855,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '</td></tr>';
|
|
|
|
|
|
// Warehouse
|
|
|
- if (isModEnabled('stock') && !empty($conf->global->SOCIETE_ASK_FOR_WAREHOUSE)) {
|
|
|
+ if (isModEnabled('stock') && getDolGlobalString('SOCIETE_ASK_FOR_WAREHOUSE')) {
|
|
|
$langs->load('stocks');
|
|
|
require_once DOL_DOCUMENT_ROOT.'/product/class/html.formproduct.class.php';
|
|
|
$formproduct = new FormProduct($db);
|
|
@@ -2886,7 +2886,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
// Tags / categories
|
|
|
if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
|
|
|
// Customer
|
|
|
- if ($object->prospect || $object->client || !empty($conf->global->THIRDPARTY_CAN_HAVE_CUSTOMER_CATEGORY_EVEN_IF_NOT_CUSTOMER_PROSPECT)) {
|
|
|
+ if ($object->prospect || $object->client || getDolGlobalString('THIRDPARTY_CAN_HAVE_CUSTOMER_CATEGORY_EVEN_IF_NOT_CUSTOMER_PROSPECT')) {
|
|
|
print '<tr><td>'.$langs->trans("CustomersCategoriesShort").'</td>';
|
|
|
print '<td>';
|
|
|
print $form->showCategories($object->id, Categorie::TYPE_CUSTOMER, 1);
|
|
@@ -2894,7 +2894,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
}
|
|
|
|
|
|
// Supplier
|
|
|
- if (((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))) && $object->fournisseur) {
|
|
|
+ if (((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && !getDolGlobalString('MAIN_USE_NEW_SUPPLIERMOD')) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))) && $object->fournisseur) {
|
|
|
print '<tr><td>'.$langs->trans("SuppliersCategoriesShort").'</td>';
|
|
|
print '<td>';
|
|
|
print $form->showCategories($object->id, Categorie::TYPE_SUPPLIER, 1);
|
|
@@ -2916,7 +2916,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '</td></tr>';
|
|
|
|
|
|
// Workforce/Staff
|
|
|
- if (empty($conf->global->SOCIETE_DISABLE_WORKFORCE)) {
|
|
|
+ if (!getDolGlobalString('SOCIETE_DISABLE_WORKFORCE')) {
|
|
|
print '<tr><td>'.$langs->trans("Workforce").'</td><td>'.$object->effectif.'</td></tr>';
|
|
|
}
|
|
|
|
|
@@ -2995,7 +2995,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
print '</td></tr>';
|
|
|
}
|
|
|
|
|
|
- if (!empty($conf->global->ACCOUNTANCY_USE_PRODUCT_ACCOUNT_ON_THIRDPARTY)) {
|
|
|
+ if (getDolGlobalString('ACCOUNTANCY_USE_PRODUCT_ACCOUNT_ON_THIRDPARTY')) {
|
|
|
// Accountancy sell code
|
|
|
print '<tr><td class="nowrap">';
|
|
|
print $langs->trans("ProductAccountancySellCode");
|
|
@@ -3034,7 +3034,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
|
|
|
|
|
|
// Parent company
|
|
|
- if (empty($conf->global->SOCIETE_DISABLE_PARENTCOMPANY)) {
|
|
|
+ if (!getDolGlobalString('SOCIETE_DISABLE_PARENTCOMPANY')) {
|
|
|
print '<tr><td>';
|
|
|
print '<table class="nobordernopadding" width="100%"><tr><td>'.$langs->trans('ParentCompany').'</td>';
|
|
|
if ($action != 'editparentcompany' && $user->hasRight('societe', 'creer')) {
|
|
@@ -3128,7 +3128,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
if (isModEnabled('adherent')) {
|
|
|
$adh = new Adherent($db);
|
|
|
$result = $adh->fetch('', '', $object->id);
|
|
|
- if ($result == 0 && ($object->client == 1 || $object->client == 3) && !empty($conf->global->MEMBER_CAN_CONVERT_CUSTOMERS_TO_MEMBERS)) {
|
|
|
+ if ($result == 0 && ($object->client == 1 || $object->client == 3) && getDolGlobalString('MEMBER_CAN_CONVERT_CUSTOMERS_TO_MEMBERS')) {
|
|
|
print '<a class="butAction" href="'.DOL_URL_ROOT.'/adherents/card.php?&action=create&socid='.$object->id.'" title="'.dol_escape_htmltag($langs->trans("NewMember")).'">'.$langs->trans("NewMember").'</a>'."\n";
|
|
|
}
|
|
|
}
|
|
@@ -3157,7 +3157,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
if ($action != 'presend') {
|
|
|
print '<div class="fichecenter"><div class="fichehalfleft">';
|
|
|
|
|
|
- if (empty($conf->global->SOCIETE_DISABLE_BUILDDOC)) {
|
|
|
+ if (!getDolGlobalString('SOCIETE_DISABLE_BUILDDOC')) {
|
|
|
print '<a name="builddoc"></a>'; // ancre
|
|
|
|
|
|
/*
|
|
@@ -3172,7 +3172,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
}
|
|
|
|
|
|
// Subsidiaries list
|
|
|
- if (empty($conf->global->SOCIETE_DISABLE_PARENTCOMPANY) && empty($conf->global->SOCIETE_DISABLE_SHOW_SUBSIDIARIES)) {
|
|
|
+ if (!getDolGlobalString('SOCIETE_DISABLE_PARENTCOMPANY') && !getDolGlobalString('SOCIETE_DISABLE_SHOW_SUBSIDIARIES')) {
|
|
|
print '<br>';
|
|
|
$result = show_subsidiaries($conf, $langs, $db, $object);
|
|
|
}
|
|
@@ -3193,9 +3193,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|
|
|
|
|
print '</div></div>';
|
|
|
|
|
|
- if (!empty($conf->global->MAIN_DUPLICATE_CONTACTS_TAB_ON_MAIN_CARD)) {
|
|
|
+ if (getDolGlobalString('MAIN_DUPLICATE_CONTACTS_TAB_ON_MAIN_CARD')) {
|
|
|
// Contacts list
|
|
|
- if (empty($conf->global->SOCIETE_DISABLE_CONTACTS)) {
|
|
|
+ if (!getDolGlobalString('SOCIETE_DISABLE_CONTACTS')) {
|
|
|
$result = show_contacts($conf, $langs, $db, $object, $_SERVER["PHP_SELF"].'?socid='.$object->id);
|
|
|
}
|
|
|
}
|