Enhance debian package
This commit is contained in:
parent
523b83a262
commit
c8f3429640
@ -22,7 +22,7 @@
|
|||||||
* \ingroup societe
|
* \ingroup societe
|
||||||
* \brief File of class to build ODT documents for third parties
|
* \brief File of class to build ODT documents for third parties
|
||||||
* \author Laurent Destailleur
|
* \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");
|
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");
|
$texthelp=$langs->trans("ListOfDirectoriesForModelGenODT");
|
||||||
// Add list of substitution keys
|
// Add list of substitution keys
|
||||||
$texthelp.='<br>'.$langs->trans("FollowingSubstitutionKeysCanBeUsed").'<br>';
|
$texthelp.='<br>'.$langs->trans("FollowingSubstitutionKeysCanBeUsed").'<br>';
|
||||||
$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.'}<br>';
|
||||||
|
$nb++;
|
||||||
|
if ($nb >= 5) { $texthelp.='...<br>'; break; }
|
||||||
|
}
|
||||||
|
$dummy=new Societe($db);
|
||||||
|
$tmparray=$this->get_substitutionarray_mysoc($dummy,$langs);
|
||||||
|
$nb=0;
|
||||||
|
foreach($tmparray as $key => $val)
|
||||||
|
{
|
||||||
|
$texthelp.='{'.$key.'}<br>';
|
||||||
|
$nb++;
|
||||||
|
if ($nb >= 5) { $texthelp.='...<br>'; break; }
|
||||||
|
}
|
||||||
|
$tmparray=$this->get_substitutionarray_thirdparty($dummy,$langs);
|
||||||
|
$nb=0;
|
||||||
|
foreach($tmparray as $key => $val)
|
||||||
|
{
|
||||||
|
$texthelp.='{'.$key.'}<br>';
|
||||||
|
$nb++;
|
||||||
|
if ($nb >= 5) { $texthelp.='...<br>'; break; }
|
||||||
|
}*/
|
||||||
|
$texthelp.=$langs->trans("FullListOnOnlineDocumentation");
|
||||||
|
|
||||||
|
$texte.= $form->textwithpicto($texttitle,$texthelp,1,'help');
|
||||||
|
//var_dump($listofdir);
|
||||||
|
|
||||||
$texte.= $form->textwithpicto($texttitle,$texthelp,1,'help','',1);
|
|
||||||
$texte.= '<table><tr><td>';
|
$texte.= '<table><tr><td>';
|
||||||
$texte.= '<textarea class="flat" cols="60" name="value1">';
|
$texte.= '<textarea class="flat" cols="60" name="value1">';
|
||||||
$texte.=$conf->global->FACTURE_ADDON_PDF_ODT_PATH;
|
$texte.=$conf->global->FACTURE_ADDON_PDF_ODT_PATH;
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
* \ingroup societe
|
* \ingroup societe
|
||||||
* \brief File of class to build ODT documents for third parties
|
* \brief File of class to build ODT documents for third parties
|
||||||
* \author Laurent Destailleur
|
* \author Laurent Destailleur
|
||||||
* \version $Id: doc_generic_odt.modules.php,v 1.32 2011/07/21 22:54:35 eldy Exp $
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT."/includes/modules/societe/modules_societe.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/includes/modules/societe/modules_societe.class.php");
|
||||||
@ -115,9 +115,37 @@ class doc_generic_odt extends ModeleThirdPartyDoc
|
|||||||
$texthelp=$langs->trans("ListOfDirectoriesForModelGenODT");
|
$texthelp=$langs->trans("ListOfDirectoriesForModelGenODT");
|
||||||
// Add list of substitution keys
|
// Add list of substitution keys
|
||||||
$texthelp.='<br>'.$langs->trans("FollowingSubstitutionKeysCanBeUsed").'<br>';
|
$texthelp.='<br>'.$langs->trans("FollowingSubstitutionKeysCanBeUsed").'<br>';
|
||||||
$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.'}<br>';
|
||||||
|
$nb++;
|
||||||
|
if ($nb >= 5) { $texthelp.='...<br>'; break; }
|
||||||
|
}
|
||||||
|
$dummy=new Societe($db);
|
||||||
|
$tmparray=$this->get_substitutionarray_mysoc($dummy,$langs);
|
||||||
|
$nb=0;
|
||||||
|
foreach($tmparray as $key => $val)
|
||||||
|
{
|
||||||
|
$texthelp.='{'.$key.'}<br>';
|
||||||
|
$nb++;
|
||||||
|
if ($nb >= 5) { $texthelp.='...<br>'; break; }
|
||||||
|
}
|
||||||
|
$tmparray=$this->get_substitutionarray_thirdparty($dummy,$langs);
|
||||||
|
$nb=0;
|
||||||
|
foreach($tmparray as $key => $val)
|
||||||
|
{
|
||||||
|
$texthelp.='{'.$key.'}<br>';
|
||||||
|
$nb++;
|
||||||
|
if ($nb >= 5) { $texthelp.='...<br>'; break; }
|
||||||
|
}*/
|
||||||
|
$texthelp.=$langs->trans("FullListOnOnlineDocumentation");
|
||||||
|
|
||||||
|
$texte.= $form->textwithpicto($texttitle,$texthelp,1,'help');
|
||||||
|
//var_dump($listofdir);
|
||||||
|
|
||||||
$texte.= $form->textwithpicto($texttitle,$texthelp,1,'help','',1);
|
|
||||||
$texte.= '<table><tr><td>';
|
$texte.= '<table><tr><td>';
|
||||||
$texte.= '<textarea class="flat" cols="60" name="value1">';
|
$texte.= '<textarea class="flat" cols="60" name="value1">';
|
||||||
$texte.=$conf->global->COMPANY_ADDON_PDF_ODT_PATH;
|
$texte.=$conf->global->COMPANY_ADDON_PDF_ODT_PATH;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user