diff --git a/include/class/acc_ledger.class.php b/include/class/acc_ledger.class.php index 51fc616f2..715ae6f76 100644 --- a/include/class/acc_ledger.class.php +++ b/include/class/acc_ledger.class.php @@ -22,12 +22,13 @@ require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; require_once NOALYSS_INCLUDE.'/database/jrn_def_sql.class.php'; require_once NOALYSS_INCLUDE.'/database/operation_currency_sql.class.php'; -/** \file +/** + * \file * @brief Class for jrn, class acc_ledger for manipulating the ledger */ /** - * @class + * @class Acc_Ledger * @brief Class for jrn, class acc_ledger for manipulating the ledger AND some acc. operations * */ @@ -45,6 +46,7 @@ class Acc_Ledger extends jrn_def_sql /** + * @brief construct * @param $p_cn database connexion * @param $p_id jrn.jrn_def_id */ diff --git a/include/lib/http_input.class.php b/include/lib/http_input.class.php index 535573f4b..894095439 100644 --- a/include/lib/http_input.class.php +++ b/include/lib/http_input.class.php @@ -172,7 +172,7 @@ class HttpInput } if (!array_key_exists($p_name,$this->array)) { - throw new Exception(_('Paramètre invalide')."[$p_name]", + throw new Exception("C175."._('Paramètre invalide')."[$p_name]", EXC_PARAM_VALUE); } $this->check_type($p_name, $p_type); diff --git a/include/lib/output_html_tab.class.php b/include/lib/output_html_tab.class.php index 89ff75cde..fa1cb2723 100644 --- a/include/lib/output_html_tab.class.php +++ b/include/lib/output_html_tab.class.php @@ -23,7 +23,61 @@ /** * @file * @brief Display the tabs - * + * @code + * // create TAQ , with a url + $tab = new Html_Tab('tab1',_("Titre 1")); + $tab->set_mode('link'); + $tab->set_link("test.php?". + http_build_query([ "gDossier"=>Dossier::id(), + "script"=>"html_tab.test.php", + "a"=>1, + "b"=>2])); + * + // create a TAB and give the content + $tab2 = new Html_Tab('tab2',_("Titre 2")); + $tab2->set_content("" + . "
Très longue chaine HTML pour 2" + . "
Très longue chaine HTML pour 2" + . "
Très longue chaine HTML pour 2" + . "
Très longue chaine HTML pour 2" + . "
Très longue chaine HTML pour 2" + . "
Très longue chaine HTML pour 2" + . "
Très longue chaine HTML pour 2" + . "
Très longue chaine HTML pour 2" + . "
Très longue chaine HTML pour 2" + . "
Très longue chaine HTML pour 2" + . "
Très longue chaine HTML pour 2" + . "
Très longue chaine HTML pour 2"); + + $tab3 = new Html_Tab('tab3',_("Titre 3")); + $tab3->set_content('

' + . "
Très longue chaine HTML pour 3" + . "
Très longue chaine HTML pour 3" + . "
Très longue chaine HTML pour 3" + . "
Très longue chaine HTML pour 3" + . "
Très longue chaine HTML pour 3" + . "
Très longue chaine HTML pour 3" + . "
Très longue chaine HTML pour 3" + . "
Très longue chaine HTML pour 3" + . "
Très longue chaine HTML pour 3" + . "
Très longue chaine HTML pour 3" + . "
Très longue chaine HTML pour 3" + . "
Très longue chaine HTML pour 3" + . "
Très longue chaine HTML pour 3" + . "
Très longue chaine HTML pour 3" + .'

' + ); + + $output = new Output_Html_Tab; + + $output->add($tab); + $output->add($tab2); + $output->add($tab3); + + // show all the TABS +$output->output(); + * + * @endcode */ /** diff --git a/include/tva.inc.php b/include/tva.inc.php index d3b0de961..2ac9f9e5a 100644 --- a/include/tva.inc.php +++ b/include/tva.inc.php @@ -17,7 +17,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Copyright Author Dany De Bontridder danydb@aevalys.eu -/** \file +/** + * \file * \brief included file for customizing with the vat (account,rate...) */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); diff --git a/unit-test/create-dossier-test.sh b/unit-test/create-dossier-test.sh index a609f783b..b3f65e29c 100755 --- a/unit-test/create-dossier-test.sh +++ b/unit-test/create-dossier-test.sh @@ -1,6 +1,6 @@ #!/bin/bash -export PGCLUSTER=12/main +export PGCLUSTER=17/main DOSSIER_TEST=rel91dossier25 FILE_TEST=dossier25.sql diff --git a/unit-test/include/class/acc_ledgerTest.php b/unit-test/include/class/acc_ledgerTest.php index b8bb5d86c..73c3dd605 100644 --- a/unit-test/include/class/acc_ledgerTest.php +++ b/unit-test/include/class/acc_ledgerTest.php @@ -901,7 +901,7 @@ class Acc_LedgerTest extends TestCase ob_end_clean(); \Noalyss\Facility::save_file(__DIR__."/file", "acc_ledger-input_new.html", $result); $size=filesize(__DIR__."/file/acc_ledger-input_new.html"); - $this->assertTrue($size == 15948 ," output input_new is not what it is expected"); + $this->assertTrue($size == 16044 ," output input_new is not what it is expected"); }