Gestion des changements de référence chez infogreffe
This commit is contained in:
parent
9e236400e3
commit
17a4b7f046
@ -15,10 +15,24 @@ $dejaCommande = false;
|
||||
$noemail = false;
|
||||
$sameLogin = false;
|
||||
$idCommande = 0;
|
||||
|
||||
//Vérification des commandes
|
||||
if (preg_match('/^([0-9]{4})[_sociaux-|_-]/', $ref, $matches))
|
||||
{
|
||||
$searchRef = '^'.$matches[1].'[_-|_sociaux-]';
|
||||
}
|
||||
elseif (preg_match('/^([0-9]{4})_consolide-/', $ref, $matches))
|
||||
{
|
||||
$searchRef = '^'.$matches[1].'_consolide-';
|
||||
}
|
||||
else
|
||||
{
|
||||
$searchRef = $ref;
|
||||
}
|
||||
|
||||
$rep = mysql_select('commandes',
|
||||
' idCommande, login, emailCommande, dateCommande',
|
||||
"siren=$siren AND refDocument='$ref'");
|
||||
"siren=$siren AND refDocument='$searchRef'");
|
||||
|
||||
//Fichier de vérouillage commande en cours
|
||||
$lockFile = PATH_SITE.'/cache/'.$siren.'-'.$ref.'.txt';
|
||||
|
Loading…
x
Reference in New Issue
Block a user