Table of Contents

KVSKBADocumentLineBuffer

Fields

Name Type Note
Doc Scope Enum (KVSKBADocumentScope)
Doc Type Enum (KVSKBADocumentType)
Doc No. Code[20]
Doc. No. Occurrence Integer
Version No. Integer
Table Type Enum (KVSKBADocumentTableType)
Line No. Integer
Entry No. Integer
Detail Line No. Integer
Line Type Enum (KVSKBADocumentLineType)
Sort Trigger 1 Text[30]
Sort Trigger 2 Text[30]
Line Format String Text[250]
Dimension Set ID Integer
Sort Trigger 3 Text[30]
KVSKBAPositionNo Code[20]
Type Enum (KVSKBADocumentGenericLineType)
No. Code[20]
Variant Code Code[10]
Description Text[250]
Description 2 Text[250]
Cross-Reference No. Code[50]
Unit of Measure Text[50]
Unit of Measure Code Code[10]
Quantity Decimal
Quantity (Original) Decimal
Quantity Shipped Decimal
Quantity Outstanding Decimal
Lot No. Code[50]
Serial No. Code[50]
Currency Code Code[10]
Unit Price Decimal
VAT % Decimal
Line Discount % Decimal
Line Amount Decimal
Amount Decimal
Amount Including VAT Decimal
Carry Amount Decimal
Subtotal Decimal
KVSKBAPriceUnit Decimal
Shipment No. Code[20]
Shipment Date Date
Shipment Description Text[250]
Location Code Code[10]
Posted Ship.-Rcpt. Date Date
Requested Delivery Date Date
Planned Delivery Date Date
Text Text[250]
Formatted Text Blob
Text Type Option OptionMembers: Text,Long Text,Formatted Text
Short Text 1 Text[50]
Short Text 2 Text[50]
Short Text 3 Text[50]
Short Text 4 Text[50]
Print Price Boolean
Print Page Break Boolean
Print new Line Block Boolean
Indentation Integer
Print Calender Week Boolean
Document Date Date
Due Date Date
Weight Decimal
Service Item No. Code[30]
Repair Status Code[10]
Warranty Text[10]
Response Date Date
Response Time Time
Group Code Code[20]
Shelf Code Code[20]
Additional Item No. Code[20]
Response Time (Hour) Decimal
Resource Type Option OptionMembers: ,Person,Machine,Extern
Contract No. Code[20]
Quantity (Consumed) Decimal
Quantity (Invoiced) Decimal
Net Weight Decimal
Gross Weight Decimal
Custom Fields Blob
Picture Blob
Picture 2 Blob
Picture 3 Blob
Decimal 1 Decimal
Decimal 2 Decimal

Procedures

BuildFieldDataList(Record KVSKBADocumentHeaderBuffer, Codeunit KVSKBAMasterDocGlobalData) : Text

procedure BuildFieldDataList(var tmpDocHeader: Record "KVSKBADocumentHeaderBuffer"; var GlobalData: Codeunit "KVSKBAMasterDocGlobalData"): Text

GetFieldDataText() : Text

Summary: Returns the serialised field data list as a text string.

procedure GetFieldDataText(): Text

Returns: The complete field data list of this document line buffer record as text.

Remarks: The text representation is generated by the underlying FieldDataList codeunit. Call BuildFieldDataList first to ensure the list is populated before calling this procedure.

AddCustomFields(Codeunit KVSKBAMasterDocFieldData) :

procedure AddCustomFields(var CustomFieldsDataList: Codeunit "KVSKBAMasterDocFieldData"): 

InitLine(Record KVSKBADocumentHeaderBuffer, Enum KVSKBADocumentTableType) :

Summary: Initialises the document line buffer record with common header context fields.

procedure InitLine(DocHeaderPar: Record "KVSKBADocumentHeaderBuffer"; TableTypePar: Enum "KVSKBADocumentTableType"): 

Parameters:

  • DocHeaderPar: The document header buffer providing scope, type, document number, occurrence, and version.
  • TableTypePar: The document table type to assign to this line.

Remarks: Calls Init() and copies the key identification fields from the document header buffer. Use this as the base initialisation before setting additional line-specific fields.

