KVSMTCServiceOperationLib#
Procedures#
InsertServiceLines(Record Service Item Line, Code[10]) :#
Summary: Insert standard service code lines as service lines
procedure InsertServiceLines(ServiceItemLine: Record "Service Item Line"; ServiceOperationGroupCode: Code[10]):
Parameters:
ServiceItemLine
: Record Service Item LineServiceOperationGroupCode
: Service Operation Group Code to filter. If empty no filter is set
Returns:
ExecuteServiceLinesByServiceItemLines(Record Service Item Line, Integer) :#
Summary: Executes all service item lines in filter.
procedure ExecuteServiceLinesByServiceItemLines(var ServiceItemLine: Record "Service Item Line"; ForceServiceLineNo: Integer):
Parameters:
ServiceItemLine
: Filtered Service Item Line records. The filter to the service order of the current line will be added automatically.ForceServiceLineNo
: If not empty, the related service line with this line no. is used for execution. Otherwise the next open line with KVSMTCCreateDocumentAutom=True is executed
Returns:
Events#
OnBeforeStandardServiceLineAlreadyExists(Record Service Item Line, Record Standard Service Line, Boolean, Boolean, Boolean) :#
Summary: With this event the display of the confirm page can be controlled, if the standard service code already exists
[IntegrationEvent(false, false)]
local procedure OnBeforeStandardServiceLineAlreadyExists(ServiceItemLine: Record "Service Item Line"; StandardServiceLine: Record "Standard Service Line"; var ShowConfirm: Boolean; var Confirmed: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeStandardServiceLineAlreadyExists', '', false, false)]
local procedure DoSomethingOnBeforeStandardServiceLineAlreadyExists(ServiceItemLine: Record "Service Item Line"; StandardServiceLine: Record "Standard Service Line"; var ShowConfirm: Boolean; var Confirmed: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceItemLine
: The calling service item lineStandardServiceLine
: The calling standard service lineShowConfirm
: If the confirm page should be displayedConfirmed
: If th the confirm is set by the system to avoid the displayIsHandled
: Ensures that the procedure is skipped if IsHandled is true
OnBeforeFindStandardServiceItemGrCode(Record Service Item Line, Code[10], Record Standard Service Item Gr. Code) :#
Summary: With this event, on inserting a new operation the filter of the "Standard Service Item Gr. Code" can be manipulated
[IntegrationEvent(false, false)]
local procedure OnBeforeFindStandardServiceItemGrCode(ServiceItemLine: Record "Service Item Line"; ServiceOperationGroupCode: Code[10]; var StandardServiceItemGrCode: Record "Standard Service Item Gr. Code"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeFindStandardServiceItemGrCode', '', false, false)]
local procedure DoSomethingOnBeforeFindStandardServiceItemGrCode(ServiceItemLine: Record "Service Item Line"; ServiceOperationGroupCode: Code[10]; var StandardServiceItemGrCode: Record "Standard Service Item Gr. Code")
begin
end;
Parameters:
ServiceItemLine
: The calling service item lineServiceOperationGroupCode
: The calling service operation group codeStandardServiceItemGrCode
: The this record the filters can be changed
OnAfterCreateServiceOperationByServiceItemLine(Record Service Item Line, Record Standard Service Code, Record KVSMTCServiceOperation) :#
Summary: With this event, after inserting a new operation (standard) the record can be modified
[IntegrationEvent(false, false)]
local procedure OnAfterCreateServiceOperationByServiceItemLine(ServiceItemLine: Record "Service Item Line"; StandardServiceCode: Record "Standard Service Code"; var KVSMTCServiceOperation: Record "KVSMTCServiceOperation"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnAfterCreateServiceOperationByServiceItemLine', '', false, false)]
local procedure DoSomethingOnAfterCreateServiceOperationByServiceItemLine(ServiceItemLine: Record "Service Item Line"; StandardServiceCode: Record "Standard Service Code"; var KVSMTCServiceOperation: Record "KVSMTCServiceOperation")
begin
end;
Parameters:
ServiceItemLine
: The calling service item lineStandardServiceCode
: The calling standard service codeKVSMTCServiceOperation
: The created service operation which can be modified
OnAfterCreateServiceOperationByReturnOrder(Record Service Item Line, Record Standard Service Code, Record KVSMTCServiceOperation) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: With this event, after inserting a new operation (caused by an return order) the record can be modified
[Obsolete('Procedure not used anymore', '25.2')]
[IntegrationEvent(false, false)]
local procedure OnAfterCreateServiceOperationByReturnOrder(ServiceItemLine: Record "Service Item Line"; StandardServiceCode: Record "Standard Service Code"; var KVSMTCServiceOperation: Record "KVSMTCServiceOperation"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnAfterCreateServiceOperationByReturnOrder', '', false, false)]
local procedure DoSomethingOnAfterCreateServiceOperationByReturnOrder(ServiceItemLine: Record "Service Item Line"; StandardServiceCode: Record "Standard Service Code"; var KVSMTCServiceOperation: Record "KVSMTCServiceOperation")
begin
end;
Parameters:
ServiceItemLine
: The calling service item lineStandardServiceCode
: The calling standard service codeKVSMTCServiceOperation
: The created service operation which can be modified
OnAfterSetServiceOperationInServiceLine(Record Service Item Line, Record KVSMTCServiceOperation, Record Standard Service Line, Record Service Line) :#
Summary: With this event, after inserting a new service line, caused by an standard service code, the new record can be modified
[IntegrationEvent(false, false)]
local procedure OnAfterSetServiceOperationInServiceLine(ServiceItemLine: Record "Service Item Line"; KVSMTCServiceOperation: Record "KVSMTCServiceOperation"; StandardServiceLine: Record "Standard Service Line"; var ServiceLine: Record "Service Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnAfterSetServiceOperationInServiceLine', '', false, false)]
local procedure DoSomethingOnAfterSetServiceOperationInServiceLine(ServiceItemLine: Record "Service Item Line"; KVSMTCServiceOperation: Record "KVSMTCServiceOperation"; StandardServiceLine: Record "Standard Service Line"; var ServiceLine: Record "Service Line")
begin
end;
Parameters:
ServiceItemLine
: The calling service item lineKVSMTCServiceOperation
: The calling service operationStandardServiceLine
: The calling standard service lineServiceLine
: The created service line which can be modified
OnAfterSetServiceFieldsInServiceLine(Record Service Item Line, Record Standard Service Line, Record Service Line) :#
Summary: With this event, after inserting a new service line, inserted by an standard service code, the new record can be modified
[IntegrationEvent(false, false)]
local procedure OnAfterSetServiceFieldsInServiceLine(ServiceItemLine: Record "Service Item Line"; StandardServiceLine: Record "Standard Service Line"; var ServiceLine: Record "Service Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnAfterSetServiceFieldsInServiceLine', '', false, false)]
local procedure DoSomethingOnAfterSetServiceFieldsInServiceLine(ServiceItemLine: Record "Service Item Line"; StandardServiceLine: Record "Standard Service Line"; var ServiceLine: Record "Service Line")
begin
end;
Parameters:
ServiceItemLine
: The calling service item lineStandardServiceLine
: The calling standard service lineServiceLine
: The created service line which can be modified
OnBeforeDeleteServiceOperationGroup(Record KVSMTCServiceItemLineOpGroup, Boolean) :#
Summary: With this event it is possible to avoid deleting a service operation group
[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteServiceOperationGroup(ServiceItemLineOpGroup: Record "KVSMTCServiceItemLineOpGroup"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeDeleteServiceOperationGroup', '', false, false)]
local procedure DoSomethingOnBeforeDeleteServiceOperationGroup(ServiceItemLineOpGroup: Record "KVSMTCServiceItemLineOpGroup"; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceItemLineOpGroup
: The service item line, which the operation group is linked toIsHandled
: Ensures that the procedure is skipped if IsHandled is true
OnBeforeDeleteServiceOperation(Record KVSMTCServiceOperation, Boolean) :#
Summary: With this event it is possible to avoid deleting a service operation
[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteServiceOperation(KVSMTCServiceOperation: Record "KVSMTCServiceOperation"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeDeleteServiceOperation', '', false, false)]
local procedure DoSomethingOnBeforeDeleteServiceOperation(KVSMTCServiceOperation: Record "KVSMTCServiceOperation"; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceItemLineOpGroup
: The service item line, which the operation is linked toIsHandled
: Ensures that the procedure is skipped if IsHandled is true
OnBeforeExecuteServiceLinesByServiceItemLines(Record Service Item Line, Integer, Record Service Line, Boolean) :#
Summary: With this event the execution of service item lines can be replaced
[IntegrationEvent(false, false)]
local procedure OnBeforeExecuteServiceLinesByServiceItemLines(var ServiceItemLine: Record "Service Item Line"; ForceServiceLineNo: Integer; var TempServiceLine: Record "Service Line" temporary; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeExecuteServiceLinesByServiceItemLines', '', false, false)]
local procedure DoSomethingOnBeforeExecuteServiceLinesByServiceItemLines(var ServiceItemLine: Record "Service Item Line"; ForceServiceLineNo: Integer; var TempServiceLine: Record "Service Line" temporary; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceItemLine
: The calling service item lineForceServiceLineNo
: If not 0, then the line no. of a service line is givenTempServiceLine
: The created service lines have to be collected in this temporary recordIsHandled
: Ensures that the default creation functionality is skipped if IsHandled is true
OnBeforeExecuteServiceLine(Record Service Item Line, Integer, Record Service Line, Boolean) :#
Summary: With this event the execution of a service line can be replaced
[IntegrationEvent(false, false)]
local procedure OnBeforeExecuteServiceLine(var ServiceItemLine: Record "Service Item Line"; ForceServiceLineNo: Integer; var TempServiceLine: Record "Service Line" temporary; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeExecuteServiceLine', '', false, false)]
local procedure DoSomethingOnBeforeExecuteServiceLine(var ServiceItemLine: Record "Service Item Line"; ForceServiceLineNo: Integer; var TempServiceLine: Record "Service Line" temporary; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceItemLine
: The calling service item lineForceServiceLineNo
: If not 0, then the line no. of a service line is givenTempServiceLine
: The created service lines have to be collected in this temporary recordIsHandled
: Ensures that the procedure is skipped if IsHandled is true
OnBeforeSetServiceLineToFinished(Record Service Line, Boolean) :#
Summary: With this event, the functionality of setting a service line to finished can be replaced
[IntegrationEvent(false, false)]
local procedure OnBeforeSetServiceLineToFinished(var ServiceLine: Record "Service Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeSetServiceLineToFinished', '', false, false)]
local procedure DoSomethingOnBeforeSetServiceLineToFinished(var ServiceLine: Record "Service Line"; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceLine
: The calling service lineIsHandled
: Ensures that the procedure is skipped if IsHandled is true
OnAfterFinishServiceLine(Record Service Line) :#
Summary: With this event, functionality after setting a service line to finished can be added
[IntegrationEvent(false, false)]
local procedure OnAfterFinishServiceLine(var ServiceLine: Record "Service Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnAfterFinishServiceLine', '', false, false)]
local procedure DoSomethingOnAfterFinishServiceLine(var ServiceLine: Record "Service Line")
begin
end;
Parameters:
ServiceLine
: The calling service line
OnBeforeSumUpSalesPrice(Record Service Item Line, Record Service Line, Boolean, Boolean) :#
Summary: This event allows to replace the functionality to sum up the sales price
[IntegrationEvent(false, false)]
local procedure OnBeforeSumUpSalesPrice(ServiceItemLine: Record "Service Item Line"; var ServiceLineSales: Record "Service Line"; DoModify: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeSumUpSalesPrice', '', false, false)]
local procedure DoSomethingOnBeforeSumUpSalesPrice(ServiceItemLine: Record "Service Item Line"; var ServiceLineSales: Record "Service Line"; DoModify: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceItemLine
: The calling service item lineServiceLineSales
: The calling service lineDoModify
: If the service line should be modifiedIsHandled
: Ensures that the procedure is skipped if IsHandled is true
OnAfterSumUpSalesPrice(Record Service Item Line, Record Service Line, Boolean) :#
Summary: This event allows to add functionality to sum up the sales price
[IntegrationEvent(false, false)]
local procedure OnAfterSumUpSalesPrice(ServiceItemLine: Record "Service Item Line"; var ServiceLineSales: Record "Service Line"; DoModify: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnAfterSumUpSalesPrice', '', false, false)]
local procedure DoSomethingOnAfterSumUpSalesPrice(ServiceItemLine: Record "Service Item Line"; var ServiceLineSales: Record "Service Line"; DoModify: Boolean)
begin
end;
Parameters:
ServiceItemLine
: The calling service item lineServiceLineSales
: The calling service lineDoModify
: If the service line should be modified
OnBeforeSumUpPurchasePrice(Record Service Item Line, Record Service Line, Boolean, Boolean) :#
Summary: This event allows to replace the functionality to sum up the purchase price
[IntegrationEvent(false, false)]
local procedure OnBeforeSumUpPurchasePrice(ServiceItemLine: Record "Service Item Line"; var ServiceLinePurchase: Record "Service Line"; DoModify: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeSumUpPurchasePrice', '', false, false)]
local procedure DoSomethingOnBeforeSumUpPurchasePrice(ServiceItemLine: Record "Service Item Line"; var ServiceLinePurchase: Record "Service Line"; DoModify: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceItemLine
: The calling service item lineServiceLinePurchase
: The calling service lineDoModify
: If the service line should be modifiedIsHandled
: Ensures that the procedure is skipped if IsHandled is true
OnBeforeSetMinAmountCostEstimateInServiceItemLine(Record Service Header, Record Service Item Line, Boolean) :#
Summary: This event allows to extend or replace the functionality to set the min. amount ce
[IntegrationEvent(false, false)]
local procedure OnBeforeSetMinAmountCostEstimateInServiceItemLine(ServiceHeader: Record "Service Header"; var ServiceItemLine: Record "Service Item Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeSetMinAmountCostEstimateInServiceItemLine', '', false, false)]
local procedure DoSomethingOnBeforeSetMinAmountCostEstimateInServiceItemLine(ServiceHeader: Record "Service Header"; var ServiceItemLine: Record "Service Item Line"; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceHeader
: The calling service headerServiceItemLine
: The calling service item line, which can be updated with the min. amount ceIsHandled
: Ensures that the procedure is skipped if IsHandled is true
OnBeforeSetResolutionCodeInServiceItemLine(Record Service Header, Record Service Item Line, Boolean) :#
Summary: This event allows to extend or replace the functionality to set the resolution code
[IntegrationEvent(false, false)]
local procedure OnBeforeSetResolutionCodeInServiceItemLine(ServiceHeader: Record "Service Header"; var ServiceItemLine: Record "Service Item Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeSetResolutionCodeInServiceItemLine', '', false, false)]
local procedure DoSomethingOnBeforeSetResolutionCodeInServiceItemLine(ServiceHeader: Record "Service Header"; var ServiceItemLine: Record "Service Item Line"; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceHeader
: The calling service headerServiceItemLine
: The calling service item line, which can be updated with the min. amount ceIsHandled
: Ensures that the procedure is skipped if IsHandled is true
OnAfterServiceLineOnNewRecord(Record Service Line, Record Service Line) :#
Summary: This event allows to modify new service lines
[IntegrationEvent(false, false)]
local procedure OnAfterServiceLineOnNewRecord(var ServiceLine: Record "Service Line"; var LastServiceLine: Record "Service Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnAfterServiceLineOnNewRecord', '', false, false)]
local procedure DoSomethingOnAfterServiceLineOnNewRecord(var ServiceLine: Record "Service Line"; var LastServiceLine: Record "Service Line")
begin
end;
Parameters:
ServiceLine
: The calling service line which can be modifiedLastServiceLine
: The last service line
OnAfterTransferServiceLine2ServiceLineFields(Record Service Line, Record Service Line) :#
Summary: This event allows to add further fields in transfer between to service documents
[IntegrationEvent(false, false)]
local procedure OnAfterTransferServiceLine2ServiceLineFields(FromServiceLine: Record "Service Line"; var ToServiceLine: Record "Service Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnAfterTransferServiceLine2ServiceLineFields', '', false, false)]
local procedure DoSomethingOnAfterTransferServiceLine2ServiceLineFields(FromServiceLine: Record "Service Line"; var ToServiceLine: Record "Service Line")
begin
end;
Parameters:
FromServiceLine
: The source lineToServiceLine
: The destination line
OnAfterServiceLineUpdateLocationCode(Record Service Header, Record Service Line) :#
Summary: This event allows the modifiction of the location code and bin code. There should be no modify.
[IntegrationEvent(false, false)]
local procedure OnAfterServiceLineUpdateLocationCode(ServiceHeader: Record "Service Header"; var ServiceLine: Record "Service Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnAfterServiceLineUpdateLocationCode', '', false, false)]
local procedure DoSomethingOnAfterServiceLineUpdateLocationCode(ServiceHeader: Record "Service Header"; var ServiceLine: Record "Service Line")
begin
end;
Parameters:
ServiceHeader
: The calling service headerServiceLine
: The calling service line which can be modified
OnAfterServiceLineUpdatePostingCode(Record Service Line) :#
Summary: This event allows the modifiction of the posting code. There should be no modify.
[IntegrationEvent(false, false)]
local procedure OnAfterServiceLineUpdatePostingCode(var ServiceLine: Record "Service Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnAfterServiceLineUpdatePostingCode', '', false, false)]
local procedure DoSomethingOnAfterServiceLineUpdatePostingCode(var ServiceLine: Record "Service Line")
begin
end;
Parameters:
ServiceLine
: The calling service line which can be modified
OnAfterServiceLineUpdateItemTrackingNo(Record Service Item Line, Record Service Line) :#
Summary: This event allows the modifiction of the item tracking no. There should be no modify.
[IntegrationEvent(false, false)]
local procedure OnAfterServiceLineUpdateItemTrackingNo(ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnAfterServiceLineUpdateItemTrackingNo', '', false, false)]
local procedure DoSomethingOnAfterServiceLineUpdateItemTrackingNo(ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line")
begin
end;
Parameters:
ServiceItemLine
: The calling service item lineServiceLine
: The calling service line which can be modified
OnBeforeServiceItemLinePostConsumption(Record Service Header, Record Service Item Line, Boolean) :#
Summary: This event allows to replace the functionality of posting the consumption for a sales item line
[IntegrationEvent(false, false)]
local procedure OnBeforeServiceItemLinePostConsumption(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeServiceItemLinePostConsumption', '', false, false)]
local procedure DoSomethingOnBeforeServiceItemLinePostConsumption(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; IsHandled: Boolean)
begin
end;
Parameters:
ServiceHeader
: The calling service headerServiceItemLine
: The calling service item lineIsHandled
: Ensures that the procedure is skipped if IsHandled is true
OnBeforeServiceItemLinePostSales(Record Service Header, Record Service Item Line, Boolean) :#
Summary: This event allows to replace the functionality of posting the sales for a sales item line
[IntegrationEvent(false, false)]
local procedure OnBeforeServiceItemLinePostSales(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeServiceItemLinePostSales', '', false, false)]
local procedure DoSomethingOnBeforeServiceItemLinePostSales(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; IsHandled: Boolean)
begin
end;
Parameters:
ServiceHeader
: The calling service headerServiceItemLine
: The calling service item lineIsHandled
: Ensures that the procedure is skipped if IsHandled is true
OnBeforeServiceHeaderPostConsumption(Record Service Header, Boolean) :#
Summary: This event allows to replace the functionality of posting the consumption for a sales item line
[IntegrationEvent(false, false)]
local procedure OnBeforeServiceHeaderPostConsumption(ServiceHeader: Record "Service Header"; IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeServiceHeaderPostConsumption', '', false, false)]
local procedure DoSomethingOnBeforeServiceHeaderPostConsumption(ServiceHeader: Record "Service Header"; IsHandled: Boolean)
begin
end;
Parameters:
ServiceHeader
: The calling service headerServiceItemLine
: The calling service item lineIsHandled
: Ensures that the procedure is skipped if IsHandled is true
OnBeforeServiceHeaderPostSales(Record Service Header, Boolean) :#
Summary: This event allows to replace the functionality of posting the sales for a sales item line
[IntegrationEvent(false, false)]
local procedure OnBeforeServiceHeaderPostSales(ServiceHeader: Record "Service Header"; IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOperationLib", 'OnBeforeServiceHeaderPostSales', '', false, false)]
local procedure DoSomethingOnBeforeServiceHeaderPostSales(ServiceHeader: Record "Service Header"; IsHandled: Boolean)
begin
end;
Parameters:
ServiceHeader
: The calling service headerServiceItemLine
: The calling service item lineIsHandled
: Ensures that the procedure is skipped if IsHandled is true