diff --git a/CUST/AAAH/absoluta_mut.asp b/CUST/AAAH/absoluta_mut.asp new file mode 100644 index 0000000000..6435cd4ec8 --- /dev/null +++ b/CUST/AAAH/absoluta_mut.asp @@ -0,0 +1,43 @@ +<%@ language = "JavaScript" %> +<% /* + $Revision$ + $Modtime: 20-04-10 11:54 $ + File: absoluta_mut.asp + Description: A deeplink call to a remote site to change a punchout order. + Parameters: + + Context: + Note: +*/ %> +<% + Response.Expires=0; +%> + + + +<% +var bes_key = getQParamInt("key", -1); +var accounthash = getQParam("accounthash", ""); +var succes = 0; + + + sql = " SELECT MAX (SUBSTR (bes_srtdeel_nr, INSTR (bes_srtdeel_nr, '/') + 1, 30)) " + + " FROM bes_srtdeel sd, bes_bestelling_item bi" + + " WHERE bi.bes_bestelling_key = " + bes_key + + " AND sd.bes_srtdeel_key = bi.bes_srtdeel_key"; + oRs = Oracle.Execute(sql); + if (!oRs.eof) { + succes = 1; + //remoteUrl = "http://www.facilitor.nl/?id=" + oRs(0).value + "&accounthash=" + accounthash; + remoteUrl = "https://corp.dev.sotasty.nl/index/login/accounthash/" + accounthash + "/orderid/" + oRs(0).value + "/actie/choose?HOOK_URL=xxx" + msg = "Een moment... U wordt doorgezet naar de site van de leverancier."; + } + else { + msg = "U heeft hiervoor geen autorisatie."; + } +%> + + +

<%=msg%>

+ +