From 6b4a9249c920b166672b8008c59f89d3926d9aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20France?= Date: Sun, 4 Feb 2024 10:02:12 +0100 Subject: [PATCH] start to add product --- .../facture/doc/doc_easydoc_invoice_html.modules.php | 6 +++--- .../product/doc/doc_easydoc_product_html.modules.php | 2 +- .../propale/doc/doc_easydoc_propale_html.modules.php | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/core/modules/facture/doc/doc_easydoc_invoice_html.modules.php b/core/modules/facture/doc/doc_easydoc_invoice_html.modules.php index 2c21cac..8105986 100644 --- a/core/modules/facture/doc/doc_easydoc_invoice_html.modules.php +++ b/core/modules/facture/doc/doc_easydoc_invoice_html.modules.php @@ -64,7 +64,7 @@ public function __construct($db) $langs->loadLangs(["main", "companies", "easydocgenerator@easydocgenerator"]); $this->db = $db; - $this->name = "HTML templates"; + $this->name = "Easydoc templates"; $this->description = $langs->trans("DocumentModelEasydocgeneratorTemplate"); // Name of constant that is used to save list of directories to scan $this->scandir = 'INVOICE_ADDON_EASYDOC_TEMPLATES_PATH'; @@ -146,8 +146,8 @@ public function info($langs) $texthelp = $langs->trans("ListOfDirectoriesForModelGenHTML"); $texthelp .= '

' . $langs->trans("ExampleOfDirectoriesForModelGen") . ''; // Add list of substitution keys - $texthelp .= '
' . $langs->trans("FollowingSubstitutionKeysCanBeUsed") . '
'; - $texthelp .= $langs->transnoentitiesnoconv("FullListOnOnlineDocumentation"); // This contains an url, we don't modify it + // $texthelp .= '
' . $langs->trans("FollowingSubstitutionKeysCanBeUsed") . '
'; + // $texthelp .= $langs->transnoentitiesnoconv("FullListOnOnlineDocumentation"); // This contains an url, we don't modify it $text .= $form->textwithpicto($texttitle, $texthelp, 1, 'help', '', 1, 3, $this->name); $text .= '
'; diff --git a/core/modules/product/doc/doc_easydoc_product_html.modules.php b/core/modules/product/doc/doc_easydoc_product_html.modules.php index 905b4ab..f75e7e7 100644 --- a/core/modules/product/doc/doc_easydoc_product_html.modules.php +++ b/core/modules/product/doc/doc_easydoc_product_html.modules.php @@ -205,7 +205,7 @@ public function info($langs) /** * Function to build a document on disk using the generic odt module. * - * @param Commande $object Object source to build document + * @param Product $object Object source to build document * @param Translate $outputlangs Lang output object * @param string $srctemplatepath Full path of source filename for generator using a template file * @param int $hidedetails Do not show line details diff --git a/core/modules/propale/doc/doc_easydoc_propale_html.modules.php b/core/modules/propale/doc/doc_easydoc_propale_html.modules.php index d35246a..82cf4a7 100644 --- a/core/modules/propale/doc/doc_easydoc_propale_html.modules.php +++ b/core/modules/propale/doc/doc_easydoc_propale_html.modules.php @@ -61,11 +61,11 @@ public function __construct($db) global $langs, $mysoc; // Load translation files required by the page - $langs->loadLangs(["main", "companies"]); + $langs->loadLangs(["main", "companies", "easydocgenerator@easydocgenerator"]); $this->db = $db; - $this->name = "HTML templates"; - $this->description = $langs->trans("DocumentModelHtml"); + $this->name = "Easydoc templates"; + $this->description = $langs->trans("DocumentModelEasydocgeneratorTemplate"); // Name of constant that is used to save list of directories to scan $this->scandir = 'PROPALE_ADDON_EASYDOC_TEMPLATES_PATH'; // Save the name of generated file as the main doc when generating a doc with this template @@ -146,8 +146,8 @@ public function info($langs) $texthelp = $langs->trans("ListOfDirectoriesForModelGenHTML"); $texthelp .= '

' . $langs->trans("ExampleOfDirectoriesForModelGen") . ''; // Add list of substitution keys - $texthelp .= '
' . $langs->trans("FollowingSubstitutionKeysCanBeUsed") . '
'; - $texthelp .= $langs->transnoentitiesnoconv("FullListOnOnlineDocumentation"); // This contains an url, we don't modify it + // $texthelp .= '
' . $langs->trans("FollowingSubstitutionKeysCanBeUsed") . '
'; + // $texthelp .= $langs->transnoentitiesnoconv("FullListOnOnlineDocumentation"); // This contains an url, we don't modify it $text .= $form->textwithpicto($texttitle, $texthelp, 1, 'help', '', 1, 3, $this->name); $text .= '
';