OnBeforeInsertDocumentHeaderComment Event
Raised before header comment is inserted as a sales line in a sales document created from a contract. The event can, for example, be used to change the description of the header comment, or prevent the header comment from being inserted.
Signature
[IntegrationEvent(false, false)]
OnBeforeInsertDocumentHeaderComment(ContractLine: Record "QWEPR Contract Line"; var SalesLine: Record "Sales Line"; ContractPostStartDate: Date; ContractLinePostEndDate: Date; OneTimeInvoicingInterval: Boolean; var IsHandled: Boolean)
Parameters
ContractLine
Record "QWEPR Contract Line"
The Contract Line that is the source of the SalesLine
var SalesLine
Record "Sales Line"
A Sales line of Type Comment, initialized with Document Type, Document No. and Description.
ContractPostStartDate
Date
Specifies the starting date of the period that is being invoiced.
ContractLinePostEndDate
Date
Specifies the ending date of the period that is being invoiced.
OneTimeInvoicingInterval
Boolean
Specifies if the current ContractLine will only be invoiced once.
var IsHandled
Boolean
IsHandled should be set to true if you want to prevent the insert of the header comment. Should be honored if already set. (Handled Pattern)
This documentation is generated from Parrot v22.15.192903.0