FIX : some doc in comment
This commit is contained in:
parent
2b2a21f7b6
commit
af9fb3e8c5
6 changed files with 64 additions and 7 deletions
|
|
@ -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/jrn_def_sql.class.php';
|
||||||
require_once NOALYSS_INCLUDE.'/database/operation_currency_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
|
* @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
|
* @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_cn database connexion
|
||||||
* @param $p_id jrn.jrn_def_id
|
* @param $p_id jrn.jrn_def_id
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@ class HttpInput
|
||||||
}
|
}
|
||||||
if (!array_key_exists($p_name,$this->array))
|
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);
|
EXC_PARAM_VALUE);
|
||||||
}
|
}
|
||||||
$this->check_type($p_name, $p_type);
|
$this->check_type($p_name, $p_type);
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,61 @@
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* @brief Display the tabs
|
* @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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,8 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
// Copyright Author Dany De Bontridder danydb@aevalys.eu
|
// Copyright Author Dany De Bontridder danydb@aevalys.eu
|
||||||
/** \file
|
/**
|
||||||
|
* \file
|
||||||
* \brief included file for customizing with the vat (account,rate...)
|
* \brief included file for customizing with the vat (account,rate...)
|
||||||
*/
|
*/
|
||||||
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
|
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export PGCLUSTER=12/main
|
export PGCLUSTER=17/main
|
||||||
DOSSIER_TEST=rel91dossier25
|
DOSSIER_TEST=rel91dossier25
|
||||||
FILE_TEST=dossier25.sql
|
FILE_TEST=dossier25.sql
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -901,7 +901,7 @@ class Acc_LedgerTest extends TestCase
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
\Noalyss\Facility::save_file(__DIR__."/file", "acc_ledger-input_new.html", $result);
|
\Noalyss\Facility::save_file(__DIR__."/file", "acc_ledger-input_new.html", $result);
|
||||||
$size=filesize(__DIR__."/file/acc_ledger-input_new.html");
|
$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");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue