Fix: cette variable n'tait utile que pour les factures
This commit is contained in:
parent
59e7da296d
commit
5dea83b485
@ -201,12 +201,10 @@ if ($handle)
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&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;
|
||||
|
||||
@ -202,12 +202,10 @@ if ($handle)
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&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;
|
||||
|
||||
@ -215,12 +215,10 @@ if ($handle)
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&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;
|
||||
|
||||
@ -174,7 +174,7 @@ class Commande extends CommonObject
|
||||
|
||||
$obj = new $classname();
|
||||
$numref = "";
|
||||
$numref = $obj->getNextValue($soc,$this);
|
||||
$numref = $obj->getNextValue($soc);
|
||||
|
||||
if ( $numref != "")
|
||||
{
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user