Recording a corporate event against a ledger row, which writes shared research, is now limited to maintainers.
What has changed on this site, in its database and in the scripts behind it, newest first. Older history is being filled in as it is reconstructed, and each entry says whether it was recorded at the time or rebuilt later.
Showing entries for file ledger_events_add.php. Show everything
Recording a corporate event against a ledger row, which writes shared research, is now limited to maintainers.
Ledger rows can be attached to several event assertions at once, and attaching now checks the fit: a ledger row dated before the event, more than 31 days after it, or about a different asset is named, and nothing is attached until the choice is confirmed.
Each listed assertion shows how many days separate its effective date from the ledger row. Assertions ticked together that take effect on different dates are also flagged. The same checks appear as warnings when a new assertion is written with ledger rows ticked.
New event assertions are written through one shared function, used by both the ledger's event page and the events page, so there is a single write path for new rows.
The function accepts only the assertion tables' own columns and joins an open transaction, so the ledger page still writes a new assertion and its ledger links together. A duplicate is reported with the existing row.
The checks for event assertions now live in one shared place, used by both the page that creates assertions and the page that edits them, so the two can never disagree about what a valid assertion is.
The shared library also gained the ability to save edits to the three assertion tables, writing only the fields that changed. The checks gained one new warning: a quantity change with no lifecycle, since a stock split is recorded as a continuing security with the ratio. The create page behaves as before.