Fix: il y avait une remise à zero en début d'année
This commit is contained in:
parent
cabd6b8ae2
commit
245621ff51
@ -96,7 +96,7 @@ class mod_propale_diamant extends ModeleNumRefPropales
|
|||||||
// D'abord on récupère la valeur max (réponse immédiate car champ indéxé)
|
// D'abord on récupère la valeur max (réponse immédiate car champ indéxé)
|
||||||
|
|
||||||
$current_year = strftime("%y",time());
|
$current_year = strftime("%y",time());
|
||||||
$last_year = strftime("%y",mktime(0,0,0,date("m"),date("d"),date("Y")+1));
|
$last_year = strftime("%y",mktime(0,0,0,date("m"),date("d"),date("Y")-1));
|
||||||
|
|
||||||
$pryy = 'PR'.$current_year;
|
$pryy = 'PR'.$current_year;
|
||||||
|
|
||||||
@ -108,8 +108,9 @@ class mod_propale_diamant extends ModeleNumRefPropales
|
|||||||
{
|
{
|
||||||
$row = $db->fetch_row($resql);
|
$row = $db->fetch_row($resql);
|
||||||
$pryy='';
|
$pryy='';
|
||||||
if ($row)
|
if ($row[0]='')
|
||||||
{
|
{
|
||||||
|
print
|
||||||
$pryy = substr($row[0],0,4);
|
$pryy = substr($row[0],0,4);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -75,7 +75,7 @@ class mod_propale_ivoire extends ModeleNumRefPropales
|
|||||||
// D'abord on récupère la valeur max (réponse immédiate car champ indéxé)
|
// D'abord on récupère la valeur max (réponse immédiate car champ indéxé)
|
||||||
|
|
||||||
$current_year = strftime("%y",time());
|
$current_year = strftime("%y",time());
|
||||||
$last_year = strftime("%y",mktime(0,0,0,date("m"),date("d"),date("Y")+1));
|
$last_year = strftime("%y",mktime(0,0,0,date("m"),date("d"),date("Y")-1));
|
||||||
|
|
||||||
$pryy = 'PR'.$current_year;
|
$pryy = 'PR'.$current_year;
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ class mod_propale_ivoire extends ModeleNumRefPropales
|
|||||||
{
|
{
|
||||||
$row = $db->fetch_row($resql);
|
$row = $db->fetch_row($resql);
|
||||||
$pryy='';
|
$pryy='';
|
||||||
if ($row)
|
if ($row[0]='')
|
||||||
{
|
{
|
||||||
$pryy = substr($row[0],0,4);
|
$pryy = substr($row[0],0,4);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user