KVSKBAServiceLib
Summary: Handles Business Central events for Service Library, including Transfer Item To Service Line, Delete Added Tables From Service Header, and Delete Added Tables From Service Header Archive.
Procedures
DeleteAddedTablesFromServiceHeader(Record Service Header, Boolean, Boolean) :
Summary: Deletes all entries from the added tables associated to the service header
procedure DeleteAddedTablesFromServiceHeader(ServiceHeader: Record "Service Header"; WithLines: Boolean; DeleteCommentLines: Boolean):
Parameters:
ServiceHeader: The service header to delete the entries from.WithLines: Defines whether the table data attached to the rows should also be deleted.DeleteCommentLines: Defines whether the Comment Lines should also be deleted.
CopyAddedTablesCustToServiceHeader(Record Service Header) :
Summary: Copy the added tables from Customer to the Service Header
procedure CopyAddedTablesCustToServiceHeader(ServiceHeader: Record "Service Header"):
Parameters:
ServiceHeader: Is the target Service Header
CopyAddedTablesFromServiceHeaderToServiceHeader(Record Service Header, Record Service Header) :
Summary: Copies data from added tables linked to service header to linked tables to another service header.
procedure CopyAddedTablesFromServiceHeaderToServiceHeader(FromServiceHeader: Record "Service Header"; ToServiceHeader: Record "Service Header"):
Parameters:
FromServiceHeader: Service header to copy fromToServiceHeader: Service header to copy to
CopyAddedTablesFromServiceItemLineToServiceItemLine(Record Service Item Line, Record Service Item Line) :
Summary: Copies data from added tables linked to service item line to linked tables to another service item line.
procedure CopyAddedTablesFromServiceItemLineToServiceItemLine(FromServiceItemLine: Record "Service Item Line"; ToServiceItemLine: Record "Service Item Line"):
Parameters:
FromServiceItemLine: Service Item Line to copy fromToServiceItemLine: Service Item Line to copy to
CopyAddedTablesFromServiceLineToServiceLine(Record Service Line, Record Service Line) :
Summary: Copies data from added tables linked to service line to linked tables to another service line.
procedure CopyAddedTablesFromServiceLineToServiceLine(FromServiceLine: Record "Service Line"; ToServiceLine: Record "Service Line"):
Parameters:
FromServiceLine: Service line to copy fromToServiceLine: Service line to copy to
Remarks: Copies document text between service lines with date and order type filtering
CopyAddedTablesFromServiceHeadertoPostedServiceHeader(Record Service Header, Enum KVSKBAPostedServiceDocTextType, Code[20]) :
Summary: Copies data from added tables linked to service header to linked tables to posted service header.
procedure CopyAddedTablesFromServiceHeadertoPostedServiceHeader(FromServiceHeader: Record "Service Header"; ToDocumentType: Enum "KVSKBAPostedServiceDocTextType"; ToDocumentNo: Code[20]):
Parameters:
FromServiceHeader: Service header to copy fromToDocumentType: Posted document type to copy toToDocumentNo: Posted document number to copy to
Remarks: Transfers document text from service header to posted service documents with order type filtering
CopyAddedTablesFromServiceItemLineToServiceShipmentItemLine(Record Service Item Line, Record Service Shipment Item Line) :
Summary: Copies data from added tables linked to service item line to linked tables to service shipment item line.
procedure CopyAddedTablesFromServiceItemLineToServiceShipmentItemLine(FromServiceItemLine: Record "Service Item Line"; ToServiceShipmentItemLine: Record "Service Shipment Item Line"):
Parameters:
FromServiceItemLine: Service Item Line to copy fromToServiceShipmentItemLine: Service Shipment Item Line to copy to
CopyAddedTablesFromServiceLinetoPostedServiceLine(Record Service Line, Enum KVSKBAPostedServiceDocTextType, Code[20], Integer) :
Summary: Copies data from added tables linked to service line to linked tables to posted service line.
procedure CopyAddedTablesFromServiceLinetoPostedServiceLine(FromServiceLine: Record "Service Line"; DocumentType: Enum "KVSKBAPostedServiceDocTextType"; DocumentNo: Code[20]; DocumentLineNo: Integer):
Parameters:
FromServiceLine: Service line to copy fromDocumentType: Posted document type to copy toDocumentNo: Posted document number to copy toDocumentLineNo: Posted document line number to copy to
Remarks: Transfers document text from service line to posted service documents with date and order type filtering
CopyAddedTablesFromPostedServiceHeaderToServiceHeader(Record Service Header, Enum KVSKBAPostedServiceDocTextType, Code[20]) :
Summary: Copies data from added tables linked to posted service header to linked tables to service header.
procedure CopyAddedTablesFromPostedServiceHeaderToServiceHeader(ToServiceHeader: Record "Service Header"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20]):
Parameters:
ToServiceHeader: Service header to copy to.FromDocumentType: Document Type as Enum KVSKBAPostedServiceDocTextTyp to copy fromFromDocumentNo: Document No. to copy from
CopyAddedTablesFromPostedServiceLineToServiceItemLine(Record Service Item Line, Enum KVSKBAPostedServiceDocTextType, Code[20], Integer) :
Summary: Copies data from added tables linked to posted service line to linked tables to service item line.
procedure CopyAddedTablesFromPostedServiceLineToServiceItemLine(ToServiceItemLine: Record "Service Item Line"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20]; FromDocumentLineNo: Integer):
Parameters:
ToServiceItemLine: Service item line to copy toFromDocumentType: Posted document type to copy fromFromDocumentNo: Posted document number to copy fromFromDocumentLineNo: Posted document line number to copy from
Remarks: Transfers document text from posted service documents to service item line with date filtering
CopyAddedTablesFromPostedServiceLineToServiceLine(Record Service Line, Enum KVSKBAPostedServiceDocTextType, Code[20], Integer) :
Summary: Copies data from added tables linked to posted service line to linked tables to service line
procedure CopyAddedTablesFromPostedServiceLineToServiceLine(ToServiceLine: Record "Service Line"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20]; FromDocumentLineNo: Integer):
Parameters:
ToServiceLine: Service line to copy toFromDocumentType: Posted document type to copy fromFromDocumentNo: Posted document number to copy fromFromDocumentLineNo: Posted document line number to copy from
Remarks: Transfers document text from posted service documents to service line with date filtering
CopyAddedTablesFromServiceHeaderArchivedtoServiceHeader(Record Service Header, Record Service Header Archive, Boolean) :
Summary: Copies data from added tables linked to archived service header to linked tables to service header including comment lines if specified.
procedure CopyAddedTablesFromServiceHeaderArchivedtoServiceHeader(ServiceHeader: Record "Service Header"; ServiceHeaderArchive: Record "Service Header Archive"; CopyCommentLines: Boolean):
Parameters:
ServiceHeader: Service header to copy toServiceHeaderArchive: Archived service header to copy fromCopyCommentLines: Indicates whether to copy comment lines as well
Remarks: Transfers document text and optionally comment lines from archived service header with date filtering
CopyAddedTablesFromServiceItemLineArchivedtoServiceItemLine(Record Service Item Line, Record Service Item Line Archive, Boolean) :
Summary: Copies data from added tables linked to archived service item line to linked tables to service item line including comment lines if specified.
procedure CopyAddedTablesFromServiceItemLineArchivedtoServiceItemLine(ServiceItemLine: Record "Service Item Line"; ServiceItemLineArchive: Record "Service Item Line Archive"; CopyCommentLines: Boolean):
Parameters:
ServiceItemLine: Service item line to copy toServiceItemLineArchive: Archived service item line to copy fromCopyCommentLines: Indicates whether to copy comment lines as well
Remarks: Transfers document text and optionally comment lines from archived service item line with date filtering
CopyAddedTablesFromServiceLineArchivedtoServiceLine(Record Service Line, Record Service Line Archive) :
Summary: Copies data from added tables linked to archived service line to linked tables to service line.
procedure CopyAddedTablesFromServiceLineArchivedtoServiceLine(ServiceLine: Record "Service Line"; ServiceLineArchive: Record "Service Line Archive"):
Parameters:
ServiceLine: Service line to copy toServiceLineArchive: Archived service line to copy from
Remarks: Transfers document text from archived service line with date filtering
CopyAddedTablesLineNoToServiceLine(Record Service Line) :
Summary: Copies data from extended text lines to service line based on line number and type.
procedure CopyAddedTablesLineNoToServiceLine(ServiceLine: Record "Service Line"):
Parameters:
ServiceLine: Service line to copy extended text for
Remarks: Automatically transfers extended text from item/resource to service document text
CopyAddedTablesLineNoToServiceItemLine(Record Service Item Line) :
Summary: Copies data from extended text lines to service item line based on line number and type.
procedure CopyAddedTablesLineNoToServiceItemLine(ServiceItemLine: Record "Service Item Line"):
Parameters:
ServiceItemLine: Service item line to copy extended text for
Remarks: Automatically transfers extended text from service item to service document text
EvaluateServiceLine(Record Service Header) :
Summary: This function is called in Service document pages to calculate the subtotal-structure of the service lines of the Service Header.
procedure EvaluateServiceLine(ServiceHeader: Record "Service Header"):
Parameters:
ServiceHeader: The service header to calculate the service lines for
InsertBundleLines(Record Service Line, Boolean, Boolean, Boolean, Text[100]) :
Summary: This function will insert a new ServiceLine to finish an old and/or to open a new bundle.
procedure InsertBundleLines(ServiceLine: Record "Service Line"; BeforeCurrLine: Boolean; CloseOldBundle: Boolean; OpenNewBundle: Boolean; DescriptionText: Text[100]):
Parameters:
ServiceLine: The reference from where to put the new lines atBeforeCurrLine: If TRUE the new lines will be inserted before the referenced service line. If FALSE it will be inserted after the referenced service line.CloseOldBundle: If TRUE, a new ServiceLine will be inserted to close the old bundleOpenNewBundle: If TRUE, a new ServiceLine will be inserted to open a new bundleDescriptionText: The description of the new bundle
AddBundleLinesForServiceInv(Record Service Header, Integer, Integer) :
Summary: This function will insert new service lines with Type::Bundle and Type::End-Bundle for all service lines from the service header and between FromLineNo and ToLineNo. The bundle-structure will be analyzed for the first level only (not multi-level).
procedure AddBundleLinesForServiceInv(ServiceHeader: Record "Service Header"; FromLineNo: Integer; ToLineNo: Integer):
Parameters:
ServiceHeader: The header for which lines to modifyFromLineNo: From which line number to modifyToLineNo: To which line number to modify
CheckTotalStructureInServiceLine(Record Service Header, Boolean) :
Summary: This function will check the bundle and subtotal structure of the service lines.
procedure CheckTotalStructureInServiceLine(ServiceHeader: Record "Service Header"; CheckTotaling: Boolean):
Parameters:
ServiceHeader: The service item line to check the service lines forCheckTotaling: If TRUE, the function will check the field KVSKBATotaling too
CalcSubTotals(Record Service Line) :
Summary: This function will calculate the subtotals in the service line.
procedure CalcSubTotals(var ServiceLine: Record "Service Line"):
Parameters:
ServiceLine: The Subtotal Service Line to calculate
Events
OnBeforeCheckPrintLineInTabServiceLine(Record Service Line, Boolean) :
Summary: Event raised before checking print line in tab service line
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckPrintLineInTabServiceLine(ServiceLine: Record "Service Line"; var IsHandled: Boolean):
Parameters:
ServiceLine: The service line recordIsHandled: Boolean indicating if the event was handled
Remarks: Use this event to implement custom logic before checking print line in tab service line.
OnAfterCopyAddedTablesFromServiceLineToServiceLine(Record Service Line, Record Service Line) :
Summary: Event raised after copying added tables from one service line to another
[IntegrationEvent(false, false)]
local procedure OnAfterCopyAddedTablesFromServiceLineToServiceLine(FromServiceLine: Record "Service Line"; ToServiceLine: Record "Service Line"):
Parameters:
FromServiceLine: The source service line recordToServiceLine: The destination service line record
Remarks: Use this event to implement custom logic after copying added tables from one service line to another.
OnBeforeCheckNullPositionInServiceLine(Record Service Line, Boolean, Boolean) :
Summary: Event raised before checking for null position number in a service line
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckNullPositionInServiceLine(ServiceLine: Record "Service Line"; CheckNullPositionNo: Boolean; var Handled: Boolean):
Parameters:
ServiceLine: The service line recordCheckNullPositionNo: Boolean indicating if null position number check is requiredHandled: Boolean indicating if the event was handled
OnBeforeValidateServiceOrderTypeServiceContractHeader(Record Service Contract Header, Boolean) :
Summary: Event raised before validating the service order type on a service contract header
[IntegrationEvent(false, false)]
local procedure OnBeforeValidateServiceOrderTypeServiceContractHeader(var ServiceContractHeader: Record "Service Contract Header"; var IsHandled: Boolean):
Parameters:
ServiceContractHeader: The service contract header recordIsHandled: Boolean indicating if the event was handled
Remarks: Use this event to implement custom logic before validating the service order type on a service contract header.
OnBeforeValidateServiceOrderTypeServiceHeader(Record Service Header, Boolean) :
Summary: Event raised before validating the service order type on a service header
[IntegrationEvent(false, false)]
local procedure OnBeforeValidateServiceOrderTypeServiceHeader(var ServiceHeader: Record "Service Header"; var IsHandled: Boolean):
Parameters:
ServiceHeader: The service header recordIsHandled: Boolean indicating if the event was handled
Remarks: Use this event to implement custom logic before validating the service order type on a service header.
OnBeforeSetDefaultSalespersonOnServiceContractHeader(Record Service Contract Header, Boolean) :
Summary: Event raised before setting the default salesperson on a service contract header
[IntegrationEvent(false, false)]
local procedure OnBeforeSetDefaultSalespersonOnServiceContractHeader(var ServiceContractHeader: Record "Service Contract Header"; var IsHandled: Boolean):
Parameters:
ServiceContractHeader: The service contract header recordIsHandled: Boolean indicating if the event was handled
Remarks: Use this event to implement custom logic before setting the default salesperson on a service contract header.
OnBeforeSetDefaultSalespersonOnServiceHeader(Record Service Header, Boolean) :
Summary: Event raised before setting the default salesperson on a service header
[IntegrationEvent(false, false)]
local procedure OnBeforeSetDefaultSalespersonOnServiceHeader(var ServiceHeader: Record "Service Header"; var IsHandled: Boolean):
Parameters:
ServiceHeader: The service header recordIsHandled: Boolean indicating if the event was handled
Remarks: Use this event to implement custom logic before setting the default salesperson on a service header.
OnBeforeSetAssignedUserIDOnServiceContractHeader(Record Service Contract Header, Boolean, Boolean) :
Summary: Event raised before setting the assigned user ID on a service contract header
[IntegrationEvent(false, false)]
local procedure OnBeforeSetAssignedUserIDOnServiceContractHeader(var ServiceContractHeader: Record "Service Contract Header"; OnInsert: Boolean; var IsHandled: Boolean):
Parameters:
ServiceContractHeader: The service contract header recordOnInsert: Boolean indicating if the operation is in insert modeIsHandled: Boolean indicating if the event was handled
Remarks: Use this event to implement custom logic before setting the assigned user ID on a service contract header.
OnBeforeSetAssignedUserIDOnServiceHeader(Record Service Header, Boolean, Boolean) :
Summary: Event raised before setting the assigned user ID on a service header
[IntegrationEvent(false, false)]
local procedure OnBeforeSetAssignedUserIDOnServiceHeader(var ServiceHeader: Record "Service Header"; OnInsertMode: Boolean; var IsHandled: Boolean):
Parameters:
ServiceHeader: The service header recordOnInsertMode: Boolean indicating if the operation is in insert modeIsHandled: Boolean indicating if the event was handled
Remarks: Use this event to implement custom logic before setting the assigned user ID on a service header.
OnAfterCopyAddedTablesFromServiceItemLineToServiceItemLine(Record Service Item Line, Record Service Item Line) :
Summary: Event raised after copying added tables from one service item line to another
[IntegrationEvent(false, false)]
local procedure OnAfterCopyAddedTablesFromServiceItemLineToServiceItemLine(FromServiceItemLine: Record "Service Item Line"; ToServiceItemLine: Record "Service Item Line"):
Parameters:
FromServiceItemLine: The source service item line recordToServiceItemLine: The destination service item line record
Remarks: Use this event to implement custom logic after copying added tables from one service item line to another.
OnCopyAddedTablesLineNoToServiceLine(Record Service Line) :
Summary: Event raised after copying extended text lines to service line based on line number and type
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesLineNoToServiceLine(ServiceLine: Record "Service Line"):
Parameters:
ServiceLine: The service line record
Remarks: Use this event to implement custom logic after copying extended text lines to service line based on line number and type.
OnCopyAddedTablesLineNoToServiceItemLine(Record Service Item Line) :
Summary: Event raised after copying extended text lines to service item line based on line number and type
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesLineNoToServiceItemLine(ServiceItemLine: Record "Service Item Line"):
Parameters:
ServiceItemLine: The service item line record
Remarks: Use this event to implement custom logic after copying extended text lines to service item line based on line number and type.
OnInsertBundleLinesCloseOldBundleOnAfterServiceLineInsert(Record Service Line) :
Summary: Event raised after inserting a service line when closing an old bundle
[IntegrationEvent(false, false)]
local procedure OnInsertBundleLinesCloseOldBundleOnAfterServiceLineInsert(var ServiceLine: Record "Service Line"):
Parameters:
ServiceLine: The service line record
Remarks: Use this event to implement custom logic after inserting a service line when closing an old bundle.
OnInsertBundleLinesCloseOldBundleOnBeforeServiceLineInsert(Record Service Line) :
Summary: Event raised before inserting a service line when closing an old bundle
[IntegrationEvent(false, false)]
local procedure OnInsertBundleLinesCloseOldBundleOnBeforeServiceLineInsert(var ServiceLine: Record "Service Line"):
Parameters:
ServiceLine: The service line record
Remarks: Use this event to implement custom logic before inserting a service line when closing an old bundle.
OnInsertBundleLinesOpenNewBundleOnAfterServiceLineInsert(Record Service Line) :
Summary: Event raised after inserting a service line when opening a new bundle
[IntegrationEvent(false, false)]
local procedure OnInsertBundleLinesOpenNewBundleOnAfterServiceLineInsert(var ServiceLine: Record "Service Line"):
Parameters:
ServiceLine: The service line record
Remarks: Use this event to implement custom logic after inserting a service line when opening a new bundle.
OnInsertBundleLinesOpenNewBundleOnBeforeServiceLineInsert(Record Service Line) :
Summary: Event raised before inserting a service line when opening a new bundle
[IntegrationEvent(false, false)]
local procedure OnInsertBundleLinesOpenNewBundleOnBeforeServiceLineInsert(var ServiceLine: Record "Service Line"):
Parameters:
ServiceLine: The service line record
Remarks: Use this event to implement custom logic before inserting a service line when opening a new bundle.
OnBeforeIsServiceLineTypeForEndBundle(Enum Service Line Type, Boolean, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnBeforeIsServiceLineTypeForEndBundle(ServiceLineType: Enum "Service Line Type"; var IsBundleType: Boolean; var IsHandled: Boolean):
OnBeforeEvaluateServiceLine(Record Service Header, Boolean) :
Summary: Event raised before evaluating a service line
[IntegrationEvent(false, false)]
local procedure OnBeforeEvaluateServiceLine(ServiceHeader: Record "Service Header"; var IsHandled: Boolean):
Parameters:
ServiceHeader: The service header recordIsHandled: Boolean indicating if the event was handled
Remarks: Use this event to implement custom logic before evaluating a service line.
OnCheckTotalStructureInServiceLineOnBeforeCheckBundleTotalStructure(Record Service Line, Boolean, Integer, Boolean, Boolean, Integer, Integer) :
Summary: Event raised before checking the total structure in service lines for bundle totals
[IntegrationEvent(false, false)]
local procedure OnCheckTotalStructureInServiceLineOnBeforeCheckBundleTotalStructure(var ServiceLine: Record "Service Line"; var BundleStarted: Boolean; var NumberOfOpenSubtotals: Integer; var IsHandled: Boolean; CheckTotaling: Boolean; LineNoArray: Integer; LineArrayPosition: Integer):
Parameters:
ServiceLine: The service line recordBundleStarted: Boolean indicating if a bundle has startedNumberOfOpenSubtotals: Number of open subtotalsIsHandled: Boolean indicating if the event was handledCheckTotaling: Boolean indicating if totaling check is performedLineNoArray: Array of line numbers for subtotal trackingLineArrayPosition: Current position in the line number array
Remarks: Use this event to implement custom logic before checking the total structure in service lines for bundle totals.
OnCheckTotalStructureInServiceLineOnBeforeCheckTotalling(Record Service Line, Boolean, Integer, Integer, Boolean) :
Summary: Event raised before checking the total structure in service lines
[IntegrationEvent(false, false)]
local procedure OnCheckTotalStructureInServiceLineOnBeforeCheckTotalling(var ServiceLine: Record "Service Line"; CheckTotaling: Boolean; LineNoArray: Integer; var LineArrayPosition: Integer; var IsHandled: Boolean):
Parameters:
ServiceLine: The service line recordCheckTotaling: Boolean indicating if totaling check is performedLineNoArray: Array of line numbers for subtotal trackingLineArrayPosition: Current position in the line number arrayIsHandled: Boolean indicating if the event was handled
Remarks: Use this event to implement custom logic before checking the total structure in service lines.
OnBeforeOnCheckErrorIsServiceLineTypeForTotalingCalculation(Enum Service Line Type, Boolean, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnBeforeOnCheckErrorIsServiceLineTypeForTotalingCalculation(ServiceLineType: Enum "Service Line Type"; var IsEndType: Boolean; var IsHandled: Boolean):
OnBeforeIsServiceLineTypeForTotalingCalculation(Enum Service Line Type, Boolean, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnBeforeIsServiceLineTypeForTotalingCalculation(ServiceLineType: Enum "Service Line Type"; var IsEndType: Boolean; var IsHandled: Boolean):
OnEvaluateServiceLineOnBeforeServiceLineModify(Record Service Line) :
Summary: Event raised before modifying a service line
[IntegrationEvent(false, false)]
local procedure OnEvaluateServiceLineOnBeforeServiceLineModify(ServiceLine: Record "Service Line"):
Parameters:
ServiceLine: The service line record
Remarks: Use this event to implement custom logic before modifying a service line.
OnEvaluateServiceLineOnAfterServiceLineModify(Record Service Line) :
Summary: Event raised after modifying a service line
[IntegrationEvent(false, false)]
local procedure OnEvaluateServiceLineOnAfterServiceLineModify(ServiceLine: Record "Service Line"):
Parameters:
ServiceLine: The service line record
Remarks: Use this event to implement custom logic after modifying a service line.
OnEvaluateServiceLineOnBeforeHandleEndSubTotal(Record Service Header, Record Service Line, Integer, Integer, Boolean) :
Summary: Event raised before handling end subtotal in service line evaluation
[IntegrationEvent(false, false)]
local procedure OnEvaluateServiceLineOnBeforeHandleEndSubTotal(ServiceHeader: Record "Service Header"; ServiceLine: Record "Service Line"; LineNoArray: Integer; IndentationInteger: Integer; IsServiceLineHandled: Boolean):
Parameters:
ServiceHeader: The service header recordServiceLine: The service line recordLineNoArray: Array of line numbers for subtotal trackingIndentationInteger: Indentation level for subtotal trackingIsServiceLineHandled: Boolean indicating if the service line was handled
Remarks: Use this event to implement custom logic before handling end subtotal.
OnAfterCalcSubTotals(Record Service Line) :
Summary: Event raised after calculating subtotals in a service line
[IntegrationEvent(false, false)]
local procedure OnAfterCalcSubTotals(var ServiceLine: Record "Service Line"):
Parameters:
ServiceLine: The service line record
Remarks: Use this event to implement custom logic after calculating subtotals.
OnBeforeSetSalespersonCode(Code[20], Code[20], Boolean) :
Summary: Event raised before setting salesperson code
[IntegrationEvent(false, false)]
local procedure OnBeforeSetSalespersonCode(SalesPersonCodeToCheck: Code[20]; var SalesPersonCodeToAssign: Code[20]; var IsHandled: Boolean):
Parameters:
SalesPersonCodeToCheck: Salesperson code to checkSalesPersonCodeToAssign: Variable to assign the salesperson code toIsHandled: Boolean indicating if the event was handled
Remarks: Use this event to implement custom logic before setting salesperson code.
OnAfterCopyAddedTablesFromServiceLinetoPostedServiceLine(Record Service Line, Enum KVSKBAPostedServiceDocTextType, Code[20], Integer) :
Summary: Event raised after copying added tables from service line to posted service line
[IntegrationEvent(false, false)]
local procedure OnAfterCopyAddedTablesFromServiceLinetoPostedServiceLine(ServiceLine: Record "Service Line"; PostedServiceDocTextType: Enum "KVSKBAPostedServiceDocTextType"; DocumentNo: Code[20]; DocumentLineNo: Integer):
Parameters:
ServiceLine: Source service line recordPostedServiceDocTextType: Destination posted service document text typeDocumentNo: Destination document numberDocumentLineNo: Destination document line number
Remarks: Use this event to implement custom logic after copying added tables from service line to posted service line.
OnBeforeGetSpecialNote(Integer, Code[20], Text[50], Boolean) :
Summary: Event raised before getting special note
[IntegrationEvent(false, false)]
local procedure OnBeforeGetSpecialNote(DatabaseInteger: Integer; No: Code[20]; var CommentTextReturn: Text[50]; var IsHandled: Boolean):
Parameters:
DatabaseInteger: Database integer identifierNo: Record numberCommentTextReturn: Comment text to returnIsHandled: Boolean indicating if the event was handled
Remarks: Use this event to implement custom logic before getting special note.
OnBeforeShowSpecialNote(Integer, Code[20], Boolean) :
Summary: Event raised before showing special note
[IntegrationEvent(false, false)]
local procedure OnBeforeShowSpecialNote(DatabaseInteger: Integer; No: Code[20]; var IsHandled: Boolean):
Parameters:
DatabaseInteger: Database integer identifierNo: Record numberIsHandled: Boolean indicating if the event was handled
Remarks: Use this event to implement custom logic before showing special note.
OnAfterCopyAddedTablesFromServiceItemLineToServiceShipmentItemLine(Record Service Item Line, Record Service Shipment Item Line) :
Summary: Event raised after copying added tables from service item line to service shipment item line
[IntegrationEvent(false, false)]
local procedure OnAfterCopyAddedTablesFromServiceItemLineToServiceShipmentItemLine(ServiceItemLine: Record "Service Item Line"; ServiceShipmentItemLine: Record "Service Shipment Item Line"):
Parameters:
ServiceItemLine: Source service item line recordServiceShipmentItemLine: Destination service shipment item line record
Remarks: Use this event to implement custom logic after copying added tables from service item line to service shipment item line.
OnAfterCopyAddedTablesFromPostedServiceLineToServiceLine(Record Service Line, Enum KVSKBAPostedServiceDocTextType, Code[20], Integer) :
Summary: Event raised after copying added tables from posted service line to service line
[IntegrationEvent(false, false)]
local procedure OnAfterCopyAddedTablesFromPostedServiceLineToServiceLine(ToServiceLine: Record "Service Line"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20]; FromDocumentLineNo: Integer):
Parameters:
ToServiceLine: Destination service line recordFromDocumentType: Source document typeFromDocumentNo: Source document numberFromDocumentLineNo: Source document line number
Remarks: Use this event to implement custom logic after copying added tables from posted service line to service line.
OnAfterCopyAddedTablesFromPostedServiceLineToServiceItemLine(Record Service Item Line, Enum KVSKBAPostedServiceDocTextType, Code[20], Integer) :
Summary: Event raised after copying added tables from posted service line to service item line
[IntegrationEvent(false, false)]
local procedure OnAfterCopyAddedTablesFromPostedServiceLineToServiceItemLine(ToServiceItemLine: Record "Service Item Line"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20]; FromDocumentLineNo: Integer):
Parameters:
ToServiceItemLine: Destination service item line recordFromDocumentType: Source document typeFromDocumentNo: Source document numberFromDocumentLineNo: Source document line number
Remarks: Use this event to implement custom logic after copying added tables from posted service line to service item line.
OnAfterCopyAddedTablesFromPostedServiceHeaderToServiceHeader(Record Service Header, Enum KVSKBAPostedServiceDocTextType, Code[20]) :
Summary: Event raised after copying added tables from posted service header to service header
[IntegrationEvent(false, false)]
local procedure OnAfterCopyAddedTablesFromPostedServiceHeaderToServiceHeader(ToServiceHeader: Record "Service Header"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20]):
Parameters:
ToServiceHeader: Destination service header recordFromDocumentType: Source document typeFromDocumentNo: Source document number
Remarks: Use this event to implement custom logic after copying added tables from posted service header to service header.
OnAfterCopyAddedTablesFromServiceHeadertoPostedServiceHeader(Record Service Header, Enum KVSKBAPostedServiceDocTextType, Code[20]) :
Summary: Event raised after copying added tables from service header to posted service header
[IntegrationEvent(false, false)]
local procedure OnAfterCopyAddedTablesFromServiceHeadertoPostedServiceHeader(FromServiceHeader: Record "Service Header"; ToDocumentType: Enum "KVSKBAPostedServiceDocTextType"; ToDocumentNo: Code[20]):
Parameters:
FromServiceHeader: Source service header recordToDocumentType: Destination document typeToDocumentNo: Destination document number
Remarks: Use this event to implement custom logic after copying added tables from service header to posted service header.
OnAfterCopyAddedTablesFromServiceHeaderToServiceHeader(Record Service Header, Record Service Header) :
Summary: Event raised after copying added tables from service header to service header
[IntegrationEvent(false, false)]
local procedure OnAfterCopyAddedTablesFromServiceHeaderToServiceHeader(FromServiceHeader: Record "Service Header"; ToServiceHeader: Record "Service Header"):
Parameters:
FromServiceHeader: Source service header recordToServiceHeader: Destination service header record
Remarks: Use this event to implement custom logic after copying added tables from one service header to another.
OnBeforeCreatePurchaseOrderByServiceOrder(Record Service Header, Option, Code[20], Integer, Code[20], Boolean, Boolean, Boolean) :
Summary: Event raised before creating purchase orders for service orders
[IntegrationEvent(false, false)]
local procedure OnBeforeCreatePurchaseOrderByServiceOrder(ServiceHeader: Record "Service Header"; OrderType: Option; OrderNo: Code[20]; LineNo: Integer; VendorNo: Code[20]; ShowDocument: Boolean; MultipleVendors: Boolean; var IsHandled: Boolean):
Parameters:
ServiceHeader: Service header for which purchase order is to be createdOrderType: Type of order (Drop Shipment or Special Order)OrderNo: Service order numberLineNo: Service item line numberVendorNo: Vendor to purchase fromShowDocument: Whether the created purchase order is to be displayedMultipleVendors: Whether multiple vendors are to be handledIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before creating purchase orders for service orders.
OnAfterCreatePurchaseOrderByServiceOrder(Record Service Header, Record Purchase Header, Option, Boolean, Boolean) :
Summary: Event raised after creating purchase orders for service orders
[IntegrationEvent(false, false)]
local procedure OnAfterCreatePurchaseOrderByServiceOrder(ServiceHeader: Record "Service Header"; PurchaseHeader: Record "Purchase Header"; OrderType: Option; ShowDocument: Boolean; MultipleVendors: Boolean):
Parameters:
ServiceHeader: Service header for which purchase order was createdPurchaseHeader: Created purchase headerOrderType: Type of order (Drop Shipment or Special Order)ShowDocument: Whether the created purchase order is displayedMultipleVendors: Whether multiple vendors were handled
Remarks: Use this event to implement custom logic after creating purchase orders for service orders.
OnBeforeShowPurchaseOrdersAfterCreate(List, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnBeforeShowPurchaseOrdersAfterCreate(PurchaseHeaderNoList: List; var IsHandled: Boolean):
OnBeforeCopyAddedTablesFromServiceLineArchivedtoServiceLine(Record Service Line, Record Service Line Archive, Boolean) :
Summary: Event raised before copying added tables from service line archive to service line
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesFromServiceLineArchivedtoServiceLine(ServiceLine: Record "Service Line"; ServiceLineArchive: Record "Service Line Archive"; var IsHandled: Boolean):
Parameters:
ServiceLine: Service line being processedServiceLineArchive: Service line archive being processedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying added tables from service line archive to service line.
OnBeforeCopyAddedTablesFromServiceHeaderArchivedtoServiceHeader(Record Service Header, Record Service Header Archive, Boolean, Boolean) :
Summary: Event raised before copying added tables from service header archive to service header
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesFromServiceHeaderArchivedtoServiceHeader(ServiceHeader: Record "Service Header"; ServiceHeaderArchive: Record "Service Header Archive"; CopyCommentLines: Boolean; var IsHandled: Boolean):
Parameters:
ServiceHeader: Service header being processedServiceHeaderArchive: Service header archive being processedCopyCommentLines: Indicates whether comment lines are copiedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying added tables from service header archive to service header.
OnBeforeCopyAddedTablesFromServiceItemLineArchivedtoServiceItemLine(Record Service Item Line, Record Service Item Line Archive, Boolean, Boolean) :
Summary: Event raised before copying added tables from service item line archive to service item line
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesFromServiceItemLineArchivedtoServiceItemLine(ServiceItemLine: Record "Service Item Line"; ServiceItemLineArchive: Record "Service Item Line Archive"; CopyCommentLines: Boolean; var IsHandled: Boolean):
Parameters:
ServiceItemLine: Service item line being processedServiceItemLineArchive: Service item line archive being processedCopyCommentLines: Indicates whether comment lines are copiedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying added tables from service item line archive to service item line.
OnAfterCopyAddedTablesFromServiceItemLineArchivedtoServiceItemLine(Record Service Item Line, Record Service Item Line Archive, Boolean) :
Summary: Event raised after copying added tables from service item line archive to service item line
[IntegrationEvent(false, false)]
local procedure OnAfterCopyAddedTablesFromServiceItemLineArchivedtoServiceItemLine(ServiceItemLine: Record "Service Item Line"; ServiceItemLineArchive: Record "Service Item Line Archive"; CopyCommentLines: Boolean):
Parameters:
ServiceItemLine: Service item line being processedServiceItemLineArchive: Service item line archive being processedCopyCommentLines: Indicates whether comment lines are copied
Remarks: Use this event to implement custom logic after copying added tables from service item line archive to service item line.
OnAfterCopyAddedTablesFromServiceHeaderArchivedtoServiceHeader(Record Service Header, Record Service Header Archive, Boolean) :
Summary: Event raised after copying added tables from service header archive to service header
[IntegrationEvent(false, false)]
local procedure OnAfterCopyAddedTablesFromServiceHeaderArchivedtoServiceHeader(ServiceHeader: Record "Service Header"; ServiceHeaderArchive: Record "Service Header Archive"; CopyCommentLines: Boolean):
Parameters:
ServiceHeader: Service header being processedServiceHeaderArchive: Service header archive being processedCopyCommentLines: Indicates whether comment lines are copied
Remarks: Use this event to implement custom logic after copying added tables from service header archive to service header.
OnAfterCopyAddedTablesFromServiceLineArchivedtoServiceLine(Record Service Line, Record Service Line Archive) :
Summary: Event raised after copying added tables from service line archive to service line
[IntegrationEvent(false, false)]
local procedure OnAfterCopyAddedTablesFromServiceLineArchivedtoServiceLine(ServiceLine: Record "Service Line"; ServiceLineArchive: Record "Service Line Archive"):
Parameters:
ServiceLine: Service line being processedServiceLineArchive: Service line archive being processed
Remarks: Use this event to implement custom logic after copying added tables from service line archive to service line.
OnBeforeDeleteAddedTablesFromServiceHeader(Record Service Header, Boolean, Boolean, Boolean) :
Summary: Event raised before deleting added tables from service header
[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteAddedTablesFromServiceHeader(ServiceHeader: Record "Service Header"; WithLines: Boolean; DeleteCommentLines: Boolean; var IsHandled: Boolean):
Parameters:
ServiceHeader: Service header being processedWithLines: Indicates whether lines are includedDeleteCommentLines: Indicates whether comment lines are deletedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before deleting added tables from service header.
OnBeforeDeleteAddedTablesfromServiceItemLine(Record Service Item Line, Boolean, Boolean) :
Summary: Event raised before deleting added tables from service item line
[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteAddedTablesfromServiceItemLine(ServiceItemLine: Record "Service Item Line"; DeleteCommentLines: Boolean; var IsHandled: Boolean):
Parameters:
ServiceItemLine: Service item line being processedDeleteCommentLines: Indicates whether comment lines are deletedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before deleting added tables from service item line.
OnBeforeDeleteAddedTablesfromServiceLine(Record Service Line, Boolean) :
Summary: Event raised before deleting added tables from service line
[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteAddedTablesfromServiceLine(ServiceLine: Record "Service Line"; var IsHandled: Boolean):
Parameters:
ServiceLine: Service line being processedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before deleting added tables from service line.
OnAfterDeleteAddedTablesfromServiceLine(Record Service Line) :
Summary: Event raised after deleting added tables from service line
[IntegrationEvent(false, false)]
local procedure OnAfterDeleteAddedTablesfromServiceLine(ServiceLine: Record "Service Line"):
Parameters:
ServiceLine: Service line being processed
Remarks: Use this event to implement custom logic after deleting added tables from service line.
OnAfterDeleteAddedTablesfromServiceItemLine(Record Service Item Line, Boolean) :
Summary: Event raised after deleting added tables from service item line
[IntegrationEvent(false, false)]
local procedure OnAfterDeleteAddedTablesfromServiceItemLine(ServiceItemLine: Record "Service Item Line"; DeleteCommentLines: Boolean):
Parameters:
ServiceItemLine: Service item line being processedDeleteCommentLines: Indicates whether comment lines are deleted
Remarks: Use this event to implement custom logic after deleting added tables from service item line.
OnAfterDeleteAddedTablesFromServiceHeader(Record Service Header, Boolean, Boolean) :
Summary: Event raised after deleting added tables from service header
[IntegrationEvent(false, false)]
local procedure OnAfterDeleteAddedTablesFromServiceHeader(ServiceHeader: Record "Service Header"; WithLines: Boolean; DeleteCommentLines: Boolean):
Parameters:
ServiceHeader: Service header being processedWithLines: Indicates whether lines are includedDeleteCommentLines: Indicates whether comment lines are deleted
Remarks: Use this event to implement custom logic after deleting added tables from service header.
OnBeforeDeleteAddedTablesFromServiceHeaderArchive(Record Service Header Archive, Boolean, Boolean) :
Summary: Event raised before deleting added tables from service header archive
[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteAddedTablesFromServiceHeaderArchive(ServiceHeaderArchive: Record "Service Header Archive"; WithLines: Boolean; var IsHandled: Boolean):
Parameters:
ServiceHeaderArchive: Service header archive being processedWithLines: Indicates whether lines are includedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before deleting added tables from service header archive.
OnAfterDeleteAddedTablesFromServiceHeaderArchive(Record Service Header Archive, Boolean) :
Summary: Event raised after deleting added tables from service header archive
[IntegrationEvent(false, false)]
local procedure OnAfterDeleteAddedTablesFromServiceHeaderArchive(ServiceHeaderArchive: Record "Service Header Archive"; WithLines: Boolean):
Parameters:
ServiceHeaderArchive: Service header archive being processedWithLines: Indicates whether lines are included
Remarks: Use this event to implement custom logic after deleting added tables from service header archive.
OnBeforeDeleteAddedTablesfromServiceShipmentHeader(Record Service Shipment Header, Boolean) :
Summary: Event raised before deleting added tables from service shipment header
[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteAddedTablesfromServiceShipmentHeader(ServiceShipmentHeader: Record "Service Shipment Header"; var IsHandled: Boolean):
Parameters:
ServiceShipmentHeader: Service shipment header being processedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before deleting added tables from service shipment header.
OnAfterDeleteAddedTablesfromServiceShipmentHeader(Record Service Shipment Header) :
Summary: Event raised after deleting added tables from service shipment header
[IntegrationEvent(false, false)]
local procedure OnAfterDeleteAddedTablesfromServiceShipmentHeader(ServiceShipmentHeader: Record "Service Shipment Header"):
Parameters:
ServiceShipmentHeader: Service shipment header being processed
Remarks: Use this event to implement custom logic after deleting added tables from service shipment header.
OnBeforeDeleteAddedTablesfromServiceInvoiceHeader(Record Service Invoice Header, Boolean) :
Summary: Event raised before deleting added tables from service invoice header
[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteAddedTablesfromServiceInvoiceHeader(ServiceInvoiceHeader: Record "Service Invoice Header"; var IsHandled: Boolean):
Parameters:
ServiceInvoiceHeader: Service invoice header being processedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before deleting added tables from service invoice header.
OnAfterDeleteAddedTablesfromServiceInvoiceHeader(Record Service Invoice Header) :
Summary: Event raised after deleting added tables from service invoice header
[IntegrationEvent(false, false)]
local procedure OnAfterDeleteAddedTablesfromServiceInvoiceHeader(ServiceInvoiceHeader: Record "Service Invoice Header"):
Parameters:
ServiceInvoiceHeader: Service invoice header being processed
Remarks: Use this event to implement custom logic after deleting added tables from service invoice header.
OnBeforeDeleteAddedTablesfromServiceCrMemoHeader(Record Service Cr.Memo Header, Boolean) :
Summary: Event raised before deleting added tables from service credit memo header
[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteAddedTablesfromServiceCrMemoHeader(ServiceCrMemoHeader: Record "Service Cr.Memo Header"; var IsHandled: Boolean):
Parameters:
ServiceCrMemoHeader: Service credit memo header being processedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before deleting added tables from service credit memo header.
OnAfterDeleteAddedTablesfromServiceCrMemoHeader(Record Service Cr.Memo Header) :
Summary: Event raised after deleting added tables from service credit memo header
[IntegrationEvent(false, false)]
local procedure OnAfterDeleteAddedTablesfromServiceCrMemoHeader(ServiceCrMemoHeader: Record "Service Cr.Memo Header"):
Parameters:
ServiceCrMemoHeader: Service credit memo header being processed
Remarks: Use this event to implement custom logic after deleting added tables from service credit memo header.
OnBeforeCopyAddedTablesCustToServiceHeader(Record Service Header, Boolean) :
Summary: Event raised before copying data from customer to service header
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesCustToServiceHeader(ServiceHeader: Record "Service Header"; var IsHandled: Boolean):
Parameters:
ServiceHeader: Service header being processedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying data from customer to service header.
OnBeforeCopyAddedTablesFromServiceHeaderToServiceHeader(Record Service Header, Record Service Header, Boolean) :
Summary: Event raised before copying data from service header to service header based on type and number
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesFromServiceHeaderToServiceHeader(FromServiceHeader: Record "Service Header"; ToServiceHeader: Record "Service Header"; var IsHandled: Boolean):
Parameters:
FromServiceHeader: Service header being processedToServiceHeader: Service header being processedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying data from service header to service header based on type and number.
OnBeforeCopyAddedTablesFromServiceItemLineToServiceItemLine(Record Service Item Line, Record Service Item Line, Boolean) :
Summary: Event raised before copying data from service item line to service item line based on line number
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesFromServiceItemLineToServiceItemLine(FromServiceItemLine: Record "Service Item Line"; ToServiceItemLine: Record "Service Item Line"; var IsHandled: Boolean):
Parameters:
FromServiceItemLine: Service item line being processedToServiceItemLine: Service item line being processedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying data from service item line to service item line based on line number.
OnBeforeCopyAddedTablesFromServiceLineToServiceLine(Record Service Line, Record Service Line, Boolean) :
Summary: Event raised before copying data from service line to service line based on line number
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesFromServiceLineToServiceLine(FromServiceLine: Record "Service Line"; ToServiceLine: Record "Service Line"; var IsHandled: Boolean):
Parameters:
FromServiceLine: Service line being processedToServiceLine: Service line being processedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying data from service line to service line based on line number.
OnBeforeCopyAddedTablesFromServiceHeadertoPostedServiceHeader(Record Service Header, Enum KVSKBAPostedServiceDocTextType, Code[20], Boolean) :
Summary: Event raised before copying data from service header to posted service header based on type and number
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesFromServiceHeadertoPostedServiceHeader(FromServiceHeader: Record "Service Header"; ToDocumentType: Enum "KVSKBAPostedServiceDocTextType"; ToDocumentNo: Code[20]; var IsHandled: Boolean):
Parameters:
FromServiceHeader: Service header being processedToDocumentType: Type of the posted service documentToDocumentNo: Document number of the posted service documentIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying data from service header to posted service header based on type and number.
OnBeforeCopyAddedTablesFromServiceItemLineToServiceShipmentItemLine(Record Service Item Line, Record Service Shipment Item Line, Boolean) :
Summary: Event raised before copying data from service item line to service shipment item line based on line number
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesFromServiceItemLineToServiceShipmentItemLine(FromServiceItemLine: Record "Service Item Line"; ToServiceShipmentItemLine: Record "Service Shipment Item Line"; var IsHandled: Boolean):
Parameters:
FromServiceItemLine: Service item line being processedToServiceShipmentItemLine: Service shipment item line being processedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying data from service item line to service shipment item line based on line number.
OnBeforeCopyAddedTablesFromServiceLinetoPostedServiceLine(Record Service Line, Enum KVSKBAPostedServiceDocTextType, Code[20], Integer, Boolean) :
Summary: Event raised before copying data from service line to posted service line based on line number and type
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesFromServiceLinetoPostedServiceLine(FromServiceLine: Record "Service Line"; DocumentType: Enum "KVSKBAPostedServiceDocTextType"; DocumentNo: Code[20]; DocumentLineNo: Integer; var IsHandled: Boolean):
Parameters:
FromServiceLine: Service line being processedDocumentType: Type of the posted service documentDocumentNo: Document number of the posted service documentDocumentLineNo: Line number of the posted service documentIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying data from service line to posted service line based on line number and type.
OnBeforeCopyAddedTablesFromPostedServiceHeaderToServiceHeader(Record Service Header, Enum KVSKBAPostedServiceDocTextType, Code[20], Boolean) :
Summary: Event raised before copying data from posted service header to service header based on type and number
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesFromPostedServiceHeaderToServiceHeader(ToServiceHeader: Record "Service Header"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20]; var IsHandled: Boolean):
Parameters:
ToServiceHeader: Service header being processedFromDocumentType: Type of the posted service documentFromDocumentNo: Document number of the posted service documentIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying data from posted service header to service header based on type and number.
OnBeforeCopyAddedTablesFromPostedServiceLineToServiceItemLine(Record Service Item Line, Enum KVSKBAPostedServiceDocTextType, Code[20], Integer, Boolean) :
Summary: Event raised before copying data from posted service line to service item line based on line number and type
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesFromPostedServiceLineToServiceItemLine(ToServiceItemLine: Record "Service Item Line"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20]; FromDocumentLineNo: Integer; var IsHandled: Boolean):
Parameters:
ToServiceItemLine: Service item line being processedFromDocumentType: Type of the posted service documentFromDocumentNo: Document number of the posted service documentFromDocumentLineNo: Line number of the posted service documentIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying data from posted service line to service item line based on line number and type.
OnBeforeCopyAddedTablesFromPostedServiceLineToServiceLine(Record Service Line, Enum KVSKBAPostedServiceDocTextType, Code[20], Integer, Boolean) :
Summary: Event raised before copying data from posted service line to service line based on line number and type
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesFromPostedServiceLineToServiceLine(ToServiceLine: Record "Service Line"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20]; FromDocumentLineNo: Integer; var IsHandled: Boolean):
Parameters:
ToServiceLine: Service line being processedFromDocumentType: Type of the posted service documentFromDocumentNo: Document number of the posted service documentFromDocumentLineNo: Line number of the posted service documentIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying data from posted service line to service line based on line number and type.
OnBeforeCopyAddedTablesLineNoToServiceLine(Record Service Line, Boolean) :
Summary: Event raised before copying data from extended text lines to service line based on line number and type
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesLineNoToServiceLine(ServiceLine: Record "Service Line"; var IsHandled: Boolean):
Parameters:
ServiceLine: Service line being processedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying data from extended text lines to service line based on line number and type.
OnBeforeCopyAddedTablesLineNoToServiceItemLine(Record Service Item Line, Boolean) :
Summary: Event raised before copying from extended text lines to service item line based on line number and type
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesLineNoToServiceItemLine(ServiceItemLine: Record "Service Item Line"; var IsHandled: Boolean):
Parameters:
ServiceItemLine: Service item line being processedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before copying data from extended text lines to service item line based on line number and type.
OnBeforeShowServiceDocumentTextLines(Enum Service Document Type, Code[20], Enum KVSKBAServiceDocumentTable, Integer, Enum KVSKBATextPosition, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnBeforeShowServiceDocumentTextLines(ServiceDocumentType: Enum "Service Document Type"; DocumentNo: Code[20]; ServiceDocumentTable: Enum "KVSKBAServiceDocumentTable"; DocumentLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; var IsHandled: Boolean):
OnBeforeServiceLineValidateAlternative(Record Service Line, Boolean) :
Summary: Event raised before validating the Alternative field on a service line.
[IntegrationEvent(false, false)]
local procedure OnBeforeServiceLineValidateAlternative(var ServiceLine: Record "Service Line"; var IsHandled: Boolean):
Parameters:
ServiceLine: Service line being validatedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before validating the Alternative field on a service line.
OnBeforeServiceLineValidateAllowInvDisc(Record Service Line, Boolean) :
Summary: Event raised before validating the Allow Inv. Disc. field on a service line.
[IntegrationEvent(false, false)]
local procedure OnBeforeServiceLineValidateAllowInvDisc(var ServiceLine: Record "Service Line"; var IsHandled: Boolean):
Parameters:
ServiceLine: Service line being validatedIsHandled: Variable to indicate if the event is handled
OnBeforeUpdateBundleElementPrices(Record Service Line, Record Service Line, Boolean) :
Summary: Event raised before updating bundle element prices.
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateBundleElementPrices(ServiceLine: Record "Service Line"; xServiceLine: Record "Service Line"; var IsHandled: Boolean):
Parameters:
ServiceLine: Service line being processedxServiceLine: Service line before changesIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before updating bundle element prices.
OnBeforeInsertBundleLines(Record Service Line, Boolean, Boolean, Boolean, Text[100], Boolean) :
Summary: Event raised before inserting bundle lines.
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertBundleLines(ServiceLine: Record "Service Line"; BeforeCurrLine: Boolean; CloseOldBundle: Boolean; OpenNewBundle: Boolean; DescriptionText: Text[100]; var IsHandled: Boolean):
Parameters:
ServiceLine: Service line being processedBeforeCurrLine: Indicates whether the bundle lines are inserted before the current lineCloseOldBundle: Indicates whether the old bundle should be closedOpenNewBundle: Indicates whether a new bundle should be openedDescriptionText: Description text for the bundle linesIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to customize the behavior before inserting bundle lines.
OnBeforeCheckTotalStructureInServiceLine(Record Service Header, Boolean, Boolean) :
Summary: Event raised before checking total structure in service line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckTotalStructureInServiceLine(ServiceHeader: Record "Service Header"; CheckTotaling: Boolean; var IsHandled: Boolean):
Parameters:
ServiceHeader: Service header being checkedCheckTotaling: Indicates whether totaling check is to be performedIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to implement custom logic before checking total structure in service lines.
OnAfterCheckTotalStructureInServiceLine(Record Service Header, Boolean) :
Summary: Event raised after checking total structure in service line.
[IntegrationEvent(false, false)]
local procedure OnAfterCheckTotalStructureInServiceLine(ServiceHeader: Record "Service Header"; CheckTotaling: Boolean):
Parameters:
ServiceHeader: Service header being checkedCheckTotaling: Indicates whether totaling check was performed
Remarks: Use this event to implement additional logic after checking total structure in service lines.
OnBeforeInsertPurchaseDropShipmentOrderLine(Record Purchase Header, Code[20], Integer, Boolean) :
Summary: Event raised before inserting purchase drop shipment order line from service order line.
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertPurchaseDropShipmentOrderLine(var PurchaseHeader: Record "Purchase Header"; OrderNo: Code[20]; LineNo: Integer; var IsHandled: Boolean):
Parameters:
PurchaseHeader: Purchase header where the drop shipment line will be insertedOrderNo: Service order number from which the drop shipment line is createdLineNo: Service order line number from which the drop shipment line is createdIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to customize the behavior before inserting purchase drop shipment order line from service order line.
OnBeforeInsertPurchaseSpecialOrderLine(Record Purchase Header, Code[20], Integer, Boolean) :
Summary: Event raised before inserting purchase special order line from service order line.
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertPurchaseSpecialOrderLine(var PurchaseHeader: Record "Purchase Header"; OrderNo: Code[20]; LineNo: Integer; var IsHandled: Boolean):
Parameters:
PurchaseHeader: Purchase header where the special order line will be insertedOrderNo: Service order number from which the special order line is createdLineNo: Service order line number from which the special order line is createdIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to customize the behavior before inserting purchase special order line from service order line.
OnBeforeShowPurchaseOrders(Code[20], Integer, Boolean, Boolean, Boolean) :
Summary: Event raised before showing purchase orders linked to service order line.
[IntegrationEvent(false, false)]
local procedure OnBeforeShowPurchaseOrders(DocumentNo: Code[20]; LineNo: Integer; ShowDropShipments: Boolean; ShowSpecialOrders: Boolean; var IsHandled: Boolean):
Parameters:
DocumentNo: Document number of the service order lineLineNo: Line number of the service order lineShowDropShipments: Indicates whether to show drop shipment ordersShowSpecialOrders: Indicates whether to show special ordersIsHandled: Variable to indicate if the event is handled
Remarks: Use this event to customize the behavior before showing purchase orders linked to a service order line.
OnAfterCheckOtherNotBillable(Record Service Header, Record Service Line, Code[20], Enum KVSKBAPriceCalcSpecialOrigin, Enum KVSKBAPriceCalcSpecialOrigin) :
Summary: Event raised after checking for not billable codes from various sources.
[IntegrationEvent(false, false)]
local procedure OnAfterCheckOtherNotBillable(ServiceHeader: Record "Service Header"; ServiceLine: Record "Service Line"; var NotBillable: Code[20]; var PriceCalcSpecialOrigin: Enum "KVSKBAPriceCalcSpecialOrigin"; var DiscountCalcSpecialOrigin: Enum "KVSKBAPriceCalcSpecialOrigin"):
Parameters:
ServiceHeader: Service header for order type checkingServiceLine: Service line for not billable code checkingNotBillable: Variable to store found not billable codePriceCalcSpecialOrigin: Variable to store price calculation special originDiscountCalcSpecialOrigin: Variable to store discount calculation special origin
Remarks: Use this event to implement additional checks for not billable codes.
OnGetSpecialNoteSetCommentLineFilter(Record Comment Line) :
Summary: Integration event raised when getting special note to set comment line filter.
[IntegrationEvent(false, false)]
local procedure OnGetSpecialNoteSetCommentLineFilter(var CommentLine: Record "Comment Line"):
Parameters:
CommentLine: The comment line record to filter (by reference).
Remarks: Use this event to implement custom logic for setting filters on comment lines based on special notes.