noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
ajax_check_vatnumber.php File Reference

check the VAT Number with VIES, More...

Go to the source code of this file.

Variables

 $array
 
 $country = substr($vatnr, 0, 2)
 
 $curl = curl_init(VATCHECK_URL . "/check-vat-number")
 
 $http = new \HttpInput()
 
 $json = curl_exec($curl)
 
if(empty($json)) $obj = json_decode($json)
 
 $p_domid = $http->get("p_domid")
 
catch(\Exception $e) $vatnr = strtoupper($vatnr)
 
if(isset( $obj->actionSucceed) &&$obj->actionSucceed==false) if($obj->valid==true) else
 
$obj html =_('non valide')
 
 try
 

Detailed Description

check the VAT Number with VIES,

See also
ivatnumber.class.php

Definition in file ajax_check_vatnumber.php.

Variable Documentation

◆ $array

$array
Initial value:
= array(
"countryCode" => $country,
"vatNumber" => $vatnr,
"requesterMemberStateCode" => "",
"requesterNumber" => "",
"traderName" => "",
"traderStreet" => "",
"traderPostalCode" => "",
"traderCity" => "",
"traderCompanyType" => ""
)
catch(\Exception $e) $vatnr

Definition at line 40 of file ajax_check_vatnumber.php.

◆ $country

$country = substr($vatnr, 0, 2)

Definition at line 38 of file ajax_check_vatnumber.php.

Referenced by Database\apply_patch().

◆ $curl

$curl = curl_init(VATCHECK_URL . "/check-vat-number")

Definition at line 52 of file ajax_check_vatnumber.php.

◆ $http

$http = new \HttpInput()

Definition at line 28 of file ajax_check_vatnumber.php.

◆ $json

$json = curl_exec($curl)

Definition at line 61 of file ajax_check_vatnumber.php.

Referenced by Acc_Ledger_Search\build_search_filter().

◆ $obj

if (empty( $json)) $obj = json_decode($json)

Definition at line 72 of file ajax_check_vatnumber.php.

◆ $p_domid

$p_domid = $http->get("p_domid")

Definition at line 32 of file ajax_check_vatnumber.php.

Referenced by Icon_Action\longer(), and Icon_Action\show_note().

◆ $vatnr

$vatnr = strtoupper($vatnr)

Definition at line 37 of file ajax_check_vatnumber.php.

◆ else

if(isset($obj->actionSucceed) && $obj->actionSucceed==false) if ( $obj->valid==true) else
Initial value:
{
$obj->status = 'NOK'

Definition at line 92 of file ajax_check_vatnumber.php.

◆ html

$obj html =_('non valide')

Definition at line 94 of file ajax_check_vatnumber.php.

◆ try

try
Initial value:
{
$vatnr = $http->get("vatnr")

Definition at line 30 of file ajax_check_vatnumber.php.