I have written many procedures and reports that look at an order's status log; all these procedures look at the ORDSTATUSLOG table. A client wrote to me a few days ago and told me that one of these procedures (that is run automatically by the TTS) had stopped working. I checked this table and saw that the last entry was almost one month ago, but that changes in order status were still being reported. My unofficial conclusion was that I should no longer reference the ORDSTATUSLOG table but rather TODOLIST.
This table holds data from many different tables, so accessing the required data is slightly more complicated than what used to be. Here is an example of the queries that I used to write in order to obtain all the orders that were approved 'yesterday'
SELECT ORDERS.ORDNAME FROM ORDERS, ORDSTATUSLOG WHERE ORDERS.ORD = ORDSTATUSLOG.ORD AND ORDSTATUSLOG.ORDSTATUS = -2 AND ORDSTATUSLOG.UDATE BETWEEN SQL.DATE8 - 24:00 AND SQL.DATE8 -1 ...
This now becomes
SELECT ORDERS.ORDNAME FROM ORDERS, TODOLIST WHERE ORDERS.ORD = TODOLIST.IV AND TODOLIST.TYPE = 'O' AND TODOLIST.DOCSTATUS = 135 AND TODOLIST..UDATE BETWEEN SQL.DATE8 - 24:00 AND SQL.DATE8 -1 ...
In belated recognition, the client sent me an extract from the Version 24 release notes that sort-of documented this change: they note that there will be no new tuples in ORDSTATUSLOG but don't say where the log will continue to be maintained, presumably because status changes had always been logged in TODOLIST.