Correction gestion num commande fournisseur
This commit is contained in:
parent
6597144a2e
commit
44becfa0a3
@ -368,27 +368,14 @@ class CommandeFournisseur extends Commande
|
||||
$modelisok=0;
|
||||
$liste=array();
|
||||
|
||||
// Positionne modele sur le nom du modele de commande à utiliser
|
||||
$file = "pdf_".$modele.".modules.php";
|
||||
if ($modele && file_exists($dir.$file)) $modelisok=1;
|
||||
|
||||
// Si model pas encore bon
|
||||
if (! $modelisok)
|
||||
{
|
||||
if ($conf->global->COMMANDE_ADDON_PDF) $modele = $conf->global->COMMANDE_ADDON_PDF;
|
||||
$file = "pdf_".$modele.".modules.php";
|
||||
if (file_exists($dir.$file)) $modelisok=1;
|
||||
}
|
||||
|
||||
|
||||
if (defined('COMMANDE_SUPPLIER_ADDON'))
|
||||
if (defined('COMMANDE_SUPPLIER_ADDON') && COMMANDE_SUPPLIER_ADDON)
|
||||
{
|
||||
$file = COMMANDE_SUPPLIER_ADDON.'.php';
|
||||
|
||||
if (is_readable($dir.'/'.$file))
|
||||
{
|
||||
// Definition du nom de module de numerotation de commande fournisseur
|
||||
$modName=COMMANDE_SUPPLIER_ADDON;
|
||||
$modName=$conf->global->COMMANDE_SUPPLIER_ADDON;
|
||||
require_once($dir.'/'.$file);
|
||||
|
||||
// Recuperation de la nouvelle reference
|
||||
@ -409,7 +396,7 @@ class CommandeFournisseur extends Commande
|
||||
}
|
||||
else
|
||||
{
|
||||
print $langs->trans("Error")." ".$langs->trans("FailedToLoadCOMMANDE_SUPPLIER_ADDONFile");
|
||||
print $langs->trans("Error")." ".$langs->trans("Error_FailedToLoad_COMMANDE_SUPPLIER_ADDON_File",$conf->global->COMMANDE_SUPPLIER_ADDON);
|
||||
return -2;
|
||||
}
|
||||
}
|
||||
|
||||
@ -79,6 +79,10 @@ ActionsOnOrder=Actions on order
|
||||
NoArticleOfTypeProduct=No article of type 'product' so no shippable article for this order
|
||||
OrderMode=Order method
|
||||
AuthorRequest=Request author
|
||||
Error_COMMANDE_SUPPLIER_ADDON_NotDefined=Constant COMMANDE_SUPPLIER_ADDON not defined
|
||||
Error_COMMANDE_ADDON_NotDefined=Constant COMMANDE_ADDON not defined
|
||||
Error_FailedToLoad_COMMANDE_SUPPLIER_ADDON_File=Failed to load module file '%s'
|
||||
Error_FailedToLoad_COMMANDE_ADDON_File=Failed to load module file '%s'
|
||||
# Sources
|
||||
OrderSource0=Commercial proposal
|
||||
OrderSource1=Internet
|
||||
|
||||
@ -79,6 +79,10 @@ ActionsOnOrder=Actions sur la commande
|
||||
NoArticleOfTypeProduct=Pas d'article de type 'produit' et donc expédiable dans cette commande
|
||||
OrderMode=Méthode de commande
|
||||
AuthorRequest=Auteur/Demandeur
|
||||
Error_COMMANDE_SUPPLIER_ADDON_NotDefined=Constante COMMANDE_SUPPLIER_ADDON non définie
|
||||
Error_COMMANDE_ADDON_NotDefined=Constante COMMANDE_ADDON non définie
|
||||
Error_FailedToLoad_COMMANDE_SUPPLIER_ADDON_File=Echec chargement du fichier module '%s'
|
||||
Error_FailedToLoad_COMMANDE_ADDON_File=Echec chargement du fichier module '%s'
|
||||
# Sources
|
||||
OrderSource0=Proposition commerciale
|
||||
OrderSource1=Internet
|
||||
|
||||
Loading…
Reference in New Issue
Block a user