[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 06/21: FIX : some doc in comment
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 06/21: FIX : some doc in comment |
Date: |
Sun, 15 Dec 2024 09:51:37 -0500 (EST) |
sparkyx pushed a commit to branch unstable
in repository noalyss.
commit b0aa4167aaa81c9f0d77844914a6cd5c3276ffe7
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Fri Dec 6 17:32:59 2024 +0100
FIX : some doc in comment
---
include/class/acc_ledger.class.php | 6 ++--
include/lib/http_input.class.php | 2 +-
include/lib/output_html_tab.class.php | 56 +++++++++++++++++++++++++++++-
include/tva.inc.php | 3 +-
unit-test/include/class/acc_ledgerTest.php | 2 +-
5 files changed, 63 insertions(+), 6 deletions(-)
diff --git a/include/class/acc_ledger.class.php
b/include/class/acc_ledger.class.php
index d1dce7b28..ca9223c9f 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(""
+ . "<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
*/
/**
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/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");
}
- [Noalyss-commit] [noalyss] branch unstable updated (078674672 -> 80be65420), dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 01/21: PHP8.3 : remove deprecated in Document_Type, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 12/21: FIX P0TVA when no data, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 03/21: Improve Code Documentation, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 13/21: New : label cannot be empty, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 02/21: Merge branch '241104-correct' into unstable, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 15/21: improve Operation detail : show Analytic imputation for VAT Not Deductible, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 04/21: css : font size rem or % , remove all fixed font-size in px, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 20/21: VAT ND Analytic : fix bug, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 07/21: NEW #0002395: C0TVA : pouvoir choisir la contrepartie pour l'autoliquidation, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 06/21: FIX : some doc in comment,
dwm <=
- [Noalyss-commit] [noalyss] 21/21: Esthetic, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 11/21: FIX : javascript id$ function, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 09/21: FIX : Tax_Summary->check fails when there is no data, check was not correct, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 05/21: WIP : CSS : use variables, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 08/21: Convert upgrade.sql to upgrade202.sql, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 16/21: Operation Analytic : save_form_plan_vat_nd , check that the total is the same as the VAT ND amount, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 14/21: improve doc, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 19/21: Integrate stash, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 10/21: FIX : Tax_Summary->check fails when there is no data, check was not correct, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 17/21: Documentation, dwm, 2024/12/15