FIX : some doc in comment

This commit is contained in:
sparkyx 2024-12-06 17:32:59 +01:00
parent 2b2a21f7b6
commit af9fb3e8c5
6 changed files with 64 additions and 7 deletions

View file

@ -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
*/

View file

@ -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);

View file

@ -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(""
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2");
$tab3 = new Html_Tab('tab3',_("Titre 3"));
$tab3->set_content('<p >'
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
.'</p>'
);
$output = new Output_Html_Tab;
$output->add($tab);
$output->add($tab2);
$output->add($tab3);
// show all the TABS
$output->output();
*
* @endcode
*/
/**

View file

@ -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');

View file

@ -1,6 +1,6 @@
#!/bin/bash
export PGCLUSTER=12/main
export PGCLUSTER=17/main
DOSSIER_TEST=rel91dossier25
FILE_TEST=dossier25.sql

View file

@ -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");
}