Share via


Table "Service Line"

ID 5902
Namespace: Microsoft.Service.Document

Properties

Name Value
Caption Service Line
DrillDownPageID Page Microsoft.Service.Document."Service Line List"
LookupPageID Page Microsoft.Service.Document."Service Line List"
DataClassification CustomerContent

Fields

Name Type Description
"Document Type" Enum Microsoft.Service.Document."Service Document Type"
"Customer No." Code[20]
"Document No." Code[20]
"Line No." Integer
Type Enum Microsoft.Service.Document."Service Line Type"
"No." Code[20]
"Location Code" Code[10]
"Posting Group" Code[20]
Description Text[100]
"Description 2" Text[50]
"Unit of Measure" Text[50]
Quantity Decimal
"Outstanding Quantity" Decimal
"Qty. to Invoice" Decimal
"Qty. to Ship" Decimal
"Unit Price" Decimal
"Unit Cost (LCY)" Decimal
"VAT %" Decimal
"Line Discount %" Decimal
"Line Discount Amount" Decimal
Amount Decimal
"Amount Including VAT" Decimal
"Allow Invoice Disc." Boolean
"Gross Weight" Decimal
"Net Weight" Decimal
"Units per Parcel" Decimal
"Unit Volume" Decimal
"Appl.-to Item Entry" Integer
"Shortcut Dimension 1 Code" Code[20]
"Shortcut Dimension 2 Code" Code[20]
"Customer Price Group" Code[10]
"Job No." Code[20]
"Job Task No." Code[20]
"Job Line Type" Enum Microsoft.Projects.Project.Job."Job Line Type"
"Work Type Code" Code[10]
"Outstanding Amount" Decimal
"Qty. Shipped Not Invoiced" Decimal
"Shipped Not Invoiced" Decimal
"Quantity Shipped" Decimal
"Quantity Invoiced" Decimal
"Shipment No." Code[20]
"Shipment Line No." Integer
"Order No." Code[20]
"Bill-to Customer No." Code[20]
"Inv. Discount Amount" Decimal
"Gen. Bus. Posting Group" Code[20]
"Gen. Prod. Posting Group" Code[20]
"VAT Calculation Type" Enum Microsoft.Foundation.Enums."Tax Calculation Type"
"Transaction Type" Code[10]
"Transport Method" Code[10]
"Attached to Line No." Integer
"Exit Point" Code[10]
"Area" Code[10]
"Transaction Specification" Code[10]
"Tax Area Code" Code[20]
"Tax Liable" Boolean
"Tax Group Code" Code[20]
"VAT Clause Code" Code[20]
"VAT Bus. Posting Group" Code[20]
"VAT Prod. Posting Group" Code[20]
"Currency Code" Code[10]
"Outstanding Amount (LCY)" Decimal
"Shipped Not Invoiced (LCY)" Decimal
"Reserved Quantity" Decimal
Reserve Enum Microsoft.Inventory.Tracking."Reserve Method"
"VAT Base Amount" Decimal
"Unit Cost" Decimal
"System-Created Entry" Boolean
"Line Amount" Decimal
"VAT Difference" Decimal
"Inv. Disc. Amount to Invoice" Decimal
"VAT Identifier" Code[20]
"Pmt. Discount Amount" Decimal
"Dimension Set ID" Integer
"Time Sheet No." Code[20]
"Time Sheet Line No." Integer
"Time Sheet Date" Date
"Job Planning Line No." Integer
"Job Remaining Qty." Decimal
"Job Remaining Qty. (Base)" Decimal
"Job Remaining Total Cost" Decimal
"Job Remaining Total Cost (LCY)" Decimal
"Job Remaining Line Amount" Decimal
"Variant Code" Code[10]
"Bin Code" Code[20]
"Qty. per Unit of Measure" Decimal
Planned Boolean
"Unit of Measure Code" Code[10]
"Qty. Rounding Precision" Decimal
"Qty. Rounding Precision (Base)" Decimal
"Quantity (Base)" Decimal
"Outstanding Qty. (Base)" Decimal
"Qty. to Invoice (Base)" Decimal
"Qty. to Ship (Base)" Decimal
"Qty. Shipped Not Invd. (Base)" Decimal
"Qty. Shipped (Base)" Decimal
"Qty. Invoiced (Base)" Decimal
"Reserved Qty. (Base)" Decimal
"Responsibility Center" Code[10]
"Substitution Available" Boolean
"Item Category Code" Code[20]
Nonstock Boolean
"Whse. Outstanding Qty. (Base)" Decimal
"Item Reference No." Code[50]
"Item Reference Unit of Measure" Code[10]
"Item Reference Type" Enum Microsoft.Inventory.Item.Catalog."Item Reference Type"
"Item Reference Type No." Code[30]
"Completely Shipped" Boolean
"Requested Delivery Date" Date
"Promised Delivery Date" Date
"Shipping Time" DateFormula
"Planned Delivery Date" Date
"Shipping Agent Code" Code[10]
"Shipping Agent Service Code" Code[10]
"Appl.-from Item Entry" Integer
"Service Item No." Code[20]
"Appl.-to Service Entry" Integer
"Service Item Line No." Integer
"Service Item Serial No." Code[50]
"Service Item Line Description" Text[100]
"Serv. Price Adjmt. Gr. Code" Code[10]
"Posting Date" Date
"Order Date" Date
"Needed by Date" Date
"Ship-to Code" Code[10]
"Qty. to Consume" Decimal
"Quantity Consumed" Decimal
"Qty. to Consume (Base)" Decimal
"Qty. Consumed (Base)" Decimal
"Service Price Group Code" Code[10]
"Fault Area Code" Code[10]
"Symptom Code" Code[10]
"Fault Code" Code[10]
"Resolution Code" Code[10]
"Exclude Warranty" Boolean
Warranty Boolean
"Contract No." Code[20]
"Contract Disc. %" Decimal
"Warranty Disc. %" Decimal
"Component Line No." Integer
"Spare Part Action" Option
"Fault Reason Code" Code[10]
"Replaced Item No." Code[20]
"Exclude Contract Discount" Boolean
"Replaced Item Type" Enum Microsoft.Service.Item."Replaced Service Item Component Type"
"Price Adjmt. Status" Option
"Line Discount Type" Enum Microsoft.Service.Pricing."Service Line Discount Type"
"Copy Components From" Option
"Return Reason Code" Code[10]
"Price Calculation Method" Enum Microsoft.Pricing.Calculation."Price Calculation Method"
"Allow Line Disc." Boolean
"Customer Disc. Group" Code[20]
"Qty. Picked" Decimal
"Qty. Picked (Base)" Decimal
"Completely Picked" Boolean
"Pick Qty. (Base)" Decimal
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

CheckItemAvailable

procedure CheckItemAvailable(CalledByFieldNo: Integer)

Parameters

Name Type Description
CalledByFieldNo Integer

CreateDim

procedure CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])

Parameters

Name Type Description
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

ValidateShortcutDimCode

procedure ValidateShortcutDimCode(FieldNumber: Integer, var ShortcutDimCode: Code[20])

Parameters

Name Type Description
FieldNumber Integer
ShortcutDimCode Code[20]

LookupShortcutDimCode

procedure LookupShortcutDimCode(FieldNumber: Integer, var ShortcutDimCode: Code[20])

Parameters

Name Type Description
FieldNumber Integer
ShortcutDimCode Code[20]

ShowShortcutDimCode

procedure ShowShortcutDimCode(var ShortcutDimCode: array[8] of Code[20])

Parameters

Name Type Description
ShortcutDimCode array[8] of Code[20]

CalculateDiscount

procedure CalculateDiscount()

GetPriceCalculationHandler

procedure GetPriceCalculationHandler(PriceType: Enum "Price Type", ServiceHeader: Record "Service Header", var PriceCalculation: Interface "Price Calculation")

Parameters

Name Type Description
PriceType Enum Microsoft.Pricing.PriceList."Price Type"
ServiceHeader Table Microsoft.Service.Document."Service Header"
PriceCalculation Interface Microsoft.Pricing.Calculation."Price Calculation"

GetLineWithPrice

procedure GetLineWithPrice(var LineWithPrice: Interface "Line With Price")

Parameters

