MARX#89952 Notities in Mareon ook als notitie in Facilitor (en niet meer in afhandeling)

svn path=/Mareon/trunk/; revision=69827
This commit is contained in:
Marcel Bourseau
2025-07-21 18:15:45 +00:00
parent e5092a9571
commit 3c45681913
5 changed files with 20 additions and 9 deletions

View File

@@ -790,11 +790,12 @@ function MARX_LOG_XML_SETTINGS()
// 1.91 -- MARX#84766: Viewpoint gevoelig voor HTTP-header "Content-Type" // 1.91 -- MARX#84766: Viewpoint gevoelig voor HTTP-header "Content-Type"
// 1.92 -- MARX#84162: Mareon SYNC sequentieel per klant // 1.92 -- MARX#84162: Mareon SYNC sequentieel per klant
// 1.93 -- MARX#85115: Multi-thread check aanscherpen: onterechte uitvalmails Heyday en Vogellanden // 1.93 -- MARX#85115: Multi-thread check aanscherpen: onterechte uitvalmails Heyday en Vogellanden
// 1.94 -- MARX#86119 Integratie Viadata CI365 en Mareon voor inspectieproces + MARX#87722 Mareon mist statustekst bij opdrachtafmelding naar Facilitor // 1.94 -- MARX#86119: Integratie Viadata CI365 en Mareon voor inspectieproces + MARX#87722 Mareon mist statustekst bij opdrachtafmelding naar Facilitor
// 1.95 -- MARX#89177 Notitie komt in geval van onderbreken niet mee naar (ERP)systeem van opdrachtgever // 1.95 -- MARX#89177: Notitie komt in geval van onderbreken niet mee naar (ERP)systeem van opdrachtgever
// 1.96 -- MARX#89952: Notities in Mareon ook als notitie in Facilitor (en niet meer in afhandeling)
var G_Mareon_Adapter = "1.95"; var G_Mareon_Adapter = "1.96";
//MARX#56643: Test Haagwonen inkoopordernummer ontbreekt in Mareon ION001753 //MARX#56643: Test Haagwonen inkoopordernummer ontbreekt in Mareon ION001753
var G_new_date = new Date(); var G_new_date = new Date();

View File

@@ -5,14 +5,17 @@
// //
function FCLT_PlanServiceTask(v_company_id, v_taskId, v_externnr, v_plandate) function FCLT_PlanServiceTask(v_company_id, v_taskId, v_externnr, v_extraInfo, v_plandate)
{ {
var v_API = "MARX_OPDR_STATUS"; var v_API = "MARX_OPDR_STATUS";
var v_req = "<opdracht key=\"" + v_externnr + "\" type=\"update\">" var v_req = "<opdracht key=\"" + v_externnr + "\" type=\"update\">"
+ " <plandatum>" + v_plandate + "</plandatum>" + " <plandatum>" + v_plandate + "</plandatum>";
+ " </opdracht>";
if (v_extraInfo != ""){
v_req = v_req + " <note>" + v_extraInfo + "</note>";
}
v_req = v_req + "</opdracht>";
var v_type = 1; var v_type = 1;
var v_soapAction = ""; var v_soapAction = "";

View File

@@ -4,6 +4,10 @@
// Written by MB (2017) // Written by MB (2017)
// //
//MARX#89952 Notities in Mareon ook als notitie in Facilitor (en niet meer in afhandeling)
//Wanneer deze functie wordt aangeroepen met een eindstatus als ORDAFM of ORDCAN, dan moet de tekst 'v_extraInfo' in <opmerking>
//In alle andere gevallen, wordt de tekst in <note> naar Facilitor gestuurd.
//PS. ORDAFM verloopt via andere functie FCLT_CompleteServiceTask, maar we houden hier (alvast) rekening mee...
function FCLT_SetOpdrachtStatus(v_company_id, v_taskId, v_externnr, v_status, v_mut_datum, v_extraInfo) function FCLT_SetOpdrachtStatus(v_company_id, v_taskId, v_externnr, v_status, v_mut_datum, v_extraInfo)
{ {
@@ -11,7 +15,10 @@ var v_API = "MARX_OPDR_STATUS";
var v_req = "<opdracht key=\"" + v_externnr + "\" type=\"update\">" var v_req = "<opdracht key=\"" + v_externnr + "\" type=\"update\">"
+ " <status>" + v_status + "</status>"; + " <status>" + v_status + "</status>";
if (v_extraInfo != ""){ if (v_extraInfo != ""){
v_req = v_req + " <opmerking>" + v_extraInfo + "</opmerking>"; if (v_status == "ORDCAN" || v_status == "ORDAFM")
v_req = v_req + " <opmerking>" + v_extraInfo + "</opmerking>";
else
v_req = v_req + " <note>" + v_extraInfo + "</note>";
} }
if (v_mut_datum != ""){ if (v_mut_datum != ""){
v_req = v_req + "<mut_datum>" + v_mut_datum + "</mut_datum>"; v_req = v_req + "<mut_datum>" + v_mut_datum + "</mut_datum>";

View File

@@ -10,7 +10,7 @@ function FCLT_SetSupplierText(v_company_id, v_taskId, v_externnr, v_extraInfo)
var v_API = "MARX_OPDR_STATUS"; var v_API = "MARX_OPDR_STATUS";
var v_req = "<opdracht key=\"" + v_externnr + "\" type=\"update\">" var v_req = "<opdracht key=\"" + v_externnr + "\" type=\"update\">"
+ " <opmerking>" + v_extraInfo + "</opmerking>" + " <note>" + v_extraInfo + "</note>"
+ " </opdracht>"; + " </opdracht>";

View File

@@ -76,7 +76,7 @@ function GEN_PlanServiceTask(v_company_id, v_woco_gln, v_lev_gln, v_taskId, v_ex
v_resp = T_PlanServiceTask (v_company_id, v_taskId, v_date); v_resp = T_PlanServiceTask (v_company_id, v_taskId, v_date);
} }
if (AX_or_Tobias() == "F") { if (AX_or_Tobias() == "F") {
v_resp = FCLT_PlanServiceTask (v_company_id, v_taskId, v_externnr, v_date); v_resp = FCLT_PlanServiceTask (v_company_id, v_taskId, v_externnr, v_extraInfo, v_date);
} }
if (AX_or_Tobias() == "R") { if (AX_or_Tobias() == "R") {
v_resp = R_SetOpdrachtStatus (v_company_id, v_taskId, v_externnr, "AFH", v_date, v_extraInfo); v_resp = R_SetOpdrachtStatus (v_company_id, v_taskId, v_externnr, "AFH", v_date, v_extraInfo);