From 57d1eb754f79eef98c7ae16a96fc612cd1a75c80 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 11 May 2013 20:56:02 +0000 Subject: [PATCH] task #814 Dans CARD, il faut afficher le poste comptable pour Balance & Historique. --- html/js/infobulle.js | 2 +- include/class_fiche.php | 4 ++++ include/fiche.inc.php | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/html/js/infobulle.js b/html/js/infobulle.js index 10113bff9..86e875cdd 100644 --- a/html/js/infobulle.js +++ b/html/js/infobulle.js @@ -54,7 +54,7 @@ content[23]="Donnez une partie du nom du dossier ou de la description pour filtr content[24]="Donnez une partie du poste comptable ou du libellé pour filtrer"; content[25]="Donnez une partie du libellé, la date, le montant ou le numéro d'opération pour filtrer, cela n'efface pas ce qui a déjà été sélectionné"; content[26]="Donnez une partie du quickcode, nom, description... pour filtrer"; - +content[27]="Attention, SI la fiche a changé de poste comptable, c'est seulement la dernière qui est affichée"; function showBulle(p_ctl) { d=document.getElementById('bulle'); diff --git a/include/class_fiche.php b/include/class_fiche.php index f0e36bc65..e4fccdc81 100644 --- a/include/class_fiche.php +++ b/include/class_fiche.php @@ -1908,6 +1908,10 @@ class Fiche $r = "

" . h($this->getName()) . " " . h($this->getAttribut(ATTR_DEF_FIRST_NAME)) . '[' . $this->get_quick_code() . ']

'; return $r; } + function get_all_account() + { + + } } ?> diff --git a/include/fiche.inc.php b/include/fiche.inc.php index 092b8761f..9b6de2170 100644 --- a/include/fiche.inc.php +++ b/include/fiche.inc.php @@ -304,6 +304,7 @@ if ($_GET['histo'] == 4 || $_GET['histo'] == 5) echo tr( th('Quick Code') . th('Libellé') . + 'Poste'.HtmlInput::infobulle(27).''. th('Débit', 'style="text-align:right"') . th('Crédit', 'style="text-align:right"') . th('Solde', 'style="text-align:right"') . @@ -332,6 +333,7 @@ if ($_GET['histo'] == 4 || $_GET['histo'] == 5) echo tr( td(HtmlInput::history_card($oCard->id, $oCard->strAttribut(ATTR_DEF_QUICKCODE))) . td($oCard->strAttribut(ATTR_DEF_NAME)) . + td($oCard->strAttribut(ATTR_DEF_ACCOUNT)). td(nbm($solde['debit']), 'style="text-align:right"') . td(nbm($solde['credit']), 'style="text-align:right"') . td(nbm(abs($solde['solde'])), 'style="text-align:right"') . @@ -344,6 +346,7 @@ if ($_GET['histo'] == 4 || $_GET['histo'] == 5) echo tr( td(''). td(_('Totaux')). + td(''). td(nbm($sum_deb), 'style="text-align:right"'). td(nbm($sum_cred), 'style="text-align:right"'). td(nbm(abs($sum_solde)), 'style="text-align:right"'). @@ -415,7 +418,7 @@ for ($e = 0; $e < count($afiche); $e++) /* skip if nothing to display */ if (count($letter->content) == 0) continue; - $detail_card = HtmlInput::card_detail($row->strAttribut(ATTR_DEF_QUICKCODE), $row->strAttribut(ATTR_DEF_NAME)); + $detail_card = HtmlInput::card_detail($row->strAttribut(ATTR_DEF_QUICKCODE), $row->strAttribut(ATTR_DEF_NAME))."poste :".HtmlInput::infobulle(27).$row->strAttribut(ATTR_DEF_ACCOUNT); echo '

' . $detail_card . '

';