InitBySalesLine(Enum KVSKBADocumentType, Enum KVSKBADocumentTableType, Record Sales Line, Integer) :

Summary: Initialises the document line buffer record from a sales line.

procedure InitBySalesLine(DocTypePar: Enum "KVSKBADocumentType"; TableTypePar: Enum "KVSKBADocumentTableType"; SalesLinePar: Record "Sales Line"; LanguageID: Integer): 

Parameters:

  • DocTypePar: The document type (e.g. Order, Invoice, Return Order).
  • TableTypePar: The document table type to assign to this line.
  • SalesLinePar: The source sales line record.
  • LanguageID: The language ID used to resolve the NotBillable description text.

Remarks: Maps all relevant sales line fields to the buffer, including line type, position number, quantities, prices, and NotBillable values. Raises OnAfterProcedureInitBySalesLine for subscriber extensions. For Return Orders, the shipment date is not transferred.

GetNotBillableText(Code[20], Integer) : Text[50]

Summary: Returns the localised description text for a NotBillable code.

procedure GetNotBillableText(NotBillableCode: Code[20]; LanguageID: Integer): Text[50]

Parameters:

  • NotBillableCode: The NotBillable code to look up. Returns empty text if blank.
  • LanguageID: The language ID used to resolve the description.

Returns: The language-specific description of the NotBillable record, or an empty string if the code is blank or not found.

Remarks: Use this procedure to resolve a NotBillable code to a printable text without modifying any buffer fields. To apply the full set of NotBillable effects (suppression of unit price/discount), use SetNotBillableValues instead.

SetNotBillableValues(Code[20], Integer) :

Summary: Applies the NotBillable settings to the buffer fields based on the given NotBillable code.

procedure SetNotBillableValues(NotBillableCode: Code[20]; LanguageID: Integer): 

Parameters:

  • NotBillableCode: The NotBillable code to apply. If blank, no changes are made.
  • LanguageID: The language ID used to resolve the NotBillable description text.

Remarks: Sets Short Text 3 to the language-specific NotBillable description. If PrintUnitPrice is false on the NotBillable record, Unit Price is set to 0. If PrintDiscount is false, Line Discount % is set to 0. Use GetNotBillableText if only the description text is needed without side effects.

InitBySalesLineArch(Enum KVSKBADocumentType, Enum KVSKBADocumentTableType, Record Sales Line Archive, Integer) :

Summary: Initialises the document line buffer record from a sales line archive record.

procedure InitBySalesLineArch(DocTypePar: Enum "KVSKBADocumentType"; TableTypePar: Enum "KVSKBADocumentTableType"; SalesLinePar: Record "Sales Line Archive"; LanguageID: Integer): 

Parameters:

  • DocTypePar: The document type (e.g. Order, Invoice, Return Order).
  • TableTypePar: The document table type to assign to this line.
  • SalesLinePar: The source sales line archive record.
  • LanguageID: The language ID used to resolve the NotBillable description text.

Remarks: Maps all relevant archived sales line fields to the buffer. Raises OnAfterProcedureInitBySalesLineArchive for subscriber extensions. Behaviour mirrors InitBySalesLine but uses the archive record as the source.

InitByPurchaseLine(Enum KVSKBADocumentType, Enum KVSKBADocumentTableType, Record Purchase Line) :

Summary: Initialises the document line buffer record from a purchase line.

procedure InitByPurchaseLine(DocTypePar: Enum "KVSKBADocumentType"; TableTypePar: Enum "KVSKBADocumentTableType"; PurchLinePar: Record "Purchase Line"): 

Parameters:

  • DocTypePar: The document type (e.g. Order, Invoice).
  • TableTypePar: The document table type to assign to this line.
  • PurchLinePar: The source purchase line record.

Remarks: Maps all relevant purchase line fields to the buffer, including line type, quantities, and prices. Raises OnAfterProcedureInitByPurchLine for subscriber extensions.

InitByPurchaseLineArch(Enum KVSKBADocumentType, Enum KVSKBADocumentTableType, Record Purchase Line Archive) :

Summary: Initialises the document line buffer record from a purchase line archive record.

