giant: ajout des pays bas
This commit is contained in:
parent
eb2b0f295e
commit
54b18ee1b6
@ -2,14 +2,27 @@
|
|||||||
// --------------------------------------------------------------------------- //
|
// --------------------------------------------------------------------------- //
|
||||||
// Recherche Giant
|
// Recherche Giant
|
||||||
// --------------------------------------------------------------------------- //
|
// --------------------------------------------------------------------------- //
|
||||||
|
$pays = $formR['pays'];
|
||||||
|
|
||||||
define('NUM_ROWS', 10);
|
define('NUM_ROWS', 10);
|
||||||
define('MAX_ROWS', 200);
|
define('MAX_ROWS', 200);
|
||||||
|
|
||||||
$gServiceHeader = new StdClass;
|
$gServiceHeader = new StdClass;
|
||||||
$gServiceHeader->ConsumerId = '006';
|
$gServiceHeader->ConsumerId = '006';
|
||||||
$gServiceHeader->Provider = new StdClass;
|
$gServiceHeader->Provider = new StdClass;
|
||||||
|
switch ($pays) {
|
||||||
|
case 1:
|
||||||
$gServiceHeader->Provider->ProviderId = '001';
|
$gServiceHeader->Provider->ProviderId = '001';
|
||||||
$gServiceHeader->Provider->CountryCode = 'BE';
|
$gServiceHeader->Provider->CountryCode = 'BE';
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
$gServiceHeader->Provider->ProviderId = '003';
|
||||||
|
$gServiceHeader->Provider->CountryCode = 'NL';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
print 'Erreur sur le pays';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
$gServiceHeader->TimeStamp = date('Y-m-d\TH:i:s');
|
$gServiceHeader->TimeStamp = date('Y-m-d\TH:i:s');
|
||||||
$gServiceHeader->TestIndication = true;
|
$gServiceHeader->TestIndication = true;
|
||||||
|
|
||||||
@ -29,7 +42,7 @@ $o = new StdClass;
|
|||||||
$o->IncludePhoneticMatches = 'false';
|
$o->IncludePhoneticMatches = 'false';
|
||||||
if (empty($siret) == false) {
|
if (empty($siret) == false) {
|
||||||
$o->Query = new StdClass;
|
$o->Query = new StdClass;
|
||||||
$o->Query->VatNumber = $siret;
|
$o->Query->CompanyId = $siret;
|
||||||
$o->IncludeSuggestions = 'false';
|
$o->IncludeSuggestions = 'false';
|
||||||
$fonction = 'AdvancedSearch';
|
$fonction = 'AdvancedSearch';
|
||||||
} else {
|
} else {
|
||||||
|
@ -61,7 +61,8 @@ if (isset($formR['pays']) == false) {
|
|||||||
}
|
}
|
||||||
if ($_SESSION['tabInfo']['international_giant'] == 1) {
|
if ($_SESSION['tabInfo']['international_giant'] == 1) {
|
||||||
$recherchePaysListe = array('France',
|
$recherchePaysListe = array('France',
|
||||||
'Belgique');
|
'Belgique',
|
||||||
|
'Pays bas');
|
||||||
print '<div class="fieldgrp">';
|
print '<div class="fieldgrp">';
|
||||||
print '<label>Pays</label>';
|
print '<label>Pays</label>';
|
||||||
print '<select name="formR[pays]">';
|
print '<select name="formR[pays]">';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user