Dans CARD, il faut afficher le poste comptable pour Balance & Historique.
This commit is contained in:
Dany De Bontridder 2013-05-11 20:56:02 +00:00
parent 3fbc882d83
commit 57d1eb754f
3 changed files with 9 additions and 2 deletions

View file

@ -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, <b>SI</b> 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');

View file

@ -1908,6 +1908,10 @@ class Fiche
$r = "<h2>" . h($this->getName()) . " " . h($this->getAttribut(ATTR_DEF_FIRST_NAME)) . '[' . $this->get_quick_code() . ']</h2>';
return $r;
}
function get_all_account()
{
}
}
?>

View file

@ -304,6 +304,7 @@ if ($_GET['histo'] == 4 || $_GET['histo'] == 5)
echo tr(
th('Quick Code') .
th('Libellé') .
'<th>Poste'.HtmlInput::infobulle(27).'</th>'.
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 '<h2 style="font-size:14px;text-align:left;margin-left:10px;padding-left:50px;border:solid 1px blue;width:70%;text-decoration:underline">' . $detail_card . '</h2>';