procedure InitByPurchaseLineArch(DocTypePar: Enum "KVSKBADocumentType"; TableTypePar: Enum "KVSKBADocumentTableType"; PurchLinePar: Record "Purchase Line Archive"): 

Parameters:

  • DocTypePar: The document type (e.g. Order, Invoice).
  • TableTypePar: The document table type to assign to this line.
  • PurchLinePar: The source purchase line archive record.

Remarks: Maps all relevant archived purchase line fields to the buffer. Raises OnAfterProcedureInitByPurchLineArchive for subscriber extensions. Behaviour mirrors InitByPurchaseLine but uses the archive record as the source.

InitByServiceLine(Enum KVSKBADocumentType, Enum KVSKBADocumentTableType, Record Service Line, Integer) :

Summary: Initialises the document line buffer record from a service line.

procedure InitByServiceLine(DocTypePar: Enum "KVSKBADocumentType"; TableTypePar: Enum "KVSKBADocumentTableType"; ServiceLinePar: Record "Service Line"; LanguageID: Integer): 

Parameters:

  • DocTypePar: The document type.
  • TableTypePar: The document table type to assign to this line.
  • ServiceLinePar: The source service line record.
  • LanguageID: The language ID used to resolve the NotBillable description text.

Remarks: Maps all relevant service line fields to the buffer, including line type, quantities, and NotBillable values. Raises OnAfterProcedureInitByServiceLine for subscriber extensions.

InitByServiceItemLine(Enum KVSKBADocumentType, Enum KVSKBADocumentTableType, Record Service Item Line) :

Summary: Initialises the document line buffer record from a service item line.

procedure InitByServiceItemLine(DocTypePar: Enum "KVSKBADocumentType"; TableTypePar: Enum "KVSKBADocumentTableType"; ServiceItemLinePar: Record "Service Item Line"): 

Parameters:

  • DocTypePar: The document type.
  • TableTypePar: The document table type to assign to this line.
  • ServiceItemLinePar: The source service item line record.

Remarks: Maps relevant service item line fields to the buffer. Raises OnAfterProcedureInitByServiceItemLine for subscriber extensions.

InitByServiceCommentLine(Enum KVSKBADocumentType, Enum KVSKBADocumentTableType, Record Service Comment Line) :

Summary: Initialises the document line buffer record from a service comment line.

procedure InitByServiceCommentLine(DocTypePar: Enum "KVSKBADocumentType"; TableTypePar: Enum "KVSKBADocumentTableType"; ServiceCommentLinePar: Record "Service Comment Line"): 

Parameters:

  • DocTypePar: The document type.
  • TableTypePar: The document table type to assign to this line.
  • ServiceCommentLinePar: The source service comment line record.

Remarks: Maps the description field of the service comment line to the buffer. Raises OnAfterProcedureInitByServiceCommentLine for subscriber extensions.

GetBlobText() : Text

Summary: Reads the formatted text blob field and returns its content as a plain text string.

procedure GetBlobText(): Text

Returns: The text content of the "Formatted Text" blob field, or an empty string if the blob has no value.

Remarks: The blob is read using UTF-8 encoding. Use SetBlobText to write content to the same field.

SetBlobText(Text) :

Summary: Writes the given text into the formatted text blob field.

procedure SetBlobText(WriteText: Text): 

Parameters:

  • WriteText: The text to store in the "Formatted Text" blob field.

Remarks: Clears any existing blob content before writing. The text is stored using UTF-8 encoding. Use GetBlobText to read the value back.

GetSalesLineType(Record Sales Line) : Enum

Summary: Determines the document line type for a given sales line.

procedure GetSalesLineType(LineRecPar: Record "Sales Line"): Enum KVSKBADocumentLineType

Parameters:

  • LineRecPar: The sales line record to evaluate.

Returns: The matching KVSKBADocumentLineType enum value. Returns Default if no specific type matches.

Remarks: Raises OnAfterGetSalesLineType after the default mapping so subscribers can override or extend the line type result for custom sales line types.

GetGenericLineTypeFromSalesLineType(Enum Sales Line Type) : Enum

