Ouverture du menu recherche internationnale
This commit is contained in:
parent
9ebae6a33c
commit
582c7e6823
@ -36,7 +36,7 @@ $report = $q->fetchOne();
|
||||
|
||||
//@TODO : si le rapport existe déjà ou que la date n'est pas très éloigné
|
||||
if($report==FALSE){
|
||||
|
||||
$firephp->info('Pas en cache');
|
||||
//Vérifier si le rapport en ligne à déjà été demandé
|
||||
$q = Doctrine_Query::create()
|
||||
->from('Commandes')
|
||||
@ -46,13 +46,19 @@ if($report==FALSE){
|
||||
$report = new Report();
|
||||
$report = $commandes->Report;
|
||||
if($commandes == FALSE && !isset($report->id)){
|
||||
$xml = getIdentite($companyProductIdentifier, $path.'/'.$fileName);
|
||||
$xml = getIdentite($CompanyProductIdentifier, $path.'/'.$fileName);
|
||||
//La commande à déjà été demandé
|
||||
}else{
|
||||
$xml = $report->content;
|
||||
}
|
||||
//Le rapport est disponible
|
||||
}else{
|
||||
|
||||
$country = Doctrine_Query::create()
|
||||
->from('Country')
|
||||
->where('graydon_country = ?', $pays)
|
||||
->fetchOne();
|
||||
|
||||
//Enregistrement d'une fausse commande dans la bdd
|
||||
$commandes = new Commandes();
|
||||
$commandes->reference = $placeOrderResult->OrderStatus->OrderReference;
|
||||
@ -67,14 +73,7 @@ if($report==FALSE){
|
||||
$commandes->transactionidentifier = $transactionIdentifier;
|
||||
$commandes->user = $tabInfo['login'];
|
||||
$commandes->mode = $_SESSION['graydon']['mode'];
|
||||
|
||||
$country = Doctrine_Query::create()
|
||||
->from('Country')
|
||||
->where('graydon_country = ?', $pays)
|
||||
->fetchOne();
|
||||
|
||||
$commandes->Country = $country;
|
||||
|
||||
$commandes->save();
|
||||
$firephp->log($commandes->toArray(),'dataCommandes');
|
||||
$commandes_id = $commandes->id;
|
||||
|
@ -9,13 +9,8 @@
|
||||
<a href="/?page=recherche&vue=dir">Rechercher par dirigeant</a>
|
||||
<?php
|
||||
// Recherche internationale
|
||||
if ($_SESSION['tabInfo']['login']=='mricois'
|
||||
|| $_SESSION['tabInfo']['login']=='mheitz'
|
||||
|| $_SESSION['tabInfo']['login']=='jmartory'
|
||||
|| $_SESSION['tabInfo']['login']=='ylenaour'
|
||||
|| $_SESSION['tabInfo']['login']=='fzicaro'
|
||||
|| $_SESSION['tabInfo']['login']=='mcochet'
|
||||
|| $_SESSION['tabInfo']['login']=='olecce' ){
|
||||
if (preg_match('/INTERNATIONAL/i', $_SESSION['tabInfo']['droits']))
|
||||
{
|
||||
?>
|
||||
<a href="/?page=international_recherche">Recherche Internationale</a>
|
||||
<?php
|
||||
|
Loading…
Reference in New Issue
Block a user