Merge avant mise en production
This commit is contained in:
commit
72258a7807
@ -15,10 +15,24 @@ $dejaCommande = false;
|
|||||||
$noemail = false;
|
$noemail = false;
|
||||||
$sameLogin = false;
|
$sameLogin = false;
|
||||||
$idCommande = 0;
|
$idCommande = 0;
|
||||||
|
|
||||||
//Vérification des commandes
|
//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',
|
$rep = mysql_select('commandes',
|
||||||
' idCommande, login, emailCommande, dateCommande',
|
' idCommande, login, emailCommande, dateCommande',
|
||||||
"siren=$siren AND refDocument='$ref'");
|
"siren=$siren AND refDocument='$searchRef'");
|
||||||
|
|
||||||
//Fichier de vérouillage commande en cours
|
//Fichier de vérouillage commande en cours
|
||||||
$lockFile = PATH_SITE.'/cache/'.$siren.'-'.$ref.'.txt';
|
$lockFile = PATH_SITE.'/cache/'.$siren.'-'.$ref.'.txt';
|
||||||
|
@ -97,7 +97,7 @@ foreach($tabUnit as $unit)
|
|||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
//Exportation excel
|
//Exportation excel
|
||||||
if(isset($_REQUEST['mil']))
|
if(isset($_REQUEST['mil']) && $_SESSION['tabInfo']['idClient']==1)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user