procedure GetGenericLineTypeFromSalesLineType(SalesLineType: Enum "Sales Line Type"): Enum KVSKBADocumentGenericLineType

GetSalesArchiveLineType(Record Sales Line Archive) : Enum

Summary: Determines the document line type for a given sales line archive record.

procedure GetSalesArchiveLineType(LineRecPar: Record "Sales Line Archive"): Enum KVSKBADocumentLineType

Parameters:

  • LineRecPar: The sales line archive record to evaluate.

Returns: The matching KVSKBADocumentLineType enum value. Returns Default if no specific type matches.

Remarks: Raises OnAfterGetSalesArchiveLineType after the default mapping so subscribers can override or extend the result for custom archived sales line types.

GetPurchLineType(Record Purchase Line) : Enum

Summary: Determines the document line type for a given purchase line.

procedure GetPurchLineType(LineRecPar: Record "Purchase Line"): Enum KVSKBADocumentLineType

Parameters:

  • LineRecPar: The purchase line record to evaluate.

Returns: The matching KVSKBADocumentLineType enum value. Returns Default if no specific type matches.

Remarks: Raises OnAfterGetPurchLineType after the default mapping so subscribers can override or extend the line type result for custom purchase line types.

GetGenericLineTypeFromPurchaseLineType(Enum Purchase Line Type) : Enum

procedure GetGenericLineTypeFromPurchaseLineType(PurchaseLineType: Enum "Purchase Line Type"): Enum KVSKBADocumentGenericLineType

GetPurchArchiveLineType(Record Purchase Line Archive) : Enum

Summary: Determines the document line type for a given purchase line archive record.

procedure GetPurchArchiveLineType(LineRecPar: Record "Purchase Line Archive"): Enum KVSKBADocumentLineType

Parameters:

  • LineRecPar: The purchase line archive record to evaluate.

Returns: The matching KVSKBADocumentLineType enum value. Returns Default if no specific type matches.

Remarks: Raises OnAfterGetPurchArchiveLineType after the default mapping so subscribers can override or extend the result for custom archived purchase line types.

GetServiceLineType(Record Service Line) : Enum

Summary: Determines the document line type for a given service line.

procedure GetServiceLineType(LineRecPar: Record "Service Line"): Enum KVSKBADocumentLineType

Parameters:

  • LineRecPar: The service line record to evaluate.

Returns: The matching KVSKBADocumentLineType enum value. Returns Default if no specific type matches.

Remarks: Raises OnAfterGetServiceLineType after the default mapping so subscribers can override or extend the result for custom service line types.

GetServiceItemLineType(Record Service Item Line) : Enum

Summary: Determines the document line type for a given service item line.

procedure GetServiceItemLineType(LineRecPar: Record "Service Item Line"): Enum KVSKBADocumentLineType

Parameters:

  • LineRecPar: The service item line record to evaluate.

Returns: The matching KVSKBADocumentLineType enum value.

Remarks: Raises OnAfterGetServiceItemLineType after the default mapping so subscribers can override or extend the result for custom service item line types.

GetServiceInvoiceLineType(Record Service Invoice Line) : Enum

Summary: Determines the document line type for a given service invoice line.

procedure GetServiceInvoiceLineType(LineRecPar: Record "Service Invoice Line"): Enum KVSKBADocumentLineType

Parameters:

  • LineRecPar: The service invoice line record to evaluate.

Returns: The matching KVSKBADocumentLineType enum value. Returns Default if no specific type matches.

Remarks: Raises OnAfterGetServiceInvoiceLineType after the default mapping so subscribers can override or extend the result. Also raises OnBeforeAssignNullPosInGetServiceInvoiceLineType to allow custom handling of null-position lines.

GetGenericLineTypeFromServiceLineType(Enum Service Line Type) : Enum

procedure GetGenericLineTypeFromServiceLineType(ServiceLineType: Enum "Service Line Type"): Enum KVSKBADocumentGenericLineType

UpdateCustomFields() : Boolean

Summary: Serialises the in-memory custom fields dictionary into the "Custom Fields" blob field.

procedure UpdateCustomFields(): Boolean

Returns: True if at least one custom field was written; false if the dictionary is empty.

