/* * This file is part of PhpCompta. * * PhpCompta is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * PhpCompta is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with PhpCompta; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Revision$ */ // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr include_once('postgres.php'); include_once('class_fiche.php'); include_once("class_widget.php"); $cn=DbConnect($_SESSION['g_dossier']); //////////////////////////////////////////////////////////////////////////////// if ( isset ($_REQUEST['fd_id'])) { // if amount requested $with_amount= (isset($_REQUEST['with_amount']))?true:false; if ($with_amount) include_once("class_poste.php"); //echo '
| ".$attribut->ad_text." | "; // si solde demandé affiche la col //-- if ($attribut->ad_id==ATTR_DEF_ACCOUNT && $with_amount==true) { echo "Débit | "; echo "Crédit | "; echo "Solde | "; } } echo "
|---|---|---|---|
| ".$dattribut->av_text." | "; // if amount requested //--- if ( $dattribut->ad_id == ATTR_DEF_ACCOUNT && $with_amount) { $account=new poste ($cn,$dattribut->av_text); $solde= $account->GetSoldeDetail("j_tech_per between ".$_REQUEST['from_periode']. " and ". $_REQUEST['to_periode']); printf ("% 10.2f | ",$solde['debit']); printf ("% 10.2f | ",$solde['credit']); printf ("% 10.2f | ",$solde['solde']); } } } echo "