+
+
+ {$jrn_sup->js_description}
+
+
+ {$icon_remove}
+
+
+EOF;
+ }
+ else
+ {
+ // failed
+ print '';
+ echo_warning(_("1 Echec ").$_FILES["name"]);
+ print '
';
+ }
+
+ }
+ else
+ {
+ //failed
+ // failed
+ print '';
+ echo_warning(_("2 Echec ").$_FILES["name"]);
+ print '
';
+ }
+ }
+
+ $cn->commit();
+ return;
+ case 'refresh_file':
+ //------------------------------------------------
+ // refresh list of suppemental files
+ //------------------------------------------------
+ Acc_Document::display_supplementary_doc($cn, $http->get("div"), $http->get("jr_id"));
+
return;
}
$html = escape_xml($html);
diff --git a/include/ajax/ajax_search_peppol.php b/include/ajax/ajax_search_peppol.php
index be5ad08b5..47fd92e9c 100644
--- a/include/ajax/ajax_search_peppol.php
+++ b/include/ajax/ajax_search_peppol.php
@@ -78,7 +78,11 @@ echo \HtmlInput::title_box(_("Recherche PEPPOL Directory"), 'peppol_id_search_di
$input_query = new IText("query", $query);
$select_filter = new ISelect("filter");
- $select_filter->transform(["vatid" => _("Numéro de TVA"), "entid" => _("Numéro entreprise"), "name" => _("Nom")]);
+ $select_filter->transform(["vatid" => _("Numéro de TVA")
+ , "entid" => _("Numéro entreprise")
+ , "peppolid" => _("Endpoint (PEPPOL ID)")
+ , "name" => _("Nom")
+ ]);
$select_filter->selected = $filter
?>
= $select_filter->input() ?>
@@ -97,7 +101,7 @@ echo \HtmlInput::title_box(_("Recherche PEPPOL Directory"), 'peppol_id_search_di
'; // div class content
return;
@@ -127,6 +131,9 @@ switch ($filter)
}
$search = http_build_query(["participant" => 'iso6523-actorid-upis::0208:' . $query]);
break;
+ case 'peppolid':
+ $search = http_build_query(["participant" => 'iso6523-actorid-upis::' . $query]);
+ break;
default:
throw new \Exception("ASP129 unknown filter",129);
}
diff --git a/include/ajax/ajax_search_vatex.php b/include/ajax/ajax_search_vatex.php
new file mode 100644
index 000000000..ce8bdd38b
--- /dev/null
+++ b/include/ajax/ajax_search_vatex.php
@@ -0,0 +1,61 @@
+get("select_code","string","");
+ $dgbox=$http->get("dgbox");
+
+} catch (Exception $exc) {
+ echo $exc->getTraceAsString();
+}
+
+
+if ($select_code == "")
+{
+
+ require_once NOALYSS_TEMPLATE."/ajax-search_vatex.php";
+ return;
+}
+
+//------------------------------------------------
+// a VATEX Code has been selected
+//------------------------------------------------
+if ($select_code != "")
+{
+ $row=$cn->get_row("select vx_code,vx_code_name,vx_description,vx_remark from vatex_code where vx_code=$1",
+ [$select_code]);
+ $answer=array();
+ if ( ! empty ($row))
+ {
+ $answer['vx_code']=$row['vx_code'];
+ $answer['vx_value']=Icon_Action::trash(uniqid(),"vat_code.select_value('xx')").$row['vx_code'];
+ $answer['vx_description']=$row['vx_description'].span($row['vx_remark'],' class="text-muted" ');
+ }else {
+ $answer['vx_code']=$answer['vx_value']=$answer['vx_description']="";
+ }
+ echo json_response($answer);
+ return;
+}
diff --git a/include/anc_od.inc.php b/include/anc_od.inc.php
index c7bad6b60..e5892d216 100644
--- a/include/anc_od.inc.php
+++ b/include/anc_od.inc.php
@@ -41,27 +41,28 @@ if ( ! $m )
}
$dossier_id=Dossier::id();
-
-
-echo '
-