Remarks: Each entry is serialised as Key=Value followed by separator character ASCII 177. The result is also cached in the internal CustomFieldsText variable. Call AddCustomFieldText to populate the dictionary before calling this procedure.

GetCustomFields() : Text

Summary: Reads the "Custom Fields" blob field and returns its raw serialised content as text.

procedure GetCustomFields(): Text

Returns: The raw text content of the "Custom Fields" blob field, or an empty string if the blob has no value.

Remarks: The blob is read using UTF-8 encoding and the result is cached in the internal CustomFieldsText variable. The raw text contains all key-value pairs separated by ASCII 177. Use SetCustomFields to write and UpdateCustomFields to rebuild the blob from the in-memory dictionary.

SetCustomFields(Text) :

Summary: Writes the given serialised text directly into the "Custom Fields" blob field.

procedure SetCustomFields(WriteText: Text): 

Parameters:

  • WriteText: The serialised key-value text to store in the "Custom Fields" blob field.

Remarks: Clears any existing blob content before writing. The text is stored using UTF-8 encoding. Prefer using AddCustomFieldText and UpdateCustomFields to manage individual entries rather than writing raw text directly.

AddCustomFieldText(Text, Text) :

Summary: Adds or updates a key-value pair in the in-memory custom fields dictionary.

procedure AddCustomFieldText(Key: Text; Value: Text): 

Parameters:

  • Key: The key of the custom field to add or update.
  • Value: The value to associate with the given key.

Remarks: If the key already exists with an identical value, the call is a no-op. If the key exists with a different value, the old entry is removed and replaced. Call UpdateCustomFields to persist the dictionary to the "Custom Fields" blob field.

SetPictureFromBlob(Codeunit Temp Blob) :

procedure SetPictureFromBlob(TempBlob: Codeunit "Temp Blob"): 

SetPicture2FromBlob(Codeunit Temp Blob) :

procedure SetPicture2FromBlob(TempBlob: Codeunit "Temp Blob"): 

SetPicture3FromBlob(Codeunit Temp Blob) :

procedure SetPicture3FromBlob(TempBlob: Codeunit "Temp Blob"): 

SetNotBillableFeatureActive(Boolean) :

Summary: Sets the active state of the Not Billable feature for this instance.

procedure SetNotBillableFeatureActive(Active: Boolean): 

Parameters:

  • Active: True to treat the Not Billable feature as active; false to treat it as inactive.

Remarks: By default, the IsNotBillableFeatureActive method checks the actual feature state. Use this method to override the feature state for testing purposes or to force-enable/disable Not Billable handling for specific scenarios.

Events

OnBeforeAssignNullPosInGetServiceLineType(Record Service Line, Enum KVSKBADocumentLineType, Boolean) :

Summary: Event raised before assigning a null-position line type in GetServiceLineType.

[IntegrationEvent(false, false)]
local procedure OnBeforeAssignNullPosInGetServiceLineType(var ServiceLine: Record "Service Line"; var LineTypeInteger: Enum "KVSKBADocumentLineType"; var SkipStandardCode: Boolean): 

Parameters:

  • ServiceLine: The service line record being evaluated.
  • LineTypeInteger: The line type enum variable to set by the subscriber.
  • SkipStandardCode: Set to true to skip the default null-position assignment logic.

Remarks: Subscribers can set SkipStandardCode to true and assign a custom line type to LineTypeInteger to replace the standard null-position handling.

OnBeforeAssignNullPosInGetServiceInvoiceLineType(Record Service Invoice Line, Enum KVSKBADocumentLineType, Boolean) :

Summary: Event raised before assigning a null-position line type in GetServiceInvoiceLineType.

[IntegrationEvent(false, false)]
local procedure OnBeforeAssignNullPosInGetServiceInvoiceLineType(var ServiceInvoiceLine: Record "Service Invoice Line"; var LineTypeInteger: Enum "KVSKBADocumentLineType"; var Handled: Boolean): 

Parameters:

  • ServiceInvoiceLine: The service invoice line record being evaluated.
  • LineTypeInteger: The line type enum variable to set by the subscriber.
  • Handled: Set to true to skip the default null-position assignment logic.

