Update company.lib.php
This commit is contained in:
parent
9f7f263f79
commit
453ae05030
@ -223,7 +223,7 @@ function societe_prepare_head(Societe $object)
|
|||||||
else {
|
else {
|
||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
}
|
}
|
||||||
|
$key
|
||||||
//if (! empty($conf->stripe->enabled) && $nbBankAccount > 0) $nbBankAccount = '...'; // No way to know exact number
|
//if (! empty($conf->stripe->enabled) && $nbBankAccount > 0) $nbBankAccount = '...'; // No way to know exact number
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT .'/societe/paymentmodes.php?socid='.$object->id;
|
$head[$h][0] = DOL_URL_ROOT .'/societe/paymentmodes.php?socid='.$object->id;
|
||||||
@ -243,7 +243,7 @@ function societe_prepare_head(Societe $object)
|
|||||||
$sql.= " FROM ".MAIN_DB_PREFIX."societe_account as n";
|
$sql.= " FROM ".MAIN_DB_PREFIX."societe_account as n";
|
||||||
$sql.= " WHERE fk_soc = ".$object->id.' AND fk_website > 0';
|
$sql.= " WHERE fk_soc = ".$object->id.' AND fk_website > 0';
|
||||||
$resql=$db->query($sql);
|
$resql=$db->query($sql);
|
||||||
if ($resql)
|
if ($resql)$key
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($resql);
|
$num = $db->num_rows($resql);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
@ -951,7 +951,7 @@ function show_contacts($conf, $langs, $db, $object, $backtopage = '')
|
|||||||
{
|
{
|
||||||
$queryName = 'search_'.substr($key, 2);
|
$queryName = 'search_'.substr($key, 2);
|
||||||
if (GETPOST($queryName, 'alpha')){
|
if (GETPOST($queryName, 'alpha')){
|
||||||
$search[$key]=GETPOST($queryName, 'alpha');
|
$search[substr($key, 2)]=GETPOST($queryName, 'alpha');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$search_array_options=$extrafields->getOptionalsFromPost($contactstatic->table_element, '', 'search_');
|
$search_array_options=$extrafields->getOptionalsFromPost($contactstatic->table_element, '', 'search_');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user