Codeunit "Service Price Management"

ID 6080
Namespace: Microsoft.Service.Pricing

Methods

ShowPriceAdjustment

procedure ShowPriceAdjustment(ServItemLine: Record "Service Item Line")

Parameters

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

AdjustLines

procedure AdjustLines(ServLinePriceAdjmt: Record "Service Line Price Adjmt.", ServPriceGrSetup: Record "Serv. Price Group Setup")

Parameters

Name Type Description
ServLinePriceAdjmt Table Microsoft.Service.Pricing."Service Line Price Adjmt."
ServPriceGrSetup Table Microsoft.Service.Pricing."Serv. Price Group Setup"

GetServPriceGrSetup

procedure GetServPriceGrSetup(var ServPriceGrSetup: Record "Serv. Price Group Setup", ServHeader: Record "Service Header", ServItemLine: Record "Service Item Line")

Parameters

Name Type Description
ServPriceGrSetup Table Microsoft.Service.Pricing."Serv. Price Group Setup"
ServHeader Table Microsoft.Service.Document."Service Header"
ServItemLine Table Microsoft.Service.Document."Service Item Line"

ResetAdjustedLines

procedure ResetAdjustedLines(ServLine: Record "Service Line")

Parameters

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

CheckServItemGrCode

procedure CheckServItemGrCode(var ServLine: Record "Service Line")

Parameters

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

IsLineToAdjustFirstInvoiced

procedure IsLineToAdjustFirstInvoiced(var ServLine: Record "Service Line"): Boolean

Parameters

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

Returns

Type Description
Boolean

Events

OnShowPriceAdjustmentOnBeforeLineWithinFilter

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

Parameters

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

OnShowPriceAdjustmentAfterValidateLineDiscountPercentage

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

Parameters

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

OnShowPriceAdjustmentOnBeforeServLinePriceAdjmtInsert

[IntegrationEvent(False,False)]
local procedure OnShowPriceAdjustmentOnBeforeServLinePriceAdjmtInsert(ServiceLine: Record "Service Line", var ServiceLinePriceAdjmt: Record "Service Line Price Adjmt.")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceLinePriceAdjmt Table Microsoft.Service.Pricing."Service Line Price Adjmt."

OnAdjustLinesOnBeforeCalcSums

[IntegrationEvent(False,False)]
local procedure OnAdjustLinesOnBeforeCalcSums(var ServiceLinePriceAdjmt: Record "Service Line Price Adjmt.")

Parameters

Name Type Description
ServiceLinePriceAdjmt Table Microsoft.Service.Pricing."Service Line Price Adjmt."

OnAdjustFixedOnBeforeFind

[IntegrationEvent(False,False)]
local procedure OnAdjustFixedOnBeforeFind(var ServiceLinePriceAdjmt: Record "Service Line Price Adjmt.", InclVat: Boolean, var FixedPrice: Decimal)

Parameters

Name Type Description
ServiceLinePriceAdjmt Table Microsoft.Service.Pricing."Service Line Price Adjmt."
InclVat Boolean
FixedPrice Decimal

OnCalculateWeightOnBeforeCalcSums

[IntegrationEvent(False,False)]
local procedure OnCalculateWeightOnBeforeCalcSums(var ServiceLinePriceAdjmt: Record "Service Line Price Adjmt.")

Parameters

Name Type Description
ServiceLinePriceAdjmt Table Microsoft.Service.Pricing."Service Line Price Adjmt."

OnLineWithinFilterOnBeforeSetFilters

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

Parameters

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

OnBeforePerformAdjustment

[IntegrationEvent(False,False)]
local procedure OnBeforePerformAdjustment(var ServiceLinePriceAdjmt: Record "Service Line Price Adjmt.", InclVat: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLinePriceAdjmt Table Microsoft.Service.Pricing."Service Line Price Adjmt."
InclVat Boolean
IsHandled Boolean

OnResetAdjustedLinesOnBeforeSetHideReplacementDialog

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

Parameters

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

OnResetAdjustedLinesOnBeforeModify

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

Parameters

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

OnIsLineToAdjustFirstInvoicedOnAfterSetFilters

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

Parameters

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

See also