Remarks: Subscribers can set Handled to true and assign a custom line type to LineTypeInteger to replace the standard null-position handling for service invoice lines.

OnAfterProcedureInitBySalesLine(Record KVSKBADocumentLineBuffer, Record Sales Line) :

Summary: Event raised after InitBySalesLine has populated the document line buffer from a sales line.

[IntegrationEvent(false, false)]
local procedure OnAfterProcedureInitBySalesLine(var KVSKBADocumentLineBuffer: Record "KVSKBADocumentLineBuffer"; SalesLine: Record "Sales Line"): 

Parameters:

  • KVSKBADocumentLineBuffer: The populated document line buffer record.
  • SalesLine: The source sales line record.

Remarks: Use this event to set additional custom fields on the buffer that are not covered by the standard field mapping.

OnAfterProcedureInitBySalesLineArchive(Record KVSKBADocumentLineBuffer, Record Sales Line Archive) :

Summary: Event raised after InitBySalesLineArch has populated the document line buffer from a sales line archive record.

[IntegrationEvent(false, false)]
local procedure OnAfterProcedureInitBySalesLineArchive(var KVSKBADocumentLineBuffer: Record "KVSKBADocumentLineBuffer"; SalesLineArchive: Record "Sales Line Archive"): 

Parameters:

  • KVSKBADocumentLineBuffer: The populated document line buffer record.
  • SalesLineArchive: The source sales line archive record.

Remarks: Use this event to set additional custom fields on the buffer that are not covered by the standard field mapping.

OnAfterProcedureInitByPurchLine(Record KVSKBADocumentLineBuffer, Record Purchase Line) :

Summary: Event raised after InitByPurchaseLine has populated the document line buffer from a purchase line.

[IntegrationEvent(false, false)]
local procedure OnAfterProcedureInitByPurchLine(var KVSKBADocumentLineBuffer: Record "KVSKBADocumentLineBuffer"; PurchaseLine: Record "Purchase Line"): 

Parameters:

  • KVSKBADocumentLineBuffer: The populated document line buffer record.
  • PurchaseLine: The source purchase line record.

Remarks: Use this event to set additional custom fields on the buffer that are not covered by the standard field mapping.

OnAfterProcedureInitByPurchLineArchive(Record KVSKBADocumentLineBuffer, Record Purchase Line Archive) :

Summary: Event raised after InitByPurchaseLineArch has populated the document line buffer from a purchase line archive record.

[IntegrationEvent(false, false)]
local procedure OnAfterProcedureInitByPurchLineArchive(var KVSKBADocumentLineBuffer: Record "KVSKBADocumentLineBuffer"; PurchaseLineArchive: Record "Purchase Line Archive"): 

Parameters:

  • KVSKBADocumentLineBuffer: The populated document line buffer record.
  • PurchaseLineArchive: The source purchase line archive record.

Remarks: Use this event to set additional custom fields on the buffer that are not covered by the standard field mapping.

OnAfterProcedureInitByServiceLine(Record KVSKBADocumentLineBuffer, Record Service Line) :

Summary: Event raised after InitByServiceLine has populated the document line buffer from a service line.

[IntegrationEvent(false, false)]
local procedure OnAfterProcedureInitByServiceLine(var KVSKBADocumentLineBuffer: Record "KVSKBADocumentLineBuffer"; ServiceLine: Record "Service Line"): 

Parameters:

  • KVSKBADocumentLineBuffer: The populated document line buffer record.
  • ServiceLine: The source service line record.

Remarks: Use this event to set additional custom fields on the buffer that are not covered by the standard field mapping.

OnAfterProcedureInitByServiceItemLine(Record KVSKBADocumentLineBuffer, Record Service Item Line) :

Summary: Event raised after InitByServiceItemLine has populated the document line buffer from a service item line.

[IntegrationEvent(false, false)]
local procedure OnAfterProcedureInitByServiceItemLine(var KVSKBADocumentLineBuffer: Record "KVSKBADocumentLineBuffer"; ServiceItemLine: Record "Service Item Line"): 

