<%@language = "javascript" %>
<% /*
     $Revision$
     $Id$

     File:               fac_notificatie_immediate.asp.asp
     Description:        Forceer een putorders run
     Parameters:
     Context:
     Note:

*/ %>

<%
var JSON_Result = true;
%>
<!-- #include file="../Shared/common.inc" -->
<%
protectRequest.validateToken();
user.auth_required_or_abort(user.has("WEB_FACTAB"));

var fac_notificatie_key = getFParamInt("fac_notificatie_key");
var sql = "UPDATE fac_notificatie"
        + "   SET fac_notificatie_notbefore = SYSDATE"
        + " WHERE fac_notificatie_key = " + fac_notificatie_key;
Oracle.Execute(sql)

var result = { success: true, message: "Putorders has been activated" };

Response.Write(JSON.stringify(result));
%><% ASPPAGE_END(); %>
