Skip to content

Commit

Permalink
start to add product
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Feb 4, 2024
1 parent eb64035 commit 6b4a924
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions core/modules/facture/doc/doc_easydoc_invoice_html.modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -146,8 +146,8 @@ public function info($langs)
$texthelp = $langs->trans("ListOfDirectoriesForModelGenHTML");
$texthelp .= '<br><br><span class="opacitymedium">' . $langs->trans("ExampleOfDirectoriesForModelGen") . '</span>';
// Add list of substitution keys
$texthelp .= '<br>' . $langs->trans("FollowingSubstitutionKeysCanBeUsed") . '<br>';
$texthelp .= $langs->transnoentitiesnoconv("FullListOnOnlineDocumentation"); // This contains an url, we don't modify it
// $texthelp .= '<br>' . $langs->trans("FollowingSubstitutionKeysCanBeUsed") . '<br>';
// $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 .= '<div><div style="display: inline-block; min-width: 100px; vertical-align: middle;">';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions core/modules/propale/doc/doc_easydoc_propale_html.modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -146,8 +146,8 @@ public function info($langs)
$texthelp = $langs->trans("ListOfDirectoriesForModelGenHTML");
$texthelp .= '<br><br><span class="opacitymedium">' . $langs->trans("ExampleOfDirectoriesForModelGen") . '</span>';
// Add list of substitution keys
$texthelp .= '<br>' . $langs->trans("FollowingSubstitutionKeysCanBeUsed") . '<br>';
$texthelp .= $langs->transnoentitiesnoconv("FullListOnOnlineDocumentation"); // This contains an url, we don't modify it
// $texthelp .= '<br>' . $langs->trans("FollowingSubstitutionKeysCanBeUsed") . '<br>';
// $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 .= '<div><div style="display: inline-block; min-width: 100px; vertical-align: middle;">';
Expand Down

0 comments on commit 6b4a924

Please sign in to comment.