Parameters:

  • KVSKBADocumentLineBuffer: The populated document line buffer record.
  • ServiceItemLine: The source service item line record.

Remarks: Use this event to set additional custom fields on the buffer that are not covered by the standard field mapping.

OnAfterProcedureInitByServiceCommentLine(Record KVSKBADocumentLineBuffer, Record Service Comment Line) :

Summary: Event raised after InitByServiceCommentLine has populated the document line buffer from a service comment line.

[IntegrationEvent(false, false)]
local procedure OnAfterProcedureInitByServiceCommentLine(var KVSKBADocumentLineBuffer: Record "KVSKBADocumentLineBuffer"; ServiceCommentLine: Record "Service Comment Line"): 

Parameters:

  • KVSKBADocumentLineBuffer: The populated document line buffer record.
  • ServiceCommentLine: The source service comment line record.

Remarks: Use this event to set additional custom fields on the buffer that are not covered by the standard field mapping.

OnAfterGetPurchLineType(Record Purchase Line, Enum KVSKBADocumentLineType) :

Summary: Event raised after GetPurchLineType has determined the document line type for a purchase line.

[IntegrationEvent(false, false)]
local procedure OnAfterGetPurchLineType(PurchaseLine: Record "Purchase Line"; var KVSKBADocumentLineType: Enum "KVSKBADocumentLineType"): 

Parameters:

  • PurchaseLine: The purchase line record that was evaluated.
  • KVSKBADocumentLineType: The determined line type that can be overridden by the subscriber.

Remarks: Subscribers can modify KVSKBADocumentLineType to return a custom line type for purchase lines not covered by the standard mapping.

OnAfterGetPurchArchiveLineType(Record Purchase Line Archive, Enum KVSKBADocumentLineType) :

Summary: Event raised after GetPurchArchiveLineType has determined the document line type for a purchase line archive record.

[IntegrationEvent(false, false)]
local procedure OnAfterGetPurchArchiveLineType(PurchaseLineArchive: Record "Purchase Line Archive"; var KVSKBADocumentLineType: Enum "KVSKBADocumentLineType"): 

Parameters:

  • PurchaseLineArchive: The purchase line archive record that was evaluated.
  • KVSKBADocumentLineType: The determined line type that can be overridden by the subscriber.

Remarks: Subscribers can modify KVSKBADocumentLineType to return a custom line type for archived purchase lines not covered by the standard mapping.

OnAfterGetSalesLineType(Record Sales Line, Enum KVSKBADocumentLineType) :

Summary: Event raised after GetSalesLineType has determined the document line type for a sales line.

[IntegrationEvent(false, false)]
local procedure OnAfterGetSalesLineType(SalesLine: Record "Sales Line"; var KVSKBADocumentLineType: Enum "KVSKBADocumentLineType"): 

Parameters:

  • SalesLine: The sales line record that was evaluated.
  • KVSKBADocumentLineType: The determined line type that can be overridden by the subscriber.

Remarks: Subscribers can modify KVSKBADocumentLineType to return a custom line type for sales lines not covered by the standard mapping.

OnAfterGetGenericTypeFromSalesLineType(Enum Sales Line Type, Enum KVSKBADocumentGenericLineType) :

[IntegrationEvent(false, false)]
local procedure OnAfterGetGenericTypeFromSalesLineType(SalesLineType: Enum "Sales Line Type"; var DocumentGenericLineType: Enum "KVSKBADocumentGenericLineType"): 

OnAfterGetGenericTypeFromPurchaseLineType(Enum Purchase Line Type, Enum KVSKBADocumentGenericLineType) :

[IntegrationEvent(false, false)]
local procedure OnAfterGetGenericTypeFromPurchaseLineType(PurchaseLineType: Enum "Purchase Line Type"; var DocumentGenericLineType: Enum "KVSKBADocumentGenericLineType"): 

OnAfterGetGenericLineTypeFromServiceLineType(Enum Service Line Type, Enum KVSKBADocumentGenericLineType) :

[IntegrationEvent(false, false)]
local procedure OnAfterGetGenericLineTypeFromServiceLineType(ServiceLineType: Enum "Service Line Type"; var DocumentGenericLineType: Enum "KVSKBADocumentGenericLineType"): 

