diff --git a/htdocs/includes/modules/facture/doc/doc_generic_invoice_odt.modules.php b/htdocs/includes/modules/facture/doc/doc_generic_invoice_odt.modules.php index e42ecd75db5..a6536023b1e 100644 --- a/htdocs/includes/modules/facture/doc/doc_generic_invoice_odt.modules.php +++ b/htdocs/includes/modules/facture/doc/doc_generic_invoice_odt.modules.php @@ -22,7 +22,7 @@ * \ingroup societe * \brief File of class to build ODT documents for third parties * \author Laurent Destailleur - * \version $Id: doc_generic_invoice_odt.modules.php,v 1.19 2011/07/21 22:54:36 eldy Exp $ + * \version $Id$ */ require_once(DOL_DOCUMENT_ROOT."/includes/modules/facture/modules_facture.php"); @@ -196,9 +196,37 @@ class doc_generic_invoice_odt extends ModelePDFFactures $texthelp=$langs->trans("ListOfDirectoriesForModelGenODT"); // Add list of substitution keys $texthelp.='
'.$langs->trans("FollowingSubstitutionKeysCanBeUsed").'
'; - $texthelp.=$langs->transnoentitiesnoconv("FullListOnOnlineDocumentation"); // This contains an url, we don't modify it + /*$dummy=new User($db); + $tmparray=$this->get_substitutionarray_user($dummy,$langs); + $nb=0; + foreach($tmparray as $key => $val) + { + $texthelp.='{'.$key.'}
'; + $nb++; + if ($nb >= 5) { $texthelp.='...
'; break; } + } + $dummy=new Societe($db); + $tmparray=$this->get_substitutionarray_mysoc($dummy,$langs); + $nb=0; + foreach($tmparray as $key => $val) + { + $texthelp.='{'.$key.'}
'; + $nb++; + if ($nb >= 5) { $texthelp.='...
'; break; } + } + $tmparray=$this->get_substitutionarray_thirdparty($dummy,$langs); + $nb=0; + foreach($tmparray as $key => $val) + { + $texthelp.='{'.$key.'}
'; + $nb++; + if ($nb >= 5) { $texthelp.='...
'; break; } + }*/ + $texthelp.=$langs->trans("FullListOnOnlineDocumentation"); + + $texte.= $form->textwithpicto($texttitle,$texthelp,1,'help'); + //var_dump($listofdir); - $texte.= $form->textwithpicto($texttitle,$texthelp,1,'help','',1); $texte.= '
'; $texte.= '