FCLT#90168 Iets beter oude notificaties direct opruimen. Minder verwarrend als je notificatie lijst bekijken

svn path=/Website/branches/v2025.3/; revision=70745
This commit is contained in:
Jos Groot Lipman
2025-10-29 09:09:27 +00:00
parent ce8a257dfe
commit abb3a52712

View File

@@ -66,9 +66,17 @@ if (user_key > 0)
+ " SET fac_notificatie_status = BITAND (fac_notificatie_status, 255-8)" // Verwerkte popup
+ " WHERE fac_notificatie_key IN (" + resetnotis.join(",") + ")";
Oracle.Execute(sql);
// En opruimen (als er niets voor Putorders over is)
var sql2 = "DELETE fac_notificatie"
+ " WHERE fac_notificatie_status IN (0, 16)" // STATUS_SUMMARY_XSL 16 is niet interessant
+ " AND fac_notificatie_systeemadres IS NULL"
+ " AND prs_bedrijfadres_key IS NULL"
+ " AND fac_notificatie_key IN (" + resetnotis.join(",") + ")";
Oracle.Execute(sql2);
}
}
Response.Write(JSON.stringify(result));
%>
<% ASPPAGE_END(); %>
<% ASPPAGE_END(); %>