Update 29.0.202647.183331

Prev Next

Release Date: 16. November 2026

Release Summary


Partners can now print different company information on Document Customizer sales invoices and credit memos per document, from their own extension and without copying the reports.

Nothing changes for users: without such an extension, documents print exactly as before.

Extensibility


Override company information per printed sales invoice or credit memo

Developers can now change the company name, address and VAT registration number printed on a sales invoice or credit memo from an extension, for example to keep the previous legal entity's details on documents dated before a merger. With no subscriber bound, documents print exactly as before.

Object Event Description
Report 6082700 "SCB Sales - Invoice" OnAfterGetCompanyInfo Raised once per printed invoice, right after Company Information is read for that document; change CompanyInfo to print different company details on this invoice.
Report 6082701 "SCB Sales - Cr. Memo" OnAfterGetCompanyInfo Raised once per printed credit memo, right after Company Information is read for that document; change CompanyInfo to print different company details on this credit memo.
Table 6082825 "SCB HTML Parameters" OnAfterGetCompanyInfoForParameter Raised each time the footer and field setup resolves a Company Information value for the printed document, up to 20 times per section per copy or page row; change CompanyInfo to override the value before it is read. SourceRecordRef is the printed document's header, so check SourceRecordRef.Number() first. Subscribers must be cheap and idempotent, since the event can fire many times per document.
OnAfterGetCompanyInfo(SalesInvoiceHeader: Record "Sales Invoice Header"; var CompanyInfo: Record "Company Information")
OnAfterGetCompanyInfo(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var CompanyInfo: Record "Company Information")
OnAfterGetCompanyInfoForParameter(SourceRecordRef: RecordRef; HTMLParameter: Record "SCB HTML Parameters"; var CompanyInfo: Record "Company Information")

Why it matters: Subscribe to both the report event and the table event: the company name, address and VAT registration no. shown in the footer are read by the footer and field setup, not by the report itself, so the report event alone will not change what prints there. In the table event, overrides of FlowFields and the company picture do not apply, and a parameter with a Bank Field prints from the bank account when one is found, not from Company Information.