Name Type Description
LineWithPrice Interface Microsoft.Pricing.PriceList."Line With Price"

ApplyDiscount

procedure ApplyDiscount(ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

PickDiscount

procedure PickDiscount()

PickPrice

procedure PickPrice()

CountDiscount

procedure CountDiscount(ShowAll: Boolean): Integer

Parameters

Name Type Description
ShowAll Boolean

Returns

Type Description
Integer

CountPrice

procedure CountPrice(ShowAll: Boolean): Integer

Parameters

Name Type Description
ShowAll Boolean

Returns

Type Description
Integer

DiscountExists

procedure DiscountExists(ShowAll: Boolean): Boolean

Parameters

Name Type Description
ShowAll Boolean

Returns

Type Description
Boolean

PriceExists

procedure PriceExists(ShowAll: Boolean): Boolean

Parameters

Name Type Description
ShowAll Boolean

Returns

Type Description
Boolean

UpdateAmounts

procedure UpdateAmounts()

GetItem

procedure GetItem(var Item: Record Item)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item

GetDate

procedure GetDate(): Date

Returns

Type Description
Date

GetServHeader

procedure GetServHeader(): Record "Service Header"

Returns

Type Description
Table Microsoft.Service.Document."Service Header"

GetServHeader

procedure GetServHeader(var OutServiceHeader: Record "Service Header", var OutCurrency: Record Currency)

Parameters

Name Type Description
OutServiceHeader Table Microsoft.Service.Document."Service Header"
OutCurrency Table Microsoft.Finance.Currency.Currency

IsPriceCalcCalledByField

procedure IsPriceCalcCalledByField(CurrPriceFieldNo: Integer): Boolean

Parameters

Name Type Description
CurrPriceFieldNo Integer

Returns

Type Description
Boolean

PlanPriceCalcByField

procedure PlanPriceCalcByField(CurrPriceFieldNo: Integer)

Parameters

Name Type Description
CurrPriceFieldNo Integer

ClearFieldCausedPriceCalculation

procedure ClearFieldCausedPriceCalculation()

UpdateUnitPrice

procedure UpdateUnitPrice(CalledByFieldNo: Integer)

Parameters

Name Type Description
CalledByFieldNo Integer

ApplyPrice

procedure ApplyPrice(PriceType: Enum "Price Type", ServiceHeader: Record "Service Header", CalledByFieldNo: Integer)

Parameters

Name Type Description
PriceType Enum Microsoft.Pricing.PriceList."Price Type"
ServiceHeader Table Microsoft.Service.Document."Service Header"
CalledByFieldNo Integer

ShowDimensions

procedure ShowDimensions()

ShowReservation

procedure ShowReservation()

ShowReservationEntries

procedure ShowReservationEntries(Modal: Boolean)

Parameters

Name Type Description
Modal Boolean

AutoReserve

procedure AutoReserve()

AutoReserve

procedure AutoReserve(ShowReservationForm: Boolean)

Parameters

Name Type Description
ShowReservationForm Boolean

ShowNonstock

procedure ShowNonstock()

CalcLineAmount

procedure CalcLineAmount(): Decimal

Returns

Type Description
Decimal

CopyFromServItem

procedure CopyFromServItem(ServItem: Record "Service Item")

Parameters

Name Type Description
ServItem Table Microsoft.Service.Item."Service Item"

ShowItemSub

procedure ShowItemSub()

SetHideReplacementDialog

procedure SetHideReplacementDialog(NewHideReplacementDialog: Boolean)

Parameters

Name Type Description
NewHideReplacementDialog Boolean

GetHideReplacementDialog

procedure GetHideReplacementDialog(): Boolean

Returns

Type Description
Boolean

CheckIfServItemReplacement

procedure CheckIfServItemReplacement(ComponentLineNo: Integer)

Parameters

Name Type Description
ComponentLineNo Integer

IsInbound

procedure IsInbound(): Boolean

Returns

Type Description
Boolean

OpenItemTrackingLines

procedure OpenItemTrackingLines()

GetDefaultBin

procedure GetDefaultBin()

GetItemTranslation

procedure GetItemTranslation()

GetSKU

procedure GetSKU(): Boolean

Returns

Type Description
Boolean

GetUnitCost

procedure GetUnitCost()

GetRemainingQty

procedure GetRemainingQty(var RemainingQty: Decimal, var RemainingQtyBase: Decimal)

Parameters

Name Type Description
RemainingQty Decimal
RemainingQtyBase Decimal

GetReservationQty

procedure GetReservationQty(var QtyReserved: Decimal, var QtyReservedBase: Decimal, var QtyToReserve: Decimal, var QtyToReserveBase: Decimal): Decimal

Parameters

Name Type Description
QtyReserved Decimal
QtyReservedBase Decimal
QtyToReserve Decimal
QtyToReserveBase Decimal

Returns

Type Description
Decimal

GetSourceCaption

procedure GetSourceCaption(): Text

Returns

Type Description
Text

SetReservationEntry

procedure SetReservationEntry(var ReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

SetReservationFilters

procedure SetReservationFilters(var ReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

ReservEntryExist

procedure ReservEntryExist(): Boolean

Returns

Type Description
Boolean

AfterResourseFindCost

Obsolete

This element will become obsolete from version 17.0. Replaced by the new implementation (V16) of price calculation.

[Obsolete(Replaced by the new implementation (V16) of price calculation.,17.0)]
procedure AfterResourseFindCost(var ResourceCost: Record "Resource Cost")

Parameters

Name Type Description
ResourceCost Table Microsoft.Projects.Resources.Pricing."Resource Cost"

InitOutstanding

procedure InitOutstanding()

InitOutstandingAmount

procedure InitOutstandingAmount()

InitQtyToShip

procedure InitQtyToShip()

InitQtyToInvoice

procedure InitQtyToInvoice()

MaxQtyToInvoice

procedure MaxQtyToInvoice(): Decimal

Returns

Type Description
Decimal

ItemExists

procedure ItemExists(ItemNo: Code[20]): Boolean

Parameters

Name Type Description
ItemNo Code[20]

Returns

Type Description
Boolean

GetCaptionClass

procedure GetCaptionClass(FieldNumber: Integer): Text[80]

Parameters

Name Type Description
FieldNumber Integer

Returns

Type Description
Text[80]

UpdateVATAmounts

procedure UpdateVATAmounts()

MaxQtyToConsume

procedure MaxQtyToConsume(): Decimal

Returns

Type Description
Decimal

MaxQtyToConsumeBase

procedure MaxQtyToConsumeBase(): Decimal

Returns

Type Description
Decimal

InitQtyToConsume

procedure InitQtyToConsume()

SetServHeader

procedure SetServHeader(NewServHeader: Record "Service Header")

Parameters

Name Type Description
NewServHeader Table Microsoft.Service.Document."Service Header"

SetServiceItemLine

procedure SetServiceItemLine(var NewServiceItemLine: Record "Service Item Line")

Parameters

Name Type Description
NewServiceItemLine Table Microsoft.Service.Document."Service Item Line"

CalcVATAmountLines

procedure CalcVATAmountLines(QtyType: Option, var ServHeader: Record "Service Header", var ServiceLine: Record "Service Line", var VATAmountLine: Record "VAT Amount Line", isShip: Boolean)

Parameters

Name Type Description
QtyType Option
ServHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
isShip Boolean

UpdateVATOnLines

procedure UpdateVATOnLines(QtyType: Option, var ServHeader: Record "Service Header", var ServiceLine: Record "Service Line", var VATAmountLine: Record "VAT Amount Line")

Parameters

Name Type Description
QtyType Option
ServHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

CalcChargeableQty

procedure CalcChargeableQty(): Decimal

Returns

Type Description
Decimal

SignedXX

procedure SignedXX(Value: Decimal): Decimal

Parameters

Name Type Description
Value Decimal

Returns

Type Description
Decimal

IsShipment

procedure IsShipment(): Boolean

Returns

Type Description
Boolean

CheckLineDiscount

procedure CheckLineDiscount(LineDisc: Decimal)

Parameters

Name Type Description
LineDisc Decimal

ConfirmAdjPriceLineChange

procedure ConfirmAdjPriceLineChange()

SetHideCostWarning

procedure SetHideCostWarning(Value: Boolean)

Parameters

Name Type Description
Value Boolean

SetHideWarrantyWarning

procedure SetHideWarrantyWarning(Value: Boolean)

Parameters

Name Type Description
Value Boolean

SplitResourceLine

procedure SplitResourceLine()

UpdateRemainingCostsAndAmounts

procedure UpdateRemainingCostsAndAmounts()

RowID1

procedure RowID1(): Text[250]

Returns

Type Description
Text[250]

UpdatePlanned

procedure UpdatePlanned(): Boolean

Returns

Type Description
Boolean

UpdateReservation

procedure UpdateReservation(CalledByFieldNo: Integer)

Parameters

Name Type Description
CalledByFieldNo Integer

ShowTracking

procedure ShowTracking()

ShowOrderPromisingLine

procedure ShowOrderPromisingLine()

FilterLinesWithItemToPlan

procedure FilterLinesWithItemToPlan(var Item: Record Item)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item

FindLinesWithItemToPlan

procedure FindLinesWithItemToPlan(var Item: Record Item): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item

Returns

Type Description
Boolean

LinesWithItemToPlanExist

procedure LinesWithItemToPlanExist(var Item: Record Item): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item

Returns

Type Description
Boolean

FindLinesForReservation

procedure FindLinesForReservation(ReservationEntry: Record "Reservation Entry", AvailabilityFilter: Text, Positive: Boolean)

Parameters

Name Type Description
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
AvailabilityFilter Text
Positive Boolean

UpdateWithWarehouseShip

procedure UpdateWithWarehouseShip()

TestStatusOpen

procedure TestStatusOpen()

SuspendStatusCheck

procedure SuspendStatusCheck(bSuspend: Boolean)

Parameters

Name Type Description
bSuspend Boolean

LineRequiresShipmentOrReceipt

procedure LineRequiresShipmentOrReceipt(): Boolean

Returns

Type Description
Boolean

GetDueDate

procedure GetDueDate(): Date

Returns

Type Description
Date

GetShipmentDate

procedure GetShipmentDate(): Date

Returns

Type Description
Date

GetDateForCalculations

procedure GetDateForCalculations(): Date

Returns

Type Description
Date

OutstandingInvoiceAmountFromShipment

procedure OutstandingInvoiceAmountFromShipment(CustomerNo: Code[20]): Decimal

Parameters

Name Type Description
CustomerNo Code[20]

Returns

Type Description
Decimal

TestItemFields

procedure TestItemFields(ItemNo: Code[20], VariantCode: Code[10], LocationCode: Code[10])

Parameters

Name Type Description
ItemNo Code[20]
VariantCode Code[10]
LocationCode Code[10]

TestBinCode

procedure TestBinCode()

GetNextLineNo

procedure GetNextLineNo(ServiceLineSource: Record "Service Line", BelowxRec: Boolean): Integer

Parameters

Name Type Description
ServiceLineSource Table Microsoft.Service.Document."Service Line"
BelowxRec Boolean

Returns

Type Description
Integer

GetLineNo

procedure GetLineNo(): Integer

Returns

Type Description
Integer

GetCPGInvRoundAcc

procedure GetCPGInvRoundAcc(ServiceHeader: Record "Service Header"): Code[20]

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

Returns

Type Description
Code[20]

DeleteWithAttachedLines

procedure DeleteWithAttachedLines()

IsNonInventoriableItem

procedure IsNonInventoriableItem(): Boolean

Returns

Type Description
Boolean

IsInventoriableItem

procedure IsInventoriableItem(): Boolean

Returns

Type Description
Boolean

SelectMultipleItems

procedure SelectMultipleItems()

SwitchLinesWithErrorsFilter

procedure SwitchLinesWithErrorsFilter(var ShowAllLinesEnabled: Boolean)

Parameters

Name Type Description
ShowAllLinesEnabled Boolean

CreateDimFromDefaultDim

procedure CreateDimFromDefaultDim(FieldNo: Integer)

Parameters

Name Type Description
FieldNo Integer

CheckIfServiceLineMeetsReservedFromStockSetting

procedure CheckIfServiceLineMeetsReservedFromStockSetting(QtyToPost: Decimal, ReservedFromStock: Enum "Reservation From Stock"): Boolean

Parameters

Name Type Description
QtyToPost Decimal
ReservedFromStock Enum Microsoft.Inventory.Tracking."Reservation From Stock"

Returns

Type Description
Boolean

SetCalledFromServiceItemLine

procedure SetCalledFromServiceItemLine(CallFromServiceItemLine: Boolean)

Parameters

Name Type Description
CallFromServiceItemLine Boolean

CopyToItemJnlLine

procedure CopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

CopyToResJournalLine

procedure CopyToResJournalLine(var ResJournalLine: Record "Res. Journal Line")

Parameters

Name Type Description
ResJournalLine Table Microsoft.Projects.Resources.Journal."Res. Journal Line"

CheckProdPostingGroups

procedure CheckProdPostingGroups(): Boolean

Returns

Type Description
Boolean

Events

OnAfterInitDefaultDimensionSources

[IntegrationEvent(False,False)]
local procedure OnAfterInitDefaultDimensionSources(var ServiceLine: Record "Service Line", var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]], FieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]
FieldNo Integer

OnAfterAssignHeaderValues

[IntegrationEvent(False,False)]
local procedure OnAfterAssignHeaderValues(var ServiceLine: Record "Service Line", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterAssignStdTxtValues

[IntegrationEvent(False,False)]
local procedure OnAfterAssignStdTxtValues(var ServiceLine: Record "Service Line", StandardText: Record "Standard Text")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
StandardText Table Microsoft.Utilities."Standard Text"

OnAfterAssignGLAccountValues

[IntegrationEvent(False,False)]
local procedure OnAfterAssignGLAccountValues(var ServiceLine: Record "Service Line", GLAccount: Record "G/L Account", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
GLAccount Table Microsoft.Finance.GeneralLedger.Account."G/L Account"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterAssignServCostValues

[IntegrationEvent(False,False)]
local procedure OnAfterAssignServCostValues(var ServiceLine: Record "Service Line", ServiceCost: Record "Service Cost")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceCost Table Microsoft.Service.Pricing."Service Cost"

OnAfterAssignItemValues

[IntegrationEvent(False,False)]
local procedure OnAfterAssignItemValues(var ServiceLine: Record "Service Line", Item: Record Item, xServiceLine: Record "Service Line", CallingFieldNo: Integer, ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Item Table Microsoft.Inventory.Item.Item
xServiceLine Table Microsoft.Service.Document."Service Line"
CallingFieldNo Integer
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterAssignServItemValues

[IntegrationEvent(False,False)]
local procedure OnAfterAssignServItemValues(var ServiceLine: Record "Service Line", ServiceItem: Record "Service Item", ServiceItemComp: Record "Service Item Component", HideReplacementDialog: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceItem Table Microsoft.Service.Item."Service Item"
ServiceItemComp Table Microsoft.Service.Item."Service Item Component"
HideReplacementDialog Boolean

OnAfterAssignResourceValues

[IntegrationEvent(False,False)]
local procedure OnAfterAssignResourceValues(var ServiceLine: Record "Service Line", Resource: Record Resource)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Resource Table Microsoft.Projects.Resources.Resource.Resource

OnAfterCalcLineAmount

[IntegrationEvent(False,False)]
local procedure OnAfterCalcLineAmount(var ServiceLine: Record "Service Line", var LineAmount: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
LineAmount Decimal

OnAfterCalculateDiscount

[IntegrationEvent(False,False)]
local procedure OnAfterCalculateDiscount(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterCalcInvDiscToInvoice

[IntegrationEvent(False,False)]
local procedure OnAfterCalcInvDiscToInvoice(var ServiceLine: Record "Service Line", OldInvDiscAmtToInv: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
OldInvDiscAmtToInv Decimal

OnAfterCheckApplFromItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnAfterCheckApplFromItemLedgEntry(var ServiceLine: Record "Service Line", var ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnAfterClearFields

[IntegrationEvent(False,False)]
local procedure OnAfterClearFields(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", TempServiceLine: Record "Service Line" temporary, CallingFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
TempServiceLine Table Microsoft.Service.Document."Service Line"
CallingFieldNo Integer

OnAfterGetItemTranslation

[IntegrationEvent(False,False)]
local procedure OnAfterGetItemTranslation(var ServiceLine: Record "Service Line", ServiceHeader: Record "Service Header", ItemTranslation: Record "Item Translation")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
ItemTranslation Table Microsoft.Inventory.Item."Item Translation"

OnAfterGetLineWithPrice

[IntegrationEvent(True,False)]
local procedure OnAfterGetLineWithPrice(var LineWithPrice: Interface "Line With Price")

Parameters

Name Type Description
LineWithPrice Interface Microsoft.Pricing.PriceList."Line With Price"

OnAfterGetSKU

[IntegrationEvent(False,False)]
local procedure OnAfterGetSKU(ServiceLine: Record "Service Line", var Result: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Result Boolean

OnAfterGetStrMenuDefaultValue

[IntegrationEvent(False,False)]
local procedure OnAfterGetStrMenuDefaultValue(var DefaultValue: Integer)

Parameters

Name Type Description
DefaultValue Integer

OnAfterGetUnitCost

[IntegrationEvent(False,False)]
local procedure OnAfterGetUnitCost(var ServiceLine: Record "Service Line", Item: Record Item)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Item Table Microsoft.Inventory.Item.Item

OnAfterFilterLinesWithItemToPlan

[IntegrationEvent(False,False)]
local procedure OnAfterFilterLinesWithItemToPlan(var ServiceLine: Record "Service Line", var Item: Record Item)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Item Table Microsoft.Inventory.Item.Item

OnAfterFindLinesForReservation

[IntegrationEvent(False,False)]
local procedure OnAfterFindLinesForReservation(var ServiceLine: Record "Service Line", ReservationEntry: Record "Reservation Entry", AvailabilityFilter: Text, Positive: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
AvailabilityFilter Text
Positive Boolean

OnAfterMaxQtyToConsume

[IntegrationEvent(False,False)]
local procedure OnAfterMaxQtyToConsume(var ServiceLine: Record "Service Line", var Result: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Result Decimal

OnAfterMaxQtyToConsumeBase

[IntegrationEvent(False,False)]
local procedure OnAfterMaxQtyToConsumeBase(var ServiceLine: Record "Service Line", var Result: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Result Decimal

OnAfterResourseFindCost

Obsolete

This element will become obsolete from version 17.0. Replaced by the new implementation (V16) of price calculation.

[Obsolete(Replaced by the new implementation (V16) of price calculation.,17.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterResourseFindCost(var ServiceLine: Record "Service Line", var ResourceCost: Record "Resource Cost")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ResourceCost Table Microsoft.Projects.Resources.Pricing."Resource Cost"

OnAfterTestStatusOpen

[IntegrationEvent(False,False)]
local procedure OnAfterTestStatusOpen(var ServiceLine: Record "Service Line", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterSetHideCostWarning

[IntegrationEvent(False,False)]
local procedure OnAfterSetHideCostWarning(var ServiceLine: Record "Service Line", var HideCostWarning: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
HideCostWarning Boolean

OnAfterSetHideWarrantyWarning

[IntegrationEvent(False,False)]
local procedure OnAfterSetHideWarrantyWarning(var ServiceLine: Record "Service Line", var HideWarrantyWarning: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
HideWarrantyWarning Boolean

OnAfterValidateServiceItemLineNumber

[IntegrationEvent(False,False)]
local procedure OnAfterValidateServiceItemLineNumber(var Rec: Record "Service Line", var ServiceLine: Record "Service Line")

Parameters

Name Type Description
Rec Table Microsoft.Service.Document."Service Line"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterUpdateUnitPrice

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateUnitPrice(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", CalledByFieldNo: Integer, CurrFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
CalledByFieldNo Integer
CurrFieldNo Integer

OnAfterUpdateVATAmounts

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateVATAmounts(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterUpdateAmounts

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateAmounts(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterUpdateVATOnLines

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateVATOnLines(var ServHeader: Record "Service Header", var ServiceLine: Record "Service Line", var VATAmountLine: Record "VAT Amount Line", QtyType: Option)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
QtyType Option

OnAfterCalcVATAmount

[IntegrationEvent(False,False)]
local procedure OnAfterCalcVATAmount(VATAmountLine: Record "VAT Amount Line", NewAmount: Decimal, NewBase: Decimal, var VATAmount: Decimal)

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
NewAmount Decimal
NewBase Decimal
VATAmount Decimal

OnAfterCalcVATAmountLines

[IntegrationEvent(False,False)]
local procedure OnAfterCalcVATAmountLines(var ServHeader: Record "Service Header", var ServiceLine: Record "Service Line", var VATAmountLine: Record "VAT Amount Line", QtyType: Option)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
QtyType Option

OnAfterInitOutstanding

[IntegrationEvent(False,False)]
local procedure OnAfterInitOutstanding(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterInitOutstandingAmount

[IntegrationEvent(False,False)]
local procedure OnAfterInitOutstandingAmount(var ServiceLine: Record "Service Line", ServiceHeader: Record "Service Header", Currency: Record Currency)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
Currency Table Microsoft.Finance.Currency.Currency

OnAfterInitQtyToInvoice

[IntegrationEvent(False,False)]
local procedure OnAfterInitQtyToInvoice(var ServiceLine: Record "Service Line", CurrFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CurrFieldNo Integer

OnAfterInitQtyToShip

[IntegrationEvent(False,False)]
local procedure OnAfterInitQtyToShip(var ServiceLine: Record "Service Line", CurrFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CurrFieldNo Integer

OnAfterInitQtyToConsume

[IntegrationEvent(False,False)]
local procedure OnAfterInitQtyToConsume(var ServiceLine: Record "Service Line", CurrFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CurrFieldNo Integer
IsHandled Boolean

OnAfterSalesTaxCalculate

[IntegrationEvent(False,False)]
local procedure OnAfterSalesTaxCalculate(var ServiceLine: Record "Service Line", ServiceHeader: Record "Service Header", Currency: Record Currency)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
Currency Table Microsoft.Finance.Currency.Currency

OnAfterSalesTaxCalculateReverse

[IntegrationEvent(False,False)]
local procedure OnAfterSalesTaxCalculateReverse(var ServiceLine: Record "Service Line", ServiceHeader: Record "Service Header", Currency: Record Currency)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
Currency Table Microsoft.Finance.Currency.Currency

OnAfterSetHideReplacementDialog

[IntegrationEvent(False,False)]
local procedure OnAfterSetHideReplacementDialog(var ServiceLine: Record "Service Line", var HideReplacementDialog: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
HideReplacementDialog Boolean

OnAfterShowNonstock

[IntegrationEvent(False,False)]
local procedure OnAfterShowNonstock(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line", FieldNumber: Integer, var ShortcutDimCode: Code[20])

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
FieldNumber Integer
ShortcutDimCode Code[20]

OnBeforeApplyDiscount

[IntegrationEvent(False,False)]
local procedure OnBeforeApplyDiscount(ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeCheckVATCalculationType

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckVATCalculationType(var ServiceLine: Record "Service Line", VATPostingSetup: Record "VAT Posting Setup", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
VATPostingSetup Table Microsoft.Finance.VAT.Setup."VAT Posting Setup"
IsHandled Boolean

OnBeforeCheckQtyToInvoicePositive

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckQtyToInvoicePositive(var ServiceLine: Record "Service Line", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CurrentFieldNo Integer
IsHandled Boolean

OnBeforeCheckQtyToShipPositive

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckQtyToShipPositive(var ServiceLine: Record "Service Line", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CurrentFieldNo Integer
IsHandled Boolean

OnBeforeCheckQtyToConsumePositive

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckQtyToConsumePositive(var ServiceLine: Record "Service Line", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CurrentFieldNo Integer
IsHandled Boolean

OnBeforeInitQtyToShip

[IntegrationEvent(False,False)]
local procedure OnBeforeInitQtyToShip(var ServiceLine: Record "Service Line", CurrFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CurrFieldNo Integer
IsHandled Boolean

OnBeforeCopyFromItem

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyFromItem(var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeCopyFromServItem

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyFromServItem(var ServiceLine: Record "Service Line", ServiceItem: Record "Service Item", ServItemComponent: Record "Service Item Component", var IsHandled: Boolean, var HideReplacementDialog: Boolean, ServItemLine: Record "Service Item Line", var Select: Integer, var ReplaceServItemAction: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceItem Table Microsoft.Service.Item."Service Item"
ServItemComponent Table Microsoft.Service.Item."Service Item Component"
IsHandled Boolean
HideReplacementDialog Boolean
ServItemLine Table Microsoft.Service.Document."Service Item Line"
Select Integer
ReplaceServItemAction Boolean

OnBeforeCreateDim

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDim(var ServiceLine: Record "Service Line", CallingFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CallingFieldNo Integer
IsHandled Boolean

OnBeforeGetDefaultBin

[IntegrationEvent(False,False)]
local procedure OnBeforeGetDefaultBin(var ServiceLine: Record "Service Line", CallingFieldNo: Integer, var IsHandled: Boolean, ReplaceServItemAction: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CallingFieldNo Integer
IsHandled Boolean
ReplaceServItemAction Boolean

OnBeforeGetSKU

[IntegrationEvent(False,False)]
local procedure OnBeforeGetSKU(var ServiceLine: Record "Service Line", var Result: Boolean, var IsHandled: Boolean, var SKU: Record "Stockkeeping Unit")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Result Boolean
IsHandled Boolean
SKU Table Microsoft.Inventory.Location."Stockkeeping Unit"

OnBeforeInitServHeaderShipToCode

[IntegrationEvent(False,False)]
local procedure OnBeforeInitServHeaderShipToCode(var ServiceLine: Record "Service Line", var ServHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeInitHeaderDefaults

[IntegrationEvent(False,False)]
local procedure OnBeforeInitHeaderDefaults(var ServiceLine: Record "Service Line", var ServHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeTestBinCode

[IntegrationEvent(False,False)]
local procedure OnBeforeTestBinCode(var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeTestQuantityPositive

[IntegrationEvent(False,False)]
local procedure OnBeforeTestQuantityPositive(var ServiceLine: Record "Service Line", CallingFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CallingFieldNo Integer
IsHandled Boolean

OnBeforeTestQtyFromLineDiscountAmount

[IntegrationEvent(False,False)]
local procedure OnBeforeTestQtyFromLineDiscountAmount(var ServiceLine: Record "Service Line", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CurrentFieldNo Integer
IsHandled Boolean

OnBeforeTestQtyFromLineAmount

[IntegrationEvent(False,False)]
local procedure OnBeforeTestQtyFromLineAmount(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeLookupShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnBeforeLookupShortcutDimCode(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line", FieldNumber: Integer, var ShortcutDimCode: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
FieldNumber Integer
ShortcutDimCode Code[20]
IsHandled Boolean

OnBeforeTestStatusOpen

[IntegrationEvent(False,False)]
local procedure OnBeforeTestStatusOpen(var ServiceLine: Record "Service Line", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeUpdateAmounts

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateAmounts(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
CurrentFieldNo Integer
IsHandled Boolean

OnBeforeUpdateLineDiscPct

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateLineDiscPct(var ServiceLine: Record "Service Line", Currency: Record Currency, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Currency Table Microsoft.Finance.Currency.Currency
IsHandled Boolean

OnBeforeUpdateUnitPrice

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateUnitPrice(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", CalledByFieldNo: Integer, CurrFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
CalledByFieldNo Integer
CurrFieldNo Integer

OnBeforeUpdateUnitPriceProcedure

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateUnitPriceProcedure(var ServiceLine: Record "Service Line", CalledByFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CalledByFieldNo Integer
IsHandled Boolean

OnBeforeUpdateUnitPriceByField

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateUnitPriceByField(var ServiceLine: Record "Service Line", CalledByFieldNo: Integer, CalcCost: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CalledByFieldNo Integer
CalcCost Boolean
IsHandled Boolean

OnBeforeUpdateVATAmounts

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateVATAmounts(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeValidateNeededByDate

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateNeededByDate(var ServHeader: Record "Service Header", var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeValidateResponsibilityCenter

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateResponsibilityCenter(var Rec: Record "Service Line", var DimMgt: Codeunit DimensionManagement, var IsHandled: Boolean)

Parameters

Name Type Description
Rec Table Microsoft.Service.Document."Service Line"
DimMgt Codeunit Microsoft.Finance.Dimension.DimensionManagement
IsHandled Boolean

OnBeforeValidateServiceItemNo

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateServiceItemNo(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeValidateServiceItemLineNumber

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateServiceItemLineNumber(var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeValidateQuantity

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantity(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
CurrentFieldNo Integer
IsHandled Boolean

OnBeforeValidateQuantityInvIsBalanced

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantityInvIsBalanced(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeValidateQuantityShipIsBalanced

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantityShipIsBalanced(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeValidateQuantityConsumeIsBalanced

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantityConsumeIsBalanced(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShortcutDimCode(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line", FieldNumber: Integer, var ShortcutDimCode: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
FieldNumber Integer
ShortcutDimCode Code[20]
IsHandled Boolean

OnBeforeValidateQuantityBase

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantityBase(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line", FieldNumber: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
FieldNumber Integer
IsHandled Boolean

OnBeforeValidateQtyToConsumeBase

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQtyToConsumeBase(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line", FieldNumber: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
FieldNumber Integer
IsHandled Boolean

OnBeforeValidateQtyToInvoiceBase

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQtyToInvoiceBase(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line", FieldNumber: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
FieldNumber Integer
IsHandled Boolean

OnBeforeValidateQtyToShipBase

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQtyToShipBase(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line", FieldNumber: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
FieldNumber Integer
IsHandled Boolean

OnCalcVATAmountLinesOnAfterCalcLineTotals

[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnAfterCalcLineTotals(var VATAmountLine: Record "VAT Amount Line", ServHeader: Record "Service Header", ServiceLine: Record "Service Line", Currency: Record Currency, QtyType: Option, var TotalVATAmount: Decimal)

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
ServHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
Currency Table Microsoft.Finance.Currency.Currency
QtyType Option
TotalVATAmount Decimal

OnCheckItemAvailableOnBeforeCheckNonStock

[IntegrationEvent(False,False)]
local procedure OnCheckItemAvailableOnBeforeCheckNonStock(var ServiceLine: Record "Service Line", FieldNumber: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
FieldNumber Integer
IsHandled Boolean

OnCopyFromResourceOnAfterCheckResource

[IntegrationEvent(False,False)]
local procedure OnCopyFromResourceOnAfterCheckResource(var ServiceLine: Record "Service Line", Resource: Record Resource)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Resource Table Microsoft.Projects.Resources.Resource.Resource

OnCopyFromCostOnAfterCalcShouldShowConfirm

[IntegrationEvent(True,False)]
local procedure OnCopyFromCostOnAfterCalcShouldShowConfirm(var ServiceLine: Record "Service Line", ServiceCost: Record "Service Cost", HideCostWarning: Boolean, var ShouldShowConfirm: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceCost Table Microsoft.Service.Pricing."Service Cost"
HideCostWarning Boolean
ShouldShowConfirm Boolean

OnInitQtyToShipOnBeforeInitQtyToInvoice

[IntegrationEvent(False,False)]
local procedure OnInitQtyToShipOnBeforeInitQtyToInvoice(var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnInitQtyToInvoiceOnBeforeCalcInvDiscToInvoice

[IntegrationEvent(False,False)]
local procedure OnInitQtyToInvoiceOnBeforeCalcInvDiscToInvoice(var ServiceLine: Record "Service Line", CurrentFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CurrentFieldNo Integer

OnInitHeaderDefaultsOnAfterAssignLocationCode

[IntegrationEvent(False,False)]
local procedure OnInitHeaderDefaultsOnAfterAssignLocationCode(var ServiceLine: Record "Service Line", ServHeader: Record "Service Header")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServHeader Table Microsoft.Service.Document."Service Header"

OnReplaceServItemOnCopyFromReplacementItem

[IntegrationEvent(False,False)]
local procedure OnReplaceServItemOnCopyFromReplacementItem(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnValidateContractNoOnBeforeContractDiscountFind

[IntegrationEvent(False,False)]
local procedure OnValidateContractNoOnBeforeContractDiscountFind(var ServiceLine: Record "Service Line", var ContractServDisc: Record "Contract/Service Discount", ServItem: Record "Service Item")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ContractServDisc Table Microsoft.Service.Contract."Contract/Service Discount"
ServItem Table Microsoft.Service.Item."Service Item"

OnValidateServiceItemLineNoOnBeforeValidateContractNo

[IntegrationEvent(False,False)]
local procedure OnValidateServiceItemLineNoOnBeforeValidateContractNo(var ServiceLine: Record "Service Line", ServItemLine: Record "Service Item Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServItemLine Table Microsoft.Service.Document."Service Item Line"

OnValidateVariantCodeOnAssignItem

[IntegrationEvent(False,False)]
local procedure OnValidateVariantCodeOnAssignItem(var ServiceLine: Record "Service Line", Item: Record Item)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Item Table Microsoft.Inventory.Item.Item

OnValidateNoOnAfterCopyFields

[IntegrationEvent(False,False)]
local procedure OnValidateNoOnAfterCopyFields(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnValidateVATProdPostingGroupOnAfterCopyFields

[IntegrationEvent(False,False)]
local procedure OnValidateVATProdPostingGroupOnAfterCopyFields(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnValidateUnitOfMeasureCodeOnBeforeValidateQuantity

[IntegrationEvent(False,False)]
local procedure OnValidateUnitOfMeasureCodeOnBeforeValidateQuantity(var ServiceLine: Record "Service Line", Item: Record Item)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Item Table Microsoft.Inventory.Item.Item

OnValidateVariantCodeOnAssignItemVariant

[IntegrationEvent(False,False)]
local procedure OnValidateVariantCodeOnAssignItemVariant(var ServiceLine: Record "Service Line", ItemVariant: Record "Item Variant")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ItemVariant Table Microsoft.Inventory.Item."Item Variant"

OnValidateQuantityOnAfterCalcQuantityBase

[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnAfterCalcQuantityBase(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeCheckIfCanBeModified

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckIfCanBeModified(ServiceLine: Record "Service Line", var IsHandled: Boolean, xServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean
xServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeCheckItemAvailable

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckItemAvailable(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", CalledByFieldNo: Integer, var IsHandled: Boolean, CurrFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
CalledByFieldNo Integer
IsHandled Boolean
CurrFieldNo Integer

OnBeforeShowItemSub

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemSub(var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeShowNonstock

[IntegrationEvent(False,False)]
local procedure OnBeforeShowNonstock(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeShowReservation

[IntegrationEvent(False,False)]
local procedure OnBeforeShowReservation(var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnDeleteOnAfterServiceLineSetFilter

[IntegrationEvent(False,False)]
local procedure OnDeleteOnAfterServiceLineSetFilter(var ServiceLine2: Record "Service Line", var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine2 Table Microsoft.Service.Document."Service Line"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterCreateDim

[IntegrationEvent(False,False)]
local procedure OnAfterCreateDim(var ServiceLine: Record "Service Line", CurrFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CurrFieldNo Integer

OnAfterShowDimensions

[IntegrationEvent(False,False)]
local procedure OnAfterShowDimensions(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeShowDimensions

[IntegrationEvent(False,False)]
local procedure OnBeforeShowDimensions(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnLookupServiceItemNoOnAfterServItemSetFilters

[IntegrationEvent(False,False)]
local procedure OnLookupServiceItemNoOnAfterServItemSetFilters(var ServiceLine: Record "Service Line", ServHeader: Record "Service Header", var ServItem: Record "Service Item")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServHeader Table Microsoft.Service.Document."Service Header"
ServItem Table Microsoft.Service.Item."Service Item"

OnReplaceServItemOnAfterAssignVariantCode

[IntegrationEvent(False,False)]
local procedure OnReplaceServItemOnAfterAssignVariantCode(var ServiceLine: Record "Service Line", ServItemReplacement: Page "Service Item Replacement", SerialNo: Code[50], var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServItemReplacement Page Microsoft.Service.Item."Service Item Replacement"
SerialNo Code[50]
IsHandled Boolean

OnInsertItemTrackingOnBeforeCreateEntry

[IntegrationEvent(False,False)]
local procedure OnInsertItemTrackingOnBeforeCreateEntry(var Rec: Record "Service Line")

Parameters

Name Type Description
Rec Table Microsoft.Service.Document."Service Line"

OnBeforeValidateVATProdPostingGroup

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateVATProdPostingGroup(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnShowNonstockOnAfterUpdateFromNonstockItem

[IntegrationEvent(False,False)]
local procedure OnShowNonstockOnAfterUpdateFromNonstockItem(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"

OnUpdateAmountsOnAfterCalcShouldCheckCrLimit

[IntegrationEvent(False,False)]
local procedure OnUpdateAmountsOnAfterCalcShouldCheckCrLimit(var ServiceLine: Record "Service Line", IsCustCrLimitChecked: Boolean, CurrentFieldNo: Integer, var ShouldCheckCrLimit: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsCustCrLimitChecked Boolean
CurrentFieldNo Integer
ShouldCheckCrLimit Boolean

OnBeforeGetCPGInvRoundAcc

[IntegrationEvent(False,False)]
local procedure OnBeforeGetCPGInvRoundAcc(ServiceHeader: Record "Service Header", var AccountNo: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
AccountNo Code[20]
IsHandled Boolean

OnValidateApplToItemEntryOnBeforeShowNotOpenItemLedgerEntryMessage

[IntegrationEvent(False,False)]
local procedure OnValidateApplToItemEntryOnBeforeShowNotOpenItemLedgerEntryMessage(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", var ItemLedgerEntry: Record "Item Ledger Entry", CurrentFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
CurrentFieldNo Integer

OnValidateReturnReasonCodeOnBeforeValidateLocationCode

[IntegrationEvent(False,False)]
local procedure OnValidateReturnReasonCodeOnBeforeValidateLocationCode(var ServiceLine: Record "Service Line", ReturnReason: Record "Return Reason", var ShouldValidateLocationCode: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ReturnReason Table Microsoft.Foundation.AuditCodes."Return Reason"
ShouldValidateLocationCode Boolean

OnValidateAmountOnAfterCalculateNormalVAT

[IntegrationEvent(False,False)]
local procedure OnValidateAmountOnAfterCalculateNormalVAT(var ServiceLine: Record "Service Line", ServiceHeader: Record "Service Header", Currency: Record Currency)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
Currency Table Microsoft.Finance.Currency.Currency

OnCalcVATAmountLinesOnBeforeUpdateLines

[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnBeforeUpdateLines(var TotalVATAmount: Decimal, Currency: Record Currency, ServiceHeader: Record "Service Header", var VATAmountLine: Record "VAT Amount Line" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
TotalVATAmount Decimal
Currency Table Microsoft.Finance.Currency.Currency
ServiceHeader Table Microsoft.Service.Document."Service Header"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
IsHandled Boolean

OnValidateAmountIncludingVATOnAfterCalculateNormalVAT

[IntegrationEvent(False,False)]
local procedure OnValidateAmountIncludingVATOnAfterCalculateNormalVAT(var ServiceLine: Record "Service Line", ServiceHeader: Record "Service Header", Currency: Record Currency)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
Currency Table Microsoft.Finance.Currency.Currency

OnUpdateCalcVATAmountLines

[IntegrationEvent(False,False)]
local procedure OnUpdateCalcVATAmountLines(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", var VATAmountLine: Record "VAT Amount Line", QtyType: Option, isShip: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
QtyType Option
isShip Boolean
IsHandled Boolean

OnValidateQuantityOnBeforeResetAmounts

[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnBeforeResetAmounts(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeUpdateVATOnLines

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateVATOnLines(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", ServiceHeader: Record "Service Header", var VATAmountLine: Record "VAT Amount Line" temporary, QtyType: Option, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
QtyType Option
IsHandled Boolean

OnUpdateAmountsOnAfterCalcExpectedLineAmount

[IntegrationEvent(False,False)]
local procedure OnUpdateAmountsOnAfterCalcExpectedLineAmount(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", var ExpectedLineAmount: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
ExpectedLineAmount Decimal

OnUpdateVATAmountsIfPricesInclVATOnAfterNormalVATCalc

[IntegrationEvent(False,False)]
local procedure OnUpdateVATAmountsIfPricesInclVATOnAfterNormalVATCalc(var ServiceLine: Record "Service Line", ServHeader: Record "Service Header", Currency: Record Currency)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServHeader Table Microsoft.Service.Document."Service Header"
Currency Table Microsoft.Finance.Currency.Currency

OnUpdateVATAmountsIfPricesExclVATOnAfterNormalVATCalc

[IntegrationEvent(False,False)]
local procedure OnUpdateVATAmountsIfPricesExclVATOnAfterNormalVATCalc(var ServiceLine: Record "Service Line", ServHeader: Record "Service Header", Currency: Record Currency)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServHeader Table Microsoft.Service.Document."Service Header"
Currency Table Microsoft.Finance.Currency.Currency

OnUpdateVATAmountOnAfterClearAmounts

[IntegrationEvent(False,False)]
local procedure OnUpdateVATAmountOnAfterClearAmounts(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterUpdateVATOnLinesOnAfterCalcVATAmount

Obsolete

This element will become obsolete from version 27.0. The event is never raised

[Obsolete(The event is never raised,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateVATOnLinesOnAfterCalcVATAmount(var ServiceLine: Record "Service Line", var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary, VATAmountLine: Record "VAT Amount Line", var VATAmount: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
TempVATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
VATAmount Decimal

OnBeforeInitTableValuePair

[IntegrationEvent(False,False)]
local procedure OnBeforeInitTableValuePair(var TableValuePair: Dictionary of [Integer, Code[20]], FieldNo: Integer, var IsHandled: Boolean, var ServiceLine: Record "Service Line")

Parameters

Name Type Description
TableValuePair Dictionary of [Integer, Code[20]]
FieldNo Integer
IsHandled Boolean
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterInitTableValuePair

[IntegrationEvent(False,False)]
local procedure OnAfterInitTableValuePair(var TableValuePair: Dictionary of [Integer, Code[20]], FieldNo: Integer, var ServiceLine: Record "Service Line")

Parameters

Name Type Description
TableValuePair Dictionary of [Integer, Code[20]]
FieldNo Integer
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeCheckWarehouse

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckWarehouse(var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeUpdateWithWarehouseShipOnAfterVerifyType

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateWithWarehouseShipOnAfterVerifyType(var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnAfterCalcChargeableQty

[IntegrationEvent(False,False)]
local procedure OnAfterCalcChargeableQty(ServiceLine: Record "Service Line", var ChargableQty: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ChargableQty Decimal

OnBeforeValidateJobNo

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateJobNo(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeValidateJobTaskNo

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateJobTaskNo(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnValidateFaultReasonCodeOnBeforeExcludeWarrantyDiscountCheck

[IntegrationEvent(False,False)]
local procedure OnValidateFaultReasonCodeOnBeforeExcludeWarrantyDiscountCheck(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeOnDelete

[IntegrationEvent(False,False)]
local procedure OnBeforeOnDelete(var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnDeleteOnBeforeServiceEntriesError

[IntegrationEvent(False,False)]
local procedure OnDeleteOnBeforeServiceEntriesError(var ServiceLine: Record "Service Line", var CheckServiceDocumentType: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CheckServiceDocumentType Boolean

OnBeforeLookupContractNo

[IntegrationEvent(False,False)]
local procedure OnBeforeLookupContractNo(var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeCalculateDiscount

[IntegrationEvent(False,False)]
local procedure OnBeforeCalculateDiscount(var ServiceLine: Record "Service Line", var IsHandled: Boolean, CurrentFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean
CurrentFieldNo Integer

OnBeforeCheckErrorSelectedSI

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckErrorSelectedSI(var ServiceLine: Record "Service Line", var ServItemLineNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServItemLineNo Integer
IsHandled Boolean

OnCheckIfServiceLineMeetsReservedFromStockSetting

[IntegrationEvent(False,False)]
local procedure OnCheckIfServiceLineMeetsReservedFromStockSetting(QtyToPost: Decimal, ReservedFromStock: Enum "Reservation From Stock", var Result: Boolean)

Parameters

Name Type Description
QtyToPost Decimal
ReservedFromStock Enum Microsoft.Inventory.Tracking."Reservation From Stock"
Result Boolean

OnAfterCheckItemAvailable

[IntegrationEvent(False,False)]
local procedure OnAfterCheckItemAvailable(var ServiceLine: Record "Service Line", CalledByFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CalledByFieldNo Integer

OnInsertOnBeforeDisplayConflictError

[IntegrationEvent(False,False)]
local procedure OnInsertOnBeforeDisplayConflictError(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnInsertOnAfterDisplayConflictError

[IntegrationEvent(False,False)]
local procedure OnInsertOnAfterDisplayConflictError(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnModifyOnAfterUpdateServiceLedgerEntry

[IntegrationEvent(False,False)]
local procedure OnModifyOnAfterUpdateServiceLedgerEntry(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"

OnDeleteOnDelNonStockFSMBeforeModify

[IntegrationEvent(False,False)]
local procedure OnDeleteOnDelNonStockFSMBeforeModify(var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnValidateNoOnBeforeTestFields

[IntegrationEvent(False,False)]
local procedure OnValidateNoOnBeforeTestFields(var ServiceLine: Record "Service Line", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CurrentFieldNo Integer
IsHandled Boolean

OnValidateNoOnBeforeCustomerCheck

[IntegrationEvent(False,False)]
local procedure OnValidateNoOnBeforeCustomerCheck(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnValidateQuantityOnBeforeGetUnitCost

[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnBeforeGetUnitCost(var ServiceLine: Record "Service Line", CurrentFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
CurrentFieldNo Integer

OnValidateQtyToShipOnBeforeQtyToShipCheck

[IntegrationEvent(False,False)]
local procedure OnValidateQtyToShipOnBeforeQtyToShipCheck(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line", CallingFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
CallingFieldNo Integer
IsHandled Boolean

OnValidateWorkTypeCodeOnBeforePlanPriceCalcByField

[IntegrationEvent(False,False)]
local procedure OnValidateWorkTypeCodeOnBeforePlanPriceCalcByField(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"

OnValidateVariantCodeOnAfterUpdateReservation

[IntegrationEvent(False,False)]
local procedure OnValidateVariantCodeOnAfterUpdateReservation(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnValidateUnitOfMeasureOnAfterAssignUnitofMeasureValue

[IntegrationEvent(False,False)]
local procedure OnValidateUnitOfMeasureOnAfterAssignUnitofMeasureValue(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeValidateExcludeWarranty

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateExcludeWarranty(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", HideWarrantyWarning: Boolean, CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
HideWarrantyWarning Boolean
CurrentFieldNo Integer
IsHandled Boolean

OnValidateContractNoOnBeforeAssignWarrantyDisc

[IntegrationEvent(False,False)]
local procedure OnValidateContractNoOnBeforeAssignWarrantyDisc(var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeCopyFromCost

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyFromCost(var ServiceLine: Record "Service Line", HideCostWarning: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
HideCostWarning Boolean
IsHandled Boolean

OnBeforeCopyFromResource

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyFromResource(var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnUpdateVATAmountsOnBeforeCalculateAmountWithNoVAT

[IntegrationEvent(False,False)]
local procedure OnUpdateVATAmountsOnBeforeCalculateAmountWithNoVAT(var ServiceLine: Record "Service Line", TotalAmount: Decimal, TotalAmountInclVAT: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
TotalAmount Decimal
TotalAmountInclVAT Decimal
IsHandled Boolean

OnBeforeCheckLineDiscount

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckLineDiscount(var ServiceLine: Record "Service Line", LineDisc: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
LineDisc Decimal
IsHandled Boolean

OnBeforeConfirmAdjPriceLineChange

[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmAdjPriceLineChange(var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeAutoReserve

[IntegrationEvent(False,False)]
local procedure OnBeforeAutoReserve(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", FullAutoReservation: Boolean, var ReserveServiceLine: Codeunit "Service Line-Reserve", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
FullAutoReservation Boolean
ReserveServiceLine Codeunit Microsoft.Service.Document."Service Line-Reserve"
IsHandled Boolean

OnCalcVATAmountLinesOnAfterServiceLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnAfterServiceLineSetFilters(var ServiceLine: Record "Service Line", var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeSelectMultipleItems

[IntegrationEvent(False,False)]
local procedure OnBeforeSelectMultipleItems(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterSelectMultipleItems

[IntegrationEvent(False,False)]
local procedure OnAfterSelectMultipleItems(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeAddItems

[IntegrationEvent(False,False)]
local procedure OnBeforeAddItems(var ServiceLine: Record "Service Line", SelectionFilter: Text, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
SelectionFilter Text
IsHandled Boolean

OnAfterPickDiscount

[IntegrationEvent(False,False)]
local procedure OnAfterPickDiscount(var ServiceLine: Record "Service Line", var PriceCalculation: Interface "Price Calculation")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
PriceCalculation Interface Microsoft.Pricing.Calculation."Price Calculation"

OnAfterPickPrice

[IntegrationEvent(False,False)]
local procedure OnAfterPickPrice(var ServiceLine: Record "Service Line", var PriceCalculation: Interface "Price Calculation")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
PriceCalculation Interface Microsoft.Pricing.Calculation."Price Calculation"

OnBeforeCopyToItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line", ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnAfterCopyToItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line", ServiceLine: Record "Service Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterCopyToResJournalLine

[IntegrationEvent(False,False)]
local procedure OnAfterCopyToResJournalLine(var ResJournalLine: Record "Res. Journal Line", ServiceLine: Record "Service Line")

Parameters

Name Type Description
ResJournalLine Table Microsoft.Projects.Resources.Journal."Res. Journal Line"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterGetVatBaseDiscountPct

[IntegrationEvent(False,False)]
local procedure OnAfterGetVatBaseDiscountPct(var ServiceLine: Record "Service Line", var ServiceHeader: Record "Service Header", var Result: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
Result Decimal

OnInsertVATAmountOnBeforeInsert

[IntegrationEvent(False,False)]
local procedure OnInsertVATAmountOnBeforeInsert(var ServiceLine: Record "Service Line", var VATAmountLine: Record "VAT Amount Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

OnFindVATAmountLineOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnFindVATAmountLineOnAfterSetFilters(var ServiceLine: Record "Service Line", var VATAmountLine: Record "VAT Amount Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

OnUpdateVATAmountsOnAfterCalculateVATBaseAmount

[IntegrationEvent(False,False)]
local procedure OnUpdateVATAmountsOnAfterCalculateVATBaseAmount(var ServiceLine: Record "Service Line", var ServiceHeader: Record "Service Header", var Currency: Record Currency, TotalAmount: Decimal, TotalVATBaseAmount: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
Currency Table Microsoft.Finance.Currency.Currency
TotalAmount Decimal
TotalVATBaseAmount Decimal

OnCalcVATAmountLinesOnBeforeVATAmountLineModifyInvoicing

[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnBeforeVATAmountLineModifyInvoicing(var ServiceLine: Record "Service Line", var VATAmountLine: Record "VAT Amount Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

OnCalcVATAmountLinesOnBeforeVATAmountLineModifyShipping

[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnBeforeVATAmountLineModifyShipping(var ServiceLine: Record "Service Line", var VATAmountLine: Record "VAT Amount Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

OnCalcVATAmountLinesOnBeforeVATAmountLineModifyElseCase

[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnBeforeVATAmountLineModifyElseCase(var ServiceLine: Record "Service Line", var VATAmountLine: Record "VAT Amount Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

OnUpdateVATOnLinesOnAfterSetNewVATBaseAmountPriceInclVAT

[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnAfterSetNewVATBaseAmountPriceInclVAT(var ServiceLine: Record "Service Line", var ServiceHeader: Record "Service Header", var VATAmountLine: Record "VAT Amount Line", var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary, NewAmount: Decimal, var NewVATBaseAmount: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
TempVATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
NewAmount Decimal
NewVATBaseAmount Decimal

OnUpdateVATOnLinesOnAfterSetNewVATBaseAmountPriceExclVAT

[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnAfterSetNewVATBaseAmountPriceExclVAT(var ServiceLine: Record "Service Line", var ServiceHeader: Record "Service Header", var VATAmountLine: Record "VAT Amount Line", var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary, NewAmount: Decimal, var NewVATBaseAmount: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
TempVATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
NewAmount Decimal
NewVATBaseAmount Decimal

OnUpdateVATOnLinesOnAfterSetVATBaseAmountGeneral

[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnAfterSetVATBaseAmountGeneral(var ServiceLine: Record "Service Line", var VATAmountLine: Record "VAT Amount Line", var Currency: Record Currency, NewVATBaseAmount: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
Currency Table Microsoft.Finance.Currency.Currency
NewVATBaseAmount Decimal

OnUpdateVATOnLinesOnBeforeTempVATAmountLineRemainderModify

[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnBeforeTempVATAmountLineRemainderModify(var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary, var ServiceLine: Record "Service Line", NewVATBaseAmount: Decimal)

Parameters

Name Type Description
TempVATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
ServiceLine Table Microsoft.Service.Document."Service Line"
NewVATBaseAmount Decimal

OnAfterOnDelete

[IntegrationEvent(False,False)]
local procedure OnAfterOnDelete(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeCheckProdPostingGroups

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckProdPostingGroups(var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Result Boolean
IsHandled Boolean

OnAfterClearVATPct

[IntegrationEvent(False,False)]
local procedure OnAfterClearVATPct(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterClearVATDifference

[IntegrationEvent(False,False)]
local procedure OnAfterClearVATDifference(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterCalcVATDifference

[IntegrationEvent(False,False)]
local procedure OnAfterCalcVATDifference(var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary, var VATAmountLine: Record "VAT Amount Line", LineAmount: Decimal)

Parameters

Name Type Description
TempVATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
LineAmount Decimal

OnAfterRoundVATDifference

[IntegrationEvent(False,False)]
local procedure OnAfterRoundVATDifference(var ServiceLine: Record "Service Line", Currency: Record Currency)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Currency Table Microsoft.Finance.Currency.Currency

OnAfterGetVATPct

[IntegrationEvent(False,False)]
local procedure OnAfterGetVATPct(var ServiceLine: Record "Service Line", var VATPct: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
VATPct Decimal

OnAfterCopyFromVATPostingSetup

[IntegrationEvent(False,False)]
local procedure OnAfterCopyFromVATPostingSetup(var ServiceLine: Record "Service Line", var VATPostingSetupFrom: Record "VAT Posting Setup")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
VATPostingSetupFrom Table Microsoft.Finance.VAT.Setup."VAT Posting Setup"

OnAfterCopyPrepaymentFromVATPostingSetup

Obsolete

This element will become obsolete from version 27.0. This event is never raised.

[Obsolete(This event is never raised.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterCopyPrepaymentFromVATPostingSetup(var ServiceLine: Record "Service Line", var VATPostingSetupFrom: Record "VAT Posting Setup")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
VATPostingSetupFrom Table Microsoft.Finance.VAT.Setup."VAT Posting Setup"

OnBeforeValidateLineAmount

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateLineAmount(var ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", Currency: Record Currency, CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
Currency Table Microsoft.Finance.Currency.Currency
CurrentFieldNo Integer
IsHandled Boolean

OnCalcVATAmountLinesOnBeforeUpdateVATAmountLine

[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnBeforeUpdateVATAmountLine(var ServiceLine: Record "Service Line", var VATAmountLine: Record "VAT Amount Line", var TotalVATAmount: Decimal, Currency: Record Currency, var RoundingLineInserted: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
TotalVATAmount Decimal
Currency Table Microsoft.Finance.Currency.Currency
RoundingLineInserted Boolean

OnValidateQtyToConsumeOnBeforeQtyToConsumeCheck

[IntegrationEvent(False,False)]
local procedure OnValidateQtyToConsumeOnBeforeQtyToConsumeCheck(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line", CallingFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
CallingFieldNo Integer
IsHandled Boolean

OnInitOutstandingOnAfterInitOutstandingQuantity

[IntegrationEvent(False,False)]
local procedure OnInitOutstandingOnAfterInitOutstandingQuantity(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

See also