Update list.php
This commit is contained in:
parent
4eeaac5ee7
commit
1a23cfc6f9
@ -67,6 +67,8 @@ $socid = 0;
|
|||||||
if ($user->socid) {
|
if ($user->socid) {
|
||||||
$socid = $user->socid;
|
$socid = $user->socid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$allowed = 0;
|
||||||
if (!empty($user->rights->accounting->chartofaccount)) {
|
if (!empty($user->rights->accounting->chartofaccount)) {
|
||||||
$allowed = 1; // Dictionary with list of banks accounting account allowed to manager of chart account
|
$allowed = 1; // Dictionary with list of banks accounting account allowed to manager of chart account
|
||||||
}
|
}
|
||||||
@ -191,7 +193,7 @@ $parameters = array();
|
|||||||
$reshook = $hookmanager->executeHooks('printFieldListSelect', $parameters); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('printFieldListSelect', $parameters); // Note that $action and $object may have been modified by hook
|
||||||
$sql .= $hookmanager->resPrint;
|
$sql .= $hookmanager->resPrint;
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."bank_account as b";
|
$sql .= " FROM ".MAIN_DB_PREFIX."bank_account as b";
|
||||||
if (is_array($extrafields->attributes[$object->table_element]['label']) && count($extrafields->attributes[$object->table_element]['label'])) {
|
if (!empty($extrafields->attributes[$object->table_element]['label']) && is_array($extrafields->attributes[$object->table_element]['label']) && count($extrafields->attributes[$object->table_element]['label'])) {
|
||||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element."_extrafields as ef on (b.rowid = ef.fk_object)";
|
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element."_extrafields as ef on (b.rowid = ef.fk_object)";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -333,12 +335,12 @@ $objecttmp = new Account($db);
|
|||||||
$trackid = 'bank'.$object->id;
|
$trackid = 'bank'.$object->id;
|
||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/massactions_pre.tpl.php';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/massactions_pre.tpl.php';
|
||||||
|
|
||||||
if ($sall) {
|
//if ($sall) {
|
||||||
foreach ($fieldstosearchall as $key => $val) {
|
// foreach ($fieldstosearchall as $key => $val) {
|
||||||
$fieldstosearchall[$key] = $langs->trans($val);
|
// $fieldstosearchall[$key] = $langs->trans($val);
|
||||||
}
|
// }
|
||||||
print '<div class="divsearchfieldfilter">'.$langs->trans("FilterOnInto", $sall).join(', ', $fieldstosearchall).'</div>';
|
// print '<div class="divsearchfieldfilter">'.$langs->trans("FilterOnInto", $sall).join(', ', $fieldstosearchall).'</div>';
|
||||||
}
|
//}
|
||||||
|
|
||||||
$moreforfilter = '';
|
$moreforfilter = '';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user