Let us check the new event handler.
- Start 1C:Enterprise in the debug mode.
- Set a new date for the document (for example, 02/03/2015), save it, and ensure that the records in the accumulation register have the new date as well.
While saving a document, you can control not only the period of the accumulation register records, but also the values of other register fields.
For instance, by applying the same principle you can create an AccountingOperation document for entering manual operations into the accounting register.
In that case, in addition to controlling the period of register records, you need to manage the values in the Active field (enabling or disabling document posting), and so on.
Next page: Choosing handler locations