The @CeDocumentDescriber annotation is used exclusively on document entity classes to declare which registers are affected by the document. It allows the system to automatically generate movements (postings) in those registers when the document is processed.


Parameters

📋 Register Dependencies

🆔 Document Type Identifier


Example Usage

kotlin
КопироватьРедактировать
@CeDocumentDescriber(
    infoRegisters = [InventoryRegister::class],
    accumulationRegistersIncome = [StockRegister::class],
    accumulationRegistersExpense = [SalesRegister::class],
    documentType = 1
)
data class SalesInvoice(
    @PrimaryKey val id: Int,
    val date: String,
    val customerId: Int
)


Key Benefits


Migration Note

This annotation replaces the deprecated @DocumentDescriberCE.