Skip to content

KVSKBAServiceLib#

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 from
  • ToServiceHeader: 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 from
  • ToServiceItemLine: Service Item Line to copy to

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 from
  • ToServiceShipmentItemLine: Service Shipment Item Line to copy to

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 at
  • BeforeCurrLine: 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 bundle
  • OpenNewBundle: If TRUE, a new ServiceLine will be inserted to open a new bundle
  • DescriptionText: 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 modify
  • FromLineNo: From which line number to modify
  • ToLineNo: 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 for
  • CheckTotaling: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCheckPrintLineInTabServiceLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckPrintLineInTabServiceLine(ServiceLine: Record "Service Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceLine: The service line record
  • IsHandled: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCopyAddedTablesFromServiceLineToServiceLine', '', false, false)]
local procedure DoSomethingOnAfterCopyAddedTablesFromServiceLineToServiceLine(FromServiceLine: Record "Service Line"; ToServiceLine: Record "Service Line")
begin
end;

Parameters:

  • FromServiceLine: The source service line record
  • ToServiceLine: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCheckNullPositionInServiceLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckNullPositionInServiceLine(ServiceLine: Record "Service Line"; CheckNullPositionNo: Boolean; var Handled: Boolean)
begin
end;

Parameters:

  • ServiceLine: The service line record
  • CheckNullPositionNo: Boolean indicating if null position number check is required
  • Handled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeValidateServiceOrderTypeServiceContractHeader', '', false, false)]
local procedure DoSomethingOnBeforeValidateServiceOrderTypeServiceContractHeader(var ServiceContractHeader: Record "Service Contract Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceContractHeader: The service contract header record
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeValidateServiceOrderTypeServiceHeader', '', false, false)]
local procedure DoSomethingOnBeforeValidateServiceOrderTypeServiceHeader(var ServiceHeader: Record "Service Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The service header record
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeSetDefaultSalespersonOnServiceContractHeader', '', false, false)]
local procedure DoSomethingOnBeforeSetDefaultSalespersonOnServiceContractHeader(var ServiceContractHeader: Record "Service Contract Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceContractHeader: The service contract header record
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeSetDefaultSalespersonOnServiceHeader', '', false, false)]
local procedure DoSomethingOnBeforeSetDefaultSalespersonOnServiceHeader(var ServiceHeader: Record "Service Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The service header record
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeSetAssignedUserIDOnServiceContractHeader', '', false, false)]
local procedure DoSomethingOnBeforeSetAssignedUserIDOnServiceContractHeader(var ServiceContractHeader: Record "Service Contract Header"; OnInsert: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceContractHeader: The service contract header record
  • OnInsert: Boolean indicating if the operation is in insert mode
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeSetAssignedUserIDOnServiceHeader', '', false, false)]
local procedure DoSomethingOnBeforeSetAssignedUserIDOnServiceHeader(var ServiceHeader: Record "Service Header"; OnInsertMode: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The service header record
  • OnInsertMode: Boolean indicating if the operation is in insert mode
  • IsHandled: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCopyAddedTablesFromServiceItemLineToServiceItemLine', '', false, false)]
local procedure DoSomethingOnAfterCopyAddedTablesFromServiceItemLineToServiceItemLine(FromServiceItemLine: Record "Service Item Line"; ToServiceItemLine: Record "Service Item Line")
begin
end;

Parameters:

  • FromServiceItemLine: The source service item line record
  • ToServiceItemLine: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnCopyAddedTablesLineNoToServiceLine', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesLineNoToServiceLine(ServiceLine: Record "Service Line")
begin
end;

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnCopyAddedTablesLineNoToServiceItemLine', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesLineNoToServiceItemLine(ServiceItemLine: Record "Service Item Line")
begin
end;

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnInsertBundleLinesCloseOldBundleOnAfterServiceLineInsert', '', false, false)]
local procedure DoSomethingOnInsertBundleLinesCloseOldBundleOnAfterServiceLineInsert(var ServiceLine: Record "Service Line")
begin
end;

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnInsertBundleLinesCloseOldBundleOnBeforeServiceLineInsert', '', false, false)]
local procedure DoSomethingOnInsertBundleLinesCloseOldBundleOnBeforeServiceLineInsert(var ServiceLine: Record "Service Line")
begin
end;

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnInsertBundleLinesOpenNewBundleOnAfterServiceLineInsert', '', false, false)]
local procedure DoSomethingOnInsertBundleLinesOpenNewBundleOnAfterServiceLineInsert(var ServiceLine: Record "Service Line")
begin
end;

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnInsertBundleLinesOpenNewBundleOnBeforeServiceLineInsert', '', false, false)]
local procedure DoSomethingOnInsertBundleLinesOpenNewBundleOnBeforeServiceLineInsert(var ServiceLine: Record "Service Line")
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeIsServiceLineTypeForEndBundle', '', false, false)]
local procedure DoSomethingOnBeforeIsServiceLineTypeForEndBundle(ServiceLineType: Enum "Service Line Type"; var IsBundleType: Boolean; var IsHandled: Boolean)
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeEvaluateServiceLine', '', false, false)]
local procedure DoSomethingOnBeforeEvaluateServiceLine(ServiceHeader: Record "Service Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The service header record
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnCheckTotalStructureInServiceLineOnBeforeCheckBundleTotalStructure', '', false, false)]
local procedure DoSomethingOnCheckTotalStructureInServiceLineOnBeforeCheckBundleTotalStructure(var ServiceLine: Record "Service Line"; var BundleStarted: Boolean; var NumberOfOpenSubtotals: Integer; var IsHandled: Boolean; CheckTotaling: Boolean; LineNoArray: Integer; LineArrayPosition: Integer)
begin
end;

Parameters:

  • ServiceLine: The service line record
  • BundleStarted: Boolean indicating if a bundle has started
  • NumberOfOpenSubtotals: Number of open subtotals
  • IsHandled: Boolean indicating if the event was handled
  • CheckTotaling: Boolean indicating if totaling check is performed
  • LineNoArray: Array of line numbers for subtotal tracking
  • LineArrayPosition: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnCheckTotalStructureInServiceLineOnBeforeCheckTotalling', '', false, false)]
local procedure DoSomethingOnCheckTotalStructureInServiceLineOnBeforeCheckTotalling(var ServiceLine: Record "Service Line"; CheckTotaling: Boolean; LineNoArray: Integer; var LineArrayPosition: Integer; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceLine: The service line record
  • CheckTotaling: Boolean indicating if totaling check is performed
  • LineNoArray: Array of line numbers for subtotal tracking
  • LineArrayPosition: Current position in the line number array
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeOnCheckErrorIsServiceLineTypeForTotalingCalculation', '', false, false)]
local procedure DoSomethingOnBeforeOnCheckErrorIsServiceLineTypeForTotalingCalculation(ServiceLineType: Enum "Service Line Type"; var IsEndType: Boolean; var IsHandled: Boolean)
begin
end;

OnBeforeIsServiceLineTypeForTotalingCalculation(Enum Service Line Type, Boolean, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeIsServiceLineTypeForTotalingCalculation(ServiceLineType: Enum "Service Line Type"; var IsEndType: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeIsServiceLineTypeForTotalingCalculation', '', false, false)]
local procedure DoSomethingOnBeforeIsServiceLineTypeForTotalingCalculation(ServiceLineType: Enum "Service Line Type"; var IsEndType: Boolean; var IsHandled: Boolean)
begin
end;

OnEvaluateServiceLineOnBeforeServiceLineModify(Record Service Line) :#

Summary: Event raised before modifying a service line

[IntegrationEvent(false, false)]
local procedure OnEvaluateServiceLineOnBeforeServiceLineModify(ServiceLine: Record "Service Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnEvaluateServiceLineOnBeforeServiceLineModify', '', false, false)]
local procedure DoSomethingOnEvaluateServiceLineOnBeforeServiceLineModify(ServiceLine: Record "Service Line")
begin
end;

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnEvaluateServiceLineOnAfterServiceLineModify', '', false, false)]
local procedure DoSomethingOnEvaluateServiceLineOnAfterServiceLineModify(ServiceLine: Record "Service Line")
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnEvaluateServiceLineOnBeforeHandleEndSubTotal', '', false, false)]
local procedure DoSomethingOnEvaluateServiceLineOnBeforeHandleEndSubTotal(ServiceHeader: Record "Service Header"; ServiceLine: Record "Service Line"; LineNoArray: Integer; IndentationInteger: Integer; IsServiceLineHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The service header record
  • ServiceLine: The service line record
  • LineNoArray: Array of line numbers for subtotal tracking
  • IndentationInteger: Indentation level for subtotal tracking
  • IsServiceLineHandled: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCalcSubTotals', '', false, false)]
local procedure DoSomethingOnAfterCalcSubTotals(var ServiceLine: Record "Service Line")
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeSetSalespersonCode', '', false, false)]
local procedure DoSomethingOnBeforeSetSalespersonCode(SalesPersonCodeToCheck: Code[20]; var SalesPersonCodeToAssign: Code[20]; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesPersonCodeToCheck: Salesperson code to check
  • SalesPersonCodeToAssign: Variable to assign the salesperson code to
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCopyAddedTablesFromServiceLinetoPostedServiceLine', '', false, false)]
local procedure DoSomethingOnAfterCopyAddedTablesFromServiceLinetoPostedServiceLine(ServiceLine: Record "Service Line"; PostedServiceDocTextType: Enum "KVSKBAPostedServiceDocTextType"; DocumentNo: Code[20]; DocumentLineNo: Integer)
begin
end;

Parameters:

  • ServiceLine: Source service line record
  • PostedServiceDocTextType: Destination posted service document text type
  • DocumentNo: Destination document number
  • DocumentLineNo: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeGetSpecialNote', '', false, false)]
local procedure DoSomethingOnBeforeGetSpecialNote(DatabaseInteger: Integer; No: Code[20]; var CommentTextReturn: Text[50]; var IsHandled: Boolean)
begin
end;

Parameters:

  • DatabaseInteger: Database integer identifier
  • No: Record number
  • CommentTextReturn: Comment text to return
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeShowSpecialNote', '', false, false)]
local procedure DoSomethingOnBeforeShowSpecialNote(DatabaseInteger: Integer; No: Code[20]; var IsHandled: Boolean)
begin
end;

Parameters:

  • DatabaseInteger: Database integer identifier
  • No: Record number
  • IsHandled: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCopyAddedTablesFromServiceItemLineToServiceShipmentItemLine', '', false, false)]
local procedure DoSomethingOnAfterCopyAddedTablesFromServiceItemLineToServiceShipmentItemLine(ServiceItemLine: Record "Service Item Line"; ServiceShipmentItemLine: Record "Service Shipment Item Line")
begin
end;

Parameters:

  • ServiceItemLine: Source service item line record
  • ServiceShipmentItemLine: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCopyAddedTablesFromPostedServiceLineToServiceLine', '', false, false)]
local procedure DoSomethingOnAfterCopyAddedTablesFromPostedServiceLineToServiceLine(ToServiceLine: Record "Service Line"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20]; FromDocumentLineNo: Integer)
begin
end;

Parameters:

  • ToServiceLine: Destination service line record
  • FromDocumentType: Source document type
  • FromDocumentNo: Source document number
  • FromDocumentLineNo: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCopyAddedTablesFromPostedServiceLineToServiceItemLine', '', false, false)]
local procedure DoSomethingOnAfterCopyAddedTablesFromPostedServiceLineToServiceItemLine(ToServiceItemLine: Record "Service Item Line"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20]; FromDocumentLineNo: Integer)
begin
end;

Parameters:

  • ToServiceItemLine: Destination service item line record
  • FromDocumentType: Source document type
  • FromDocumentNo: Source document number
  • FromDocumentLineNo: 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]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCopyAddedTablesFromPostedServiceHeaderToServiceHeader', '', false, false)]
local procedure DoSomethingOnAfterCopyAddedTablesFromPostedServiceHeaderToServiceHeader(ToServiceHeader: Record "Service Header"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20])
begin
end;

Parameters:

  • ToServiceHeader: Destination service header record
  • FromDocumentType: Source document type
  • FromDocumentNo: 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]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCopyAddedTablesFromServiceHeadertoPostedServiceHeader', '', false, false)]
local procedure DoSomethingOnAfterCopyAddedTablesFromServiceHeadertoPostedServiceHeader(FromServiceHeader: Record "Service Header"; ToDocumentType: Enum "KVSKBAPostedServiceDocTextType"; ToDocumentNo: Code[20])
begin
end;

Parameters:

  • FromServiceHeader: Source service header record
  • ToDocumentType: Destination document type
  • ToDocumentNo: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCopyAddedTablesFromServiceHeaderToServiceHeader', '', false, false)]
local procedure DoSomethingOnAfterCopyAddedTablesFromServiceHeaderToServiceHeader(FromServiceHeader: Record "Service Header"; ToServiceHeader: Record "Service Header")
begin
end;

Parameters:

  • FromServiceHeader: Source service header record
  • ToServiceHeader: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCreatePurchaseOrderByServiceOrder', '', false, false)]
local procedure DoSomethingOnBeforeCreatePurchaseOrderByServiceOrder(ServiceHeader: Record "Service Header"; OrderType: Option; OrderNo: Code[20]; LineNo: Integer; VendorNo: Code[20]; ShowDocument: Boolean; MultipleVendors: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: Service header for which purchase order is to be created
  • OrderType: Type of order (Drop Shipment or Special Order)
  • OrderNo: Service order number
  • LineNo: Service item line number
  • VendorNo: Vendor to purchase from
  • ShowDocument: Whether the created purchase order is to be displayed
  • MultipleVendors: Whether multiple vendors are to be handled
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCreatePurchaseOrderByServiceOrder', '', false, false)]
local procedure DoSomethingOnAfterCreatePurchaseOrderByServiceOrder(ServiceHeader: Record "Service Header"; PurchaseHeader: Record "Purchase Header"; OrderType: Option; ShowDocument: Boolean; MultipleVendors: Boolean)
begin
end;

Parameters:

  • ServiceHeader: Service header for which purchase order was created
  • PurchaseHeader: Created purchase header
  • OrderType: Type of order (Drop Shipment or Special Order)
  • ShowDocument: Whether the created purchase order is displayed
  • MultipleVendors: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeShowPurchaseOrdersAfterCreate', '', false, false)]
local procedure DoSomethingOnBeforeShowPurchaseOrdersAfterCreate(PurchaseHeaderNoList: List; var IsHandled: Boolean)
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesFromServiceLineArchivedtoServiceLine', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesFromServiceLineArchivedtoServiceLine(ServiceLine: Record "Service Line"; ServiceLineArchive: Record "Service Line Archive"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceLine: Service line being processed
  • ServiceLineArchive: Service line archive being processed
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesFromServiceHeaderArchivedtoServiceHeader', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesFromServiceHeaderArchivedtoServiceHeader(ServiceHeader: Record "Service Header"; ServiceHeaderArchive: Record "Service Header Archive"; CopyCommentLines: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: Service header being processed
  • ServiceHeaderArchive: Service header archive being processed
  • CopyCommentLines: Indicates whether comment lines are copied
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesFromServiceItemLineArchivedtoServiceItemLine', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesFromServiceItemLineArchivedtoServiceItemLine(ServiceItemLine: Record "Service Item Line"; ServiceItemLineArchive: Record "Service Item Line Archive"; CopyCommentLines: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceItemLine: Service item line being processed
  • ServiceItemLineArchive: Service item line archive being processed
  • CopyCommentLines: Indicates whether comment lines are copied
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCopyAddedTablesFromServiceItemLineArchivedtoServiceItemLine', '', false, false)]
local procedure DoSomethingOnAfterCopyAddedTablesFromServiceItemLineArchivedtoServiceItemLine(ServiceItemLine: Record "Service Item Line"; ServiceItemLineArchive: Record "Service Item Line Archive"; CopyCommentLines: Boolean)
begin
end;

Parameters:

  • ServiceItemLine: Service item line being processed
  • ServiceItemLineArchive: Service item line archive being processed
  • CopyCommentLines: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCopyAddedTablesFromServiceHeaderArchivedtoServiceHeader', '', false, false)]
local procedure DoSomethingOnAfterCopyAddedTablesFromServiceHeaderArchivedtoServiceHeader(ServiceHeader: Record "Service Header"; ServiceHeaderArchive: Record "Service Header Archive"; CopyCommentLines: Boolean)
begin
end;

Parameters:

  • ServiceHeader: Service header being processed
  • ServiceHeaderArchive: Service header archive being processed
  • CopyCommentLines: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCopyAddedTablesFromServiceLineArchivedtoServiceLine', '', false, false)]
local procedure DoSomethingOnAfterCopyAddedTablesFromServiceLineArchivedtoServiceLine(ServiceLine: Record "Service Line"; ServiceLineArchive: Record "Service Line Archive")
begin
end;

Parameters:

  • ServiceLine: Service line being processed
  • ServiceLineArchive: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeDeleteAddedTablesFromServiceHeader', '', false, false)]
local procedure DoSomethingOnBeforeDeleteAddedTablesFromServiceHeader(ServiceHeader: Record "Service Header"; WithLines: Boolean; DeleteCommentLines: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: Service header being processed
  • WithLines: Indicates whether lines are included
  • DeleteCommentLines: Indicates whether comment lines are deleted
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeDeleteAddedTablesfromServiceItemLine', '', false, false)]
local procedure DoSomethingOnBeforeDeleteAddedTablesfromServiceItemLine(ServiceItemLine: Record "Service Item Line"; DeleteCommentLines: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceItemLine: Service item line being processed
  • DeleteCommentLines: Indicates whether comment lines are deleted
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeDeleteAddedTablesfromServiceLine', '', false, false)]
local procedure DoSomethingOnBeforeDeleteAddedTablesfromServiceLine(ServiceLine: Record "Service Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceLine: Service line being processed
  • IsHandled: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterDeleteAddedTablesfromServiceLine', '', false, false)]
local procedure DoSomethingOnAfterDeleteAddedTablesfromServiceLine(ServiceLine: Record "Service Line")
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterDeleteAddedTablesfromServiceItemLine', '', false, false)]
local procedure DoSomethingOnAfterDeleteAddedTablesfromServiceItemLine(ServiceItemLine: Record "Service Item Line"; DeleteCommentLines: Boolean)
begin
end;

Parameters:

  • ServiceItemLine: Service item line being processed
  • DeleteCommentLines: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterDeleteAddedTablesFromServiceHeader', '', false, false)]
local procedure DoSomethingOnAfterDeleteAddedTablesFromServiceHeader(ServiceHeader: Record "Service Header"; WithLines: Boolean; DeleteCommentLines: Boolean)
begin
end;

Parameters:

  • ServiceHeader: Service header being processed
  • WithLines: Indicates whether lines are included
  • DeleteCommentLines: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeDeleteAddedTablesFromServiceHeaderArchive', '', false, false)]
local procedure DoSomethingOnBeforeDeleteAddedTablesFromServiceHeaderArchive(ServiceHeaderArchive: Record "Service Header Archive"; WithLines: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeaderArchive: Service header archive being processed
  • WithLines: Indicates whether lines are included
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterDeleteAddedTablesFromServiceHeaderArchive', '', false, false)]
local procedure DoSomethingOnAfterDeleteAddedTablesFromServiceHeaderArchive(ServiceHeaderArchive: Record "Service Header Archive"; WithLines: Boolean)
begin
end;

Parameters:

  • ServiceHeaderArchive: Service header archive being processed
  • WithLines: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeDeleteAddedTablesfromServiceShipmentHeader', '', false, false)]
local procedure DoSomethingOnBeforeDeleteAddedTablesfromServiceShipmentHeader(ServiceShipmentHeader: Record "Service Shipment Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceShipmentHeader: Service shipment header being processed
  • IsHandled: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterDeleteAddedTablesfromServiceShipmentHeader', '', false, false)]
local procedure DoSomethingOnAfterDeleteAddedTablesfromServiceShipmentHeader(ServiceShipmentHeader: Record "Service Shipment Header")
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeDeleteAddedTablesfromServiceInvoiceHeader', '', false, false)]
local procedure DoSomethingOnBeforeDeleteAddedTablesfromServiceInvoiceHeader(ServiceInvoiceHeader: Record "Service Invoice Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceInvoiceHeader: Service invoice header being processed
  • IsHandled: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterDeleteAddedTablesfromServiceInvoiceHeader', '', false, false)]
local procedure DoSomethingOnAfterDeleteAddedTablesfromServiceInvoiceHeader(ServiceInvoiceHeader: Record "Service Invoice Header")
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeDeleteAddedTablesfromServiceCrMemoHeader', '', false, false)]
local procedure DoSomethingOnBeforeDeleteAddedTablesfromServiceCrMemoHeader(ServiceCrMemoHeader: Record "Service Cr.Memo Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceCrMemoHeader: Service credit memo header being processed
  • IsHandled: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterDeleteAddedTablesfromServiceCrMemoHeader', '', false, false)]
local procedure DoSomethingOnAfterDeleteAddedTablesfromServiceCrMemoHeader(ServiceCrMemoHeader: Record "Service Cr.Memo Header")
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesCustToServiceHeader', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesCustToServiceHeader(ServiceHeader: Record "Service Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: Service header being processed
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesFromServiceHeaderToServiceHeader', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesFromServiceHeaderToServiceHeader(FromServiceHeader: Record "Service Header"; ToServiceHeader: Record "Service Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • FromServiceHeader: Service header being processed
  • ToServiceHeader: Service header being processed
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesFromServiceItemLineToServiceItemLine', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesFromServiceItemLineToServiceItemLine(FromServiceItemLine: Record "Service Item Line"; ToServiceItemLine: Record "Service Item Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • FromServiceItemLine: Service item line being processed
  • ToServiceItemLine: Service item line being processed
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesFromServiceLineToServiceLine', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesFromServiceLineToServiceLine(FromServiceLine: Record "Service Line"; ToServiceLine: Record "Service Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • FromServiceLine: Service line being processed
  • ToServiceLine: Service line being processed
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesFromServiceHeadertoPostedServiceHeader', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesFromServiceHeadertoPostedServiceHeader(FromServiceHeader: Record "Service Header"; ToDocumentType: Enum "KVSKBAPostedServiceDocTextType"; ToDocumentNo: Code[20]; var IsHandled: Boolean)
begin
end;

Parameters:

  • FromServiceHeader: Service header being processed
  • ToDocumentType: Type of the posted service document
  • ToDocumentNo: Document number of the posted service document
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesFromServiceItemLineToServiceShipmentItemLine', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesFromServiceItemLineToServiceShipmentItemLine(FromServiceItemLine: Record "Service Item Line"; ToServiceShipmentItemLine: Record "Service Shipment Item Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • FromServiceItemLine: Service item line being processed
  • ToServiceShipmentItemLine: Service shipment item line being processed
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesFromServiceLinetoPostedServiceLine', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesFromServiceLinetoPostedServiceLine(FromServiceLine: Record "Service Line"; DocumentType: Enum "KVSKBAPostedServiceDocTextType"; DocumentNo: Code[20]; DocumentLineNo: Integer; var IsHandled: Boolean)
begin
end;

Parameters:

  • FromServiceLine: Service line being processed
  • DocumentType: Type of the posted service document
  • DocumentNo: Document number of the posted service document
  • DocumentLineNo: Line number of the posted service document
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesFromPostedServiceHeaderToServiceHeader', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesFromPostedServiceHeaderToServiceHeader(ToServiceHeader: Record "Service Header"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20]; var IsHandled: Boolean)
begin
end;

Parameters:

  • ToServiceHeader: Service header being processed
  • FromDocumentType: Type of the posted service document
  • FromDocumentNo: Document number of the posted service document
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesFromPostedServiceLineToServiceItemLine', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesFromPostedServiceLineToServiceItemLine(ToServiceItemLine: Record "Service Item Line"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20]; FromDocumentLineNo: Integer; var IsHandled: Boolean)
begin
end;

Parameters:

  • ToServiceItemLine: Service item line being processed
  • FromDocumentType: Type of the posted service document
  • FromDocumentNo: Document number of the posted service document
  • FromDocumentLineNo: Line number of the posted service document
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesFromPostedServiceLineToServiceLine', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesFromPostedServiceLineToServiceLine(ToServiceLine: Record "Service Line"; FromDocumentType: Enum "KVSKBAPostedServiceDocTextType"; FromDocumentNo: Code[20]; FromDocumentLineNo: Integer; var IsHandled: Boolean)
begin
end;

Parameters:

  • ToServiceLine: Service line being processed
  • FromDocumentType: Type of the posted service document
  • FromDocumentNo: Document number of the posted service document
  • FromDocumentLineNo: Line number of the posted service document
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesLineNoToServiceLine', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesLineNoToServiceLine(ServiceLine: Record "Service Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceLine: Service line being processed
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCopyAddedTablesLineNoToServiceItemLine', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesLineNoToServiceItemLine(ServiceItemLine: Record "Service Item Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceItemLine: Service item line being processed
  • IsHandled: 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.

OnAfterTransferServiceLineToItemJnLine(Record Service Line, Record Item Journal Line) :#

Obsolete

This Element will be removed or changed with a future Version of the App.

Summary: Event raised after transferring a service line to an item journal line.

[Obsolete('The table KVSKBAPostingCode will no longer be used', '25.3')]
[IntegrationEvent(false, false)]
local procedure OnAfterTransferServiceLineToItemJnLine(ServiceLine: Record "Service Line"; var ItemJournalLine: Record "Item Journal Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterTransferServiceLineToItemJnLine', '', false, false)]
local procedure DoSomethingOnAfterTransferServiceLineToItemJnLine(ServiceLine: Record "Service Line"; var ItemJournalLine: Record "Item Journal Line")
begin
end;

Parameters:

  • ServiceLine: Service line being transferred
  • ItemJournalLine: Item journal line created from the service line

Remarks: Use this event to implement custom logic after transferring a service line to an item journal line. This event is marked as obsolete because the table KVSKBAPostingCode will no longer be used in future versions.

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeShowServiceDocumentTextLines', '', false, false)]
local procedure DoSomethingOnBeforeShowServiceDocumentTextLines(ServiceDocumentType: Enum "Service Document Type"; DocumentNo: Code[20]; ServiceDocumentTable: Enum "KVSKBAServiceDocumentTable"; DocumentLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; var IsHandled: Boolean)
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeServiceLineValidateAlternative', '', false, false)]
local procedure DoSomethingOnBeforeServiceLineValidateAlternative(var ServiceLine: Record "Service Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceLine: Service line being validated
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeServiceLineValidateAllowInvDisc', '', false, false)]
local procedure DoSomethingOnBeforeServiceLineValidateAllowInvDisc(var ServiceLine: Record "Service Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceLine: Service line being validated
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeUpdateBundleElementPrices', '', false, false)]
local procedure DoSomethingOnBeforeUpdateBundleElementPrices(ServiceLine: Record "Service Line"; xServiceLine: Record "Service Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceLine: Service line being processed
  • xServiceLine: Service line before changes
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeInsertBundleLines', '', false, false)]
local procedure DoSomethingOnBeforeInsertBundleLines(ServiceLine: Record "Service Line"; BeforeCurrLine: Boolean; CloseOldBundle: Boolean; OpenNewBundle: Boolean; DescriptionText: Text[100]; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceLine: Service line being processed
  • BeforeCurrLine: Indicates whether the bundle lines are inserted before the current line
  • CloseOldBundle: Indicates whether the old bundle should be closed
  • OpenNewBundle: Indicates whether a new bundle should be opened
  • DescriptionText: Description text for the bundle lines
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeCheckTotalStructureInServiceLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckTotalStructureInServiceLine(ServiceHeader: Record "Service Header"; CheckTotaling: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: Service header being checked
  • CheckTotaling: Indicates whether totaling check is to be performed
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCheckTotalStructureInServiceLine', '', false, false)]
local procedure DoSomethingOnAfterCheckTotalStructureInServiceLine(ServiceHeader: Record "Service Header"; CheckTotaling: Boolean)
begin
end;

Parameters:

  • ServiceHeader: Service header being checked
  • CheckTotaling: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeInsertPurchaseDropShipmentOrderLine', '', false, false)]
local procedure DoSomethingOnBeforeInsertPurchaseDropShipmentOrderLine(var PurchaseHeader: Record "Purchase Header"; OrderNo: Code[20]; LineNo: Integer; var IsHandled: Boolean)
begin
end;

Parameters:

  • PurchaseHeader: Purchase header where the drop shipment line will be inserted
  • OrderNo: Service order number from which the drop shipment line is created
  • LineNo: Service order line number from which the drop shipment line is created
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeInsertPurchaseSpecialOrderLine', '', false, false)]
local procedure DoSomethingOnBeforeInsertPurchaseSpecialOrderLine(var PurchaseHeader: Record "Purchase Header"; OrderNo: Code[20]; LineNo: Integer; var IsHandled: Boolean)
begin
end;

Parameters:

  • PurchaseHeader: Purchase header where the special order line will be inserted
  • OrderNo: Service order number from which the special order line is created
  • LineNo: Service order line number from which the special order line is created
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnBeforeShowPurchaseOrders', '', false, false)]
local procedure DoSomethingOnBeforeShowPurchaseOrders(DocumentNo: Code[20]; LineNo: Integer; ShowDropShipments: Boolean; ShowSpecialOrders: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • DocumentNo: Document number of the service order line
  • LineNo: Line number of the service order line
  • ShowDropShipments: Indicates whether to show drop shipment orders
  • ShowSpecialOrders: Indicates whether to show special orders
  • IsHandled: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceLib", 'OnAfterCheckOtherNotBillable', '', false, false)]
local procedure DoSomethingOnAfterCheckOtherNotBillable(ServiceHeader: Record "Service Header"; ServiceLine: Record "Service Line"; var NotBillable: Code[20]; var PriceCalcSpecialOrigin: Enum "KVSKBAPriceCalcSpecialOrigin"; var DiscountCalcSpecialOrigin: Enum "KVSKBAPriceCalcSpecialOrigin")
begin
end;

Parameters:

  • ServiceHeader: Service header for order type checking
  • ServiceLine: Service line for not billable code checking
  • NotBillable: Variable to store found not billable code
  • PriceCalcSpecialOrigin: Variable to store price calculation special origin
  • DiscountCalcSpecialOrigin: Variable to store discount calculation special origin

Remarks: Use this event to implement additional checks for not billable codes.