From dc150ce610f7f0fe8d3c7742153ae240dc3d07cd Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 3 Feb 2019 15:55:18 +0100 Subject: [PATCH] Fix bug from merge --- html/ajax_misc.php | 2 +- html/js/infobulle.js | 2 +- include/class/fiche.class.php | 17 +++++++++++------ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/html/ajax_misc.php b/html/ajax_misc.php index d95128125..d0d3b207c 100644 --- a/html/ajax_misc.php +++ b/html/ajax_misc.php @@ -248,7 +248,7 @@ $path = array( // Currency , delete a rate "CurrencyRateDelete"=>"ajax_currency", // Display all cards using an accounting - "display_all_card"=>"ajax_display_all_card" + "display_all_card"=>"ajax_display_all_card", // Currency , add / remove / update currency "CurrencyManage"=>"ajax_currency" ) ; diff --git a/html/js/infobulle.js b/html/js/infobulle.js index 381a36951..7ba6defb8 100644 --- a/html/js/infobulle.js +++ b/html/js/infobulle.js @@ -20,7 +20,7 @@ * \code // Example echo JS_INFOBULLE; - echo HtmlInput::infobulle(x); + echo Icon_Action::infobulle(x); \endcode */ diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php index 8354e469a..67ba4ff9a 100644 --- a/include/class/fiche.class.php +++ b/include/class/fiche.class.php @@ -58,6 +58,7 @@ class Fiche $this->cn=$p_cn; $this->id=$p_id; $this->quick_code=''; + $this->attribut=array(); } /** *@brief used with a usort function, to sort an array of Fiche on the name @@ -500,7 +501,7 @@ class Fiche $w->set_attribute('ipopup', 'ipop_account'); $w->set_attribute('account', "av_text" . $attr->ad_id); $w->table = 1; - $bulle = HtmlInput::infobulle(14); + $bulle = Icon_Action::infobulle(14); break; case 'select': $w = new ISelect("av_text" . $attr->ad_id); @@ -529,7 +530,7 @@ class Fiche $w->name = "av_text" . $attr->ad_id; if ($attr->ad_id == 21 || $attr->ad_id==22||$attr->ad_id==20||$attr->ad_id==31) { - $bulle=HtmlInput::infobulle(21); + $bulle=Icon_Action::infobulle(21); } if ($attr->ad_id == ATTR_DEF_NAME || $attr->ad_id== ATTR_DEF_QUICKCODE) $class=" input_text highlight info"; @@ -598,7 +599,7 @@ class Fiche $sql="select account_auto($this->fiche_def)"; $ret_sql=$this->cn->exec_sql($sql); $a=Database::fetch_array($ret_sql, 0); - $bulle=HtmlInput::infobulle(10); + $bulle=Icon_Action::infobulle(10); if ($a['account_auto']=='t') $bulle.=HtmlInput::warnbulle(11); @@ -640,7 +641,7 @@ class Fiche $w->dbl_click_history(); $w->width=$r->ad_size; $w->table=0; - $bulle=HtmlInput::infobulle(14); + $bulle=Icon_Action::infobulle(14); $w->value=$r->av_text; break; case 'card': @@ -712,7 +713,7 @@ class Fiche if ($r->ad_id==21||$r->ad_id==22||$r->ad_id==20||$r->ad_id==31) { - $bulle=HtmlInput::infobulle(21); + $bulle=Icon_Action::infobulle(21); } if ($r->ad_id == ATTR_DEF_NAME || $r->ad_id== ATTR_DEF_QUICKCODE||$r->ad_id==ATTR_DEF_ACCOUNT) $class=" input_text highlight info"; @@ -1210,6 +1211,7 @@ class Fiche " jr_comment as description,jrn_def_name as jrn_name,j_poste,". " jr_pj_number,". "j_debit, jr_internal,jr_id,(select distinct jl_id from sqlletter where sqlletter.j_id=j1.j_id ) as letter , ". + "jr_optype , ". " jr_tech_per,p_exercice,jrn_def_name, (with cred as (select jl_id, sum(j_montant) as amount_cred from letter_cred left join jrnx as j3 on (j3.j_id=j1.j_id) group by jl_id ), deb as (select jl_id, sum(j_montant) as amount_deb from letter_deb left join jrnx as j2 on (j2.j_id = j1.j_id) group by jl_id ) @@ -1424,6 +1426,7 @@ class Fiche ""._('Interne')." ". ""._('Tiers')." ". ""._('Description')." ". + ""._('Type')."". ""._('ISO')."". ""._('Dev.')."". ""._('Débit')." ". @@ -1519,6 +1522,8 @@ class Fiche td(). td(). td(_('Totaux')). + td(). + td(). "". "".nbm($sum_deb)."". "".nbm($sum_cred)."". @@ -1758,7 +1763,7 @@ class Fiche $r.=' - '. + '. ''. '
'._('Quick Code').HtmlInput::infobulle(17).''._('Quick Code').Icon_Action::infobulle(17).''._('Poste comptable').''._('Nom').''.' '._('Adresse').'