Fix: cette variable n'tait utile que pour les factures

This commit is contained in:
Regis Houssin 2007-05-15 16:36:29 +00:00
parent 59e7da296d
commit 5dea83b485
7 changed files with 11 additions and 17 deletions

View File

@ -201,12 +201,10 @@ if ($handle)
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&amp;value='.$file.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Activate").'</a>';
}
print '</td>';
$commande = new Commande($db);
// Info
$htmltooltip='';
$nextval=$module->getNextValue($mysoc,$commande);
$nextval=$module->getNextValue($mysoc);
if ($nextval != $langs->trans("NotAvailable"))
{
$htmltooltip='<b>'.$langs->trans("NextValue").'</b>: '.$nextval;

View File

@ -202,12 +202,10 @@ if ($handle)
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&amp;value='.$file.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Activate").'</a>';
}
print '</td>';
$commande = new CommandeFournisseur($db);
// Info
$htmltooltip='';
$nextval=$module->getNextValue($mysoc,$commande);
$nextval=$module->getNextValue($mysoc);
if ($nextval != $langs->trans("NotAvailable"))
{
$htmltooltip='<b>'.$langs->trans("NextValue").'</b>: '.$nextval;

View File

@ -215,12 +215,10 @@ if ($handle)
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&amp;value='.$file.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Activate").'</a>';
}
print '</td>';
$propale = new Propal($db);
// Info
$htmltooltip='';
$nextval=$module->getNextValue($mysoc,$propale);
$nextval=$module->getNextValue($mysoc);
if ($nextval != $langs->trans("NotAvailable"))
{
$htmltooltip='<b>'.$langs->trans("NextValue").'</b>: '.$nextval;

View File

@ -174,7 +174,7 @@ class Commande extends CommonObject
$obj = new $classname();
$numref = "";
$numref = $obj->getNextValue($soc,$this);
$numref = $obj->getNextValue($soc);
if ( $numref != "")
{

View File

@ -232,7 +232,7 @@ function info()
* \param commande Objet commande fournisseur
* \return string Valeur
*/
function getNextValue($objsoc,$commande)
function getNextValue($objsoc)
{
global $db,$conf;
@ -443,9 +443,9 @@ function info()
* \param commande Objet commande
* \return string Texte descripif
*/
function commande_get_num($objsoc=0,$commande)
function commande_get_num($objsoc=0)
{
return $this->getNextValue($objsoc,$commande);
return $this->getNextValue($objsoc);
}
}

View File

@ -232,7 +232,7 @@ function info()
* \param commande Objet commande
* \return string Valeur
*/
function getNextValue($objsoc,$commande)
function getNextValue($objsoc=0)
{
global $db,$conf;
@ -443,9 +443,9 @@ function info()
* \param commande Objet commande
* \return string Texte descripif
*/
function commande_get_num($objsoc=0,$commande)
function commande_get_num($objsoc=0)
{
return $this->getNextValue($objsoc,$commande);
return $this->getNextValue($objsoc);
}
}

View File

@ -232,7 +232,7 @@ function info()
* \param propale Objet propale
* \return string Valeur
*/
function getNextValue($objsoc=0,$propale)
function getNextValue($objsoc=0)
{
global $db,$conf;