OnAfterGetSalesArchiveLineType(Record Sales Line Archive, Enum KVSKBADocumentLineType) :

Summary: Event raised after GetSalesArchiveLineType has determined the document line type for a sales line archive record.

[IntegrationEvent(false, false)]
local procedure OnAfterGetSalesArchiveLineType(SalesLineArchive: Record "Sales Line Archive"; var KVSKBADocumentLineType: Enum "KVSKBADocumentLineType"): 

Parameters:

  • SalesLineArchive: The sales line archive record that was evaluated.
  • KVSKBADocumentLineType: The determined line type that can be overridden by the subscriber.

Remarks: Subscribers can modify KVSKBADocumentLineType to return a custom line type for archived sales lines not covered by the standard mapping.

OnAfterGetServiceLineType(Record Service Line, Enum KVSKBADocumentLineType) :

Summary: Event raised after GetServiceLineType has determined the document line type for a service line.

[IntegrationEvent(false, false)]
local procedure OnAfterGetServiceLineType(ServiceLine: Record "Service Line"; var KVSKBADocumentLineType: Enum "KVSKBADocumentLineType"): 

Parameters:

  • ServiceLine: The service line record that was evaluated.
  • KVSKBADocumentLineType: The determined line type that can be overridden by the subscriber.

Remarks: Subscribers can modify KVSKBADocumentLineType to return a custom line type for service lines not covered by the standard mapping.

OnAfterGetServiceItemLineType(Record Service Item Line, Enum KVSKBADocumentLineType) :

Summary: Event raised after GetServiceItemLineType has determined the document line type for a service item line.

[IntegrationEvent(false, false)]
local procedure OnAfterGetServiceItemLineType(ServiceItemLine: Record "Service Item Line"; var KVSKBADocumentLineType: Enum "KVSKBADocumentLineType"): 

Parameters:

  • ServiceItemLine: The service item line record that was evaluated.
  • KVSKBADocumentLineType: The determined line type that can be overridden by the subscriber.

Remarks: Subscribers can modify KVSKBADocumentLineType to return a custom line type for service item lines not covered by the standard mapping.

OnAfterGetServiceInvoiceLineType(Record Service Invoice Line, Enum KVSKBADocumentLineType) :

Summary: Event raised after GetServiceInvoiceLineType has determined the document line type for a service invoice line.

[IntegrationEvent(false, false)]
local procedure OnAfterGetServiceInvoiceLineType(ServiceInvoiceLine: Record "Service Invoice Line"; var KVSKBADocumentLineType: Enum "KVSKBADocumentLineType"): 

Parameters:

  • ServiceInvoiceLine: The service invoice line record that was evaluated.
  • KVSKBADocumentLineType: The determined line type that can be overridden by the subscriber.

Remarks: Subscribers can modify KVSKBADocumentLineType to return a custom line type for service invoice lines not covered by the standard mapping.

OnBuildFieldDataListOnAfterAddSubtotalLevel(Boolean) :

Summary: Event raised after the subtotal level has been added during BuildFieldDataList.

[IntegrationEvent(false, false)]
local procedure OnBuildFieldDataListOnAfterAddSubtotalLevel(var IsHandled: Boolean): 

Parameters:

  • IsHandled: Set to true to indicate the event was handled and suppress further default processing.

Remarks: Use this event to perform additional field data assignments after the subtotal level entry has been added to the field data list.

OnAfterBuildFieldDataList(Record KVSKBADocumentHeaderBuffer, Codeunit KVSKBAMasterDocGlobalData, Codeunit KVSKBAMasterDocFieldData, Record KVSKBADocumentLineBuffer) :

[IntegrationEvent(false, false)]
local procedure OnAfterBuildFieldDataList(var DocumentHeaderBuffer: Record "KVSKBADocumentHeaderBuffer"; var MasterDocGlobalData: Codeunit "KVSKBAMasterDocGlobalData"; var MasterDocFieldData: Codeunit "KVSKBAMasterDocFieldData"; var DocumentLineBuffer: Record "KVSKBADocumentLineBuffer"):