fix ajax tooltip for account

This commit is contained in:
Frédéric FRANCE 2023-03-28 11:27:31 +02:00
parent 11b9c499e9
commit 61f1445fbf
2 changed files with 7 additions and 2 deletions

View File

@ -1416,6 +1416,7 @@ class Account extends CommonObject
public function getTooltipContentArray($params)
{
global $langs;
$langs->loadLangs(['banks', 'compta']);
include_once DOL_DOCUMENT_ROOT.'/core/lib/bank.lib.php';
$datas = array();

View File

@ -11245,7 +11245,12 @@ function getElementProperties($element_type)
$subelement = 'Actioncomm';
$module = 'agenda';
}
if ($element_type == 'bank_account') {
$classpath = 'compta/bank/class';
$module = 'banque';
$classfile = 'Account';
$classname = 'Account';
}
// To work with non standard path
if ($element_type == 'facture' || $element_type == 'invoice') {
$classpath = 'compta/facture/class';
@ -11361,7 +11366,6 @@ function fetchObjectByElement($element_id, $element_type, $element_ref = '')
$ret = 0;
$element_prop = getElementProperties($element_type);
if (is_array($element_prop) && isModEnabled($element_prop['module'])) {
dol_include_once('/'.$element_prop['classpath'].'/'.$element_prop['classfile'].'.class.php');