MARX#81188 Toevoegen van nieuwe factuurvelden in de JSON structuur voor T365
svn path=/Mareon/trunk/; revision=62749
This commit is contained in:
@@ -792,6 +792,7 @@ function A2012_Xtractor2AX(v_xml, xtractFile) {
|
||||
|
||||
function A365_Xtractor2AX(v_resp, i, v_deelxml, v_factuur_key, v_notification_key, v_send_invoice_2_woco)
|
||||
{
|
||||
var l_saxton_json = 0;
|
||||
var l_reponsetekst = "";
|
||||
if (v_send_invoice_2_woco == "0")
|
||||
{ // Factuur niet naar opdrachtgever sturen, is niet gewenst aldaar! De factuur wordt dus niet verwerkt (door opdrachtgever).
|
||||
@@ -809,7 +810,8 @@ function A365_Xtractor2AX(v_resp, i, v_deelxml, v_factuur_key, v_notification_ke
|
||||
|
||||
// MARX#74747 Voor T365 de Facturen via de Saxton/JSON koppeling
|
||||
if (G_ax365_url_supplierservice != "")
|
||||
{ // XML via de 'oude' supplierservice
|
||||
{ // XML via de 'oude' supplierservice, dus niet via de nieuwe Saxton/JSON koppeling.
|
||||
var l_saxton_json = 0;
|
||||
if (l_pdf_base64 != ""){
|
||||
// De node Attachment in de XML.
|
||||
var node_attachment = v_deelxml.getElementsByTagName("docfile");
|
||||
@@ -857,7 +859,7 @@ function A365_Xtractor2AX(v_resp, i, v_deelxml, v_factuur_key, v_notification_ke
|
||||
else
|
||||
{
|
||||
// JSON via Saxton/ AX webservice
|
||||
|
||||
var l_saxton_json = 1;
|
||||
// Gedeelte van het URL pad naar de webservice "PreInvoice"
|
||||
var v_company_id = Xtractor_2_CompanyID(v_deelxml);
|
||||
var v_API = "api/v0.1/" + v_company_id + "/Suppliers/PreInvoice";
|
||||
@@ -896,8 +898,8 @@ function A365_Xtractor2AX(v_resp, i, v_deelxml, v_factuur_key, v_notification_ke
|
||||
__Log("AX365 factuurverwerking NIET succesvol",1);
|
||||
}
|
||||
else {
|
||||
// Wel goed (HTTP200 oid), maar nu nog checken op basis van interne bericht, staat daar true of false....
|
||||
if (l_reponsetekst.search("<result>true</result>") != -1) {
|
||||
// Wel goed (HTTP200 oid), maar nu nog checken op basis van interne bericht, staat daar true of false in geval van SupplierService of indien het Saxton/JSON is, dan werkelijk goed verwerkt door ERP opdrachtgever....
|
||||
if (l_reponsetekst.search("<result>true</result>") != -1 || l_saxton_json == 1) {
|
||||
if (G_push_notifyqueue == "0"){
|
||||
MARX_Send_Succes_Or_Failure(v_factuur_key, "FIN_FACTUUR_POST_SUCCESS", "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user