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

search Peppol ID. More...

Go to the source code of this file.

Data Structures

class  PEPPOL_Entity_Contact
 
class  PEPPOL_Entity_Record
 
class  PEPPOL_Match_Record
 Found PEPPOL Elements, inner class. More...
 

Variables

 $a_match = $xml->getElementsByTagName("match")
 
 $ctl_id = $http->request('ctl', 'string')
 
 $filter = $http->request('filter', 'string', '')
 
 $http = new HttpInput()
 
 $input_query = new IText("query", $query)
 
 $msg = _("La recherche par nom et numéro de TVA sont limitées à la Belgique")
 
 $nb_match = $a_match->count()
 
for( $i=0;$i< $nb_match;$i++) if(empty($result)) $nb_result =count($result)
 
 $result =array()
 
 $root = $xml->getElementsByTagName("resultlist")
 
if(trim($query)==''|| $filter=='') $search = null
 
 $select_filter = new ISelect("filter")
 
 $str = curl_exec($curl)
 
catch(\Exception $e) $xml = new DOMDocument()
 
if(count($root)==0) else
 
 for ( $i=0; $i< $nb_result; $i++)
 
$select_filter selected = $input_query->input()
 
 try
 

Detailed Description

search Peppol ID.

Parameters :

  • query : string to search
  • ctl : DOMID to udpate (useless)
  • filter: query on name , VAT id or Enterprise ID

Definition in file ajax_search_peppol.php.

Variable Documentation

◆ $a_match

$a_match = $xml->getElementsByTagName("match")

Definition at line 186 of file ajax_search_peppol.php.

◆ $ctl_id

$ctl_id = $http->request('ctl', 'string')

Definition at line 39 of file ajax_search_peppol.php.

◆ $filter

◆ $http

$http = new HttpInput()

Definition at line 33 of file ajax_search_peppol.php.

◆ $input_query

$input_query = new IText("query", $query)

Definition at line 89 of file ajax_search_peppol.php.

◆ $msg

$msg = _("La recherche par nom et numéro de TVA sont limitées à la Belgique")

Definition at line 76 of file ajax_search_peppol.php.

◆ $nb_match

$nb_match = $a_match->count()

Definition at line 187 of file ajax_search_peppol.php.

◆ $nb_result

for($i=0; $i< $nb_match; $i++) if (empty( $result)) $nb_result =count($result)

Definition at line 250 of file ajax_search_peppol.php.

Referenced by convert_to_rtf().

◆ $result

$result =array()

Definition at line 189 of file ajax_search_peppol.php.

Referenced by Acc_Reconciliation\auto_letter(), Noalyss\XMLDocument\XMLInvoice\build_data(), Card_Property\build_input(), Noalyss\XMLDocument\InvoiceUBL21\build_Invoice(), Noalyss\XMLDocument\InvoiceUBL21\build_invoiceLine(), Noalyss\XMLDocument\InvoiceUBL21\build_legalMonetaryTotal(), check_iban(), convert_to_rtf(), Fiche\count_by_modele(), decodeURI(), decodeURIComponent(), Noalyss\Widget\Mini_Report\display(), Anc_Operation\display_form_plan(), Manage_Table_SQL\display_table(), encodeURI(), encodeURIComponent(), escape(), Noalyss\XMLDocument\XMLInvoice\fill_customer(), Noalyss\XMLDocument\XMLInvoice\fill_document(), Noalyss\XMLDocument\XMLInvoice\fill_operation_from_array(), Noalyss\XMLDocument\XMLInvoice\fill_supplier(), Acc_Bilan\generate(), Fiche_Def_Ref\get_by_modele(), Fiche\get_fiche_def_ref_id(), Noalyss_User\get_first_week_day(), Noalyss\XMLDocument\XMLCreditNote_Reader\get_invoiceLine(), Noalyss\XMLDocument\XMLInvoice_Reader\get_invoiceLine(), Acc_Account_Ledger\get_row_date(), Noalyss\XMLDocument\XMLCreditNote_Reader\get_taxes(), Noalyss\XMLDocument\XMLInvoice_Reader\get_taxes(), Noalyss_User\get_vat_code_preference(), Noalyss\XMLDocument\InvoiceUBL21\include_document(), Card_Property\input(), Acc_Plan_SQL\load(), Table_Data_SQL\load(), V_Currency_Last_Value_SQL\load(), Impress\parse_formula(), Acc_Ledger\save_new(), Stock_Goods\take_last_inventory(), Document\transform2pdf(), transform_sql_filter_per(), unescape(), Acc_Ledger\update(), Acc_Bilan\verify(), and Acc_Ledger\verify_ledger().

◆ $root

◆ $search

if (trim( $query)==''||$filter=='') $search = null

◆ $select_filter

$select_filter = new ISelect("filter")

Definition at line 90 of file ajax_search_peppol.php.

◆ $str

◆ $xml

catch (\Exception $e) $xml = new DOMDocument()

Definition at line 172 of file ajax_search_peppol.php.

◆ else

if (count( $root)==0) else
Initial value:
{
printf(_("Résultat %d"), $root[0]->getAttribute("total-result-count"))
_("actif, passif,charge,...")

Definition at line 181 of file ajax_search_peppol.php.

◆ for

for($i=0;$i< $nb_result;$i++) ( )

Definition at line 254 of file ajax_search_peppol.php.

◆ selected

$select_filter selected = $input_query->input()

Definition at line 96 of file ajax_search_peppol.php.

◆ try

switch ( $filter) try
Initial value:
{
$query = $http->request('query', 'string', '')

Definition at line 34 of file ajax_search_peppol.php.