Scope: managed applications, mobile applications, and ordinary applications.
If the configuration supports tools that switch active records of particular registers (for example, to correct records manually), pursue an approach described below.
1. Active records of such registers are to be considered in all queries and reports related to them. To ignore non-active records, make sure that a condition of selection from the register includes the following additional condition:
WHERE Active = TRUE
If records from virtual tables related to registers are selected in a query, this condition is automatically considered by 1C:Enterprise platform (virtual tables of registers contain only active records).
2. Specifically, active register records are to be considered in universal reports or in any universal business logic that support operations with arbitrary configuration registers. Such registers can include registers, where active records are switched.
3. When canceling posting of documents that allow you to directly edit records in their registers (correct records manually), you need to disable active register records instead of deleting them. An example of such document: "Transaction (bookkeeping and tax accounting)", in which you can enter operations manually.