Event ainsert_control_after

Description

This event is called after the AINSERT_CONTROL_BEFORE event and after the CONTROL event is done on the properties, but still before the insertion of a line in the database. It allows to perform more global controls. If controls are not fulfilled, an error can be triggered.

When nested classes must be controlled, such as a 3-level header / line / sub-line structure exists, the event is performed on the sub-lines associated with the first line first, then on the first line, then on the sub-lines associated with the second line, then on the second line, and so on, until all the lines have been controlled. Finally, the event is done on the header.

Context

The following variables or properties are available in the context: