diff --git a/html/ecrit_ouv.php b/html/ecrit_ouv.php index 482c0495e..09d90ef77 100644 --- a/html/ecrit_ouv.php +++ b/html/ecrit_ouv.php @@ -24,7 +24,7 @@ // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr include_once ("ac_common.php"); require_once('class_widget.php'); -require_once('class_acc_account.php'); +require_once('class_acc_account_ledger.php'); html_page_start($_SESSION['g_theme']); require_once('class_dossier.php'); $gDossier=dossier::id(); @@ -169,7 +169,7 @@ if ( isset ($_GET['import'])) { for ($i=0;$i<$idx;$i++) { - $p=new Acc_Account($cn,$aposte[$i]); + $p=new Acc_Account_Ledger($cn,$aposte[$i]); // if the poste exists then check the next one if ( $p->load() == true ) continue; diff --git a/html/export_ouv.php b/html/export_ouv.php index e8c1e78da..4613e2640 100644 --- a/html/export_ouv.php +++ b/html/export_ouv.php @@ -23,7 +23,7 @@ */ include_once ("ac_common.php"); -require_once("class_acc_account.php"); +require_once("class_acc_account_ledger.php"); header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="export_ouv.csv"',FALSE); require_once('class_dossier.php'); @@ -65,7 +65,7 @@ printf ("OUVERTURE\n"); $sum=0; foreach ($ret as $poste_id) { - $Poste=new Acc_Account($cn,$poste_id['j_poste']); + $Poste=new Acc_Account_Ledger($cn,$poste_id['j_poste']); // fill the object $Poste->load(); // build sql stmt diff --git a/html/fiche_csv.php b/html/fiche_csv.php index eda0e0d71..9ca0980dd 100644 --- a/html/fiche_csv.php +++ b/html/fiche_csv.php @@ -31,7 +31,7 @@ include_once("check_priv.php"); require_once('class_dossier.php'); $gDossier=dossier::id(); -if ( isset ($_REQUEST['with_amount'])) include_once("class_acc_account.php"); +if ( isset ($_REQUEST['with_amount'])) include_once("class_acc_account_ledger.php"); $cn=DbConnect($gDossier); $rep=DbConnect(); diff --git a/html/poste_csv.php b/html/poste_csv.php index b2813c602..8fa347df2 100644 --- a/html/poste_csv.php +++ b/html/poste_csv.php @@ -24,7 +24,7 @@ include_once("ac_common.php"); include_once ("postgres.php"); include ('class_user.php'); -require_once("class_acc_account.php"); +require_once("class_acc_account_ledger.php"); header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="poste.csv"',FALSE); require_once('class_dossier.php'); @@ -49,7 +49,7 @@ if ( count($a_poste) == 0 ) foreach ($a_poste as $pos) { - $Poste=new Acc_Account($cn,$pos['pcm_val']); + $Poste=new Acc_Account_Ledger($cn,$pos['pcm_val']); $Poste->get_name(); list($array,$tot_deb,$tot_cred)=$Poste->get_row( $_POST['from_periode'], $_POST['to_periode'] diff --git a/html/poste_pdf.php b/html/poste_pdf.php index a555aa096..68be58d63 100644 --- a/html/poste_pdf.php +++ b/html/poste_pdf.php @@ -23,7 +23,7 @@ /*! \file * \brief send the account list in PDF */ -include_once("class_acc_account.php"); +include_once("class_acc_account_ledger.php"); include_once("ac_common.php"); include_once("postgres.php"); include_once("class.ezpdf.php"); @@ -56,7 +56,7 @@ if ( count($a_poste) == 0 ) { foreach ($a_poste as $poste) { echo_debug("poste_pdf",__LINE__,$poste); - $Poste=new Acc_Account($cn,$poste['pcm_val']); + $Poste=new Acc_Account_Ledger($cn,$poste['pcm_val']); list($array,$tot_deb,$tot_cred)=$Poste->get_row($from_periode,$to_periode); // don't print empty account if ( count($array) == 0 ) { diff --git a/html/quick_code_pdf.php b/html/quick_code_pdf.php index f76aeb98d..935f92d18 100644 --- a/html/quick_code_pdf.php +++ b/html/quick_code_pdf.php @@ -23,7 +23,7 @@ /*! \file * \brief send the account list in PDF */ -include_once("class_acc_account.php"); +include_once("class_acc_account_ledger.php"); include_once("ac_common.php"); include_once("postgres.php"); include_once("class.ezpdf.php"); diff --git a/include/impress_poste.inc.php b/include/impress_poste.inc.php index b518f900a..99190871b 100644 --- a/include/impress_poste.inc.php +++ b/include/impress_poste.inc.php @@ -82,7 +82,7 @@ echo ''; // after in pdf or cvs //----------------------------------------------------- if ( isset( $_POST['bt_html'] ) ) { - require_once("class_acc_account.php"); + require_once("class_acc_account_ledger.php"); $go=0; // we ask a poste_id if ( strlen(trim($_POST['poste_id'])) != 0 && isNumber($_POST['poste_id']) ) @@ -96,7 +96,7 @@ if ( isset( $_POST['bt_html'] ) ) { // Check if the post is numeric and exists elseif ( CountSql($cn,'select * from tmp_pcmn where pcm_val='.FormatString($_POST['poste_id'])) != 0 ) { - $Poste=new Acc_Account($cn,$_POST['poste_id']);$go=1; + $Poste=new Acc_Account_Ledger($cn,$_POST['poste_id']);$go=1; } } if ( strlen(trim($_POST['f_id'])) != 0 ) @@ -142,13 +142,13 @@ if ( isset( $_POST['bt_html'] ) ) { echo '