Codeunit "Service Line - Price"
ID 7026
Namespace: Microsoft.Service.Pricing
Implements
Methods
GetTableNo
procedure GetTableNo(): Integer
Returns
| Type | Description |
|---|---|
| Integer |
SetLine
procedure SetLine(PriceType: Enum "Price Type", Line: Variant)
Parameters
| Name | Type | Description |
|---|---|---|
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| Line | Variant |
SetLine
procedure SetLine(PriceType: Enum "Price Type", Header: Variant, Line: Variant)
Parameters
| Name | Type | Description |
|---|---|---|
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| Header | Variant | |
| Line | Variant |
SetSources
procedure SetSources(var NewPriceSourceList: Codeunit "Price Source List")
Parameters
| Name | Type | Description |
|---|---|---|
| NewPriceSourceList | Codeunit Microsoft.Pricing.Source."Price Source List" |
GetLine
procedure GetLine(var Line: Variant)
Parameters
| Name | Type | Description |
|---|---|---|
| Line | Variant |
GetLine
procedure GetLine(var Header: Variant, var Line: Variant)
Parameters
| Name | Type | Description |
|---|---|---|
| Header | Variant | |
| Line | Variant |
GetPriceType
procedure GetPriceType(): Enum "Price Type"
Returns
| Type | Description |
|---|---|
| Enum Microsoft.Pricing.PriceList."Price Type" |
IsPriceUpdateNeeded
procedure IsPriceUpdateNeeded(AmountType: Enum "Price Amount Type", FoundPrice: Boolean, CalledByFieldNo: Integer): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" | |
| FoundPrice | Boolean | |
| CalledByFieldNo | Integer |
Returns
| Type | Description |
|---|---|
| Boolean |
IsDiscountAllowed
procedure IsDiscountAllowed(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
Verify
procedure Verify()
SetAssetSourceForSetup
procedure SetAssetSourceForSetup(var DtldPriceCalculationSetup: Record "Dtld. Price Calculation Setup"): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| DtldPriceCalculationSetup | Table Microsoft.Pricing.Calculation."Dtld. Price Calculation Setup" |
Returns
| Type | Description |
|---|---|
| Boolean |
GetAssetType
procedure GetAssetType(): Enum "Price Asset Type"
Returns
| Type | Description |
|---|---|
| Enum Microsoft.Pricing.Asset."Price Asset Type" |
CopyToBuffer
procedure CopyToBuffer(var PriceCalculationBufferMgt: Codeunit "Price Calculation Buffer Mgt."): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| PriceCalculationBufferMgt | Codeunit Microsoft.Pricing.Calculation."Price Calculation Buffer Mgt." |
Returns
| Type | Description |
|---|---|
| Boolean |
SetPrice
procedure SetPrice(AmountType: Enum "Price Amount Type", PriceListLine: Record "Price List Line")
Parameters
| Name | Type | Description |
|---|---|---|
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" | |
| PriceListLine | Table Microsoft.Pricing.PriceList."Price List Line" |
ValidatePrice
procedure ValidatePrice(AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
Update
procedure Update(AmountType: Enum "Price Amount Type")
Parameters
| Name | Type | Description |
|---|---|---|
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" |
Events
OnAfterAddSources
[IntegrationEvent(False,False)]
local procedure OnAfterAddSources(ServiceHeader: Record "Service Header", ServiceLine: Record "Service Line", PriceType: Enum "Price Type", var PriceSourceList: Codeunit "Price Source List")
Parameters
| Name | Type | Description |
|---|---|---|
| ServiceHeader | Table Microsoft.Service.Document."Service Header" | |
| ServiceLine | Table Microsoft.Service.Document."Service Line" | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| PriceSourceList | Codeunit Microsoft.Pricing.Source."Price Source List" |
OnAfterFillBuffer
[IntegrationEvent(False,False)]
local procedure OnAfterFillBuffer(var PriceCalculationBuffer: Record "Price Calculation Buffer" temporary, ServiceHeader: Record "Service Header", ServiceLine: Record "Service Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PriceCalculationBuffer | Table Microsoft.Pricing.Calculation."Price Calculation Buffer" | |
| ServiceHeader | Table Microsoft.Service.Document."Service Header" | |
| ServiceLine | Table Microsoft.Service.Document."Service Line" |
OnAfterGetAssetType
[IntegrationEvent(False,False)]
local procedure OnAfterGetAssetType(ServiceLine: Record "Service Line", var AssetType: Enum "Price Asset Type")
Parameters
| Name | Type | Description |
|---|---|---|
| ServiceLine | Table Microsoft.Service.Document."Service Line" | |
| AssetType | Enum Microsoft.Pricing.Asset."Price Asset Type" |
OnAfterGetDocumentDate
[IntegrationEvent(False,False)]
local procedure OnAfterGetDocumentDate(var DocumentDate: Date, ServiceHeader: Record "Service Header", ServiceLine: Record "Service Line")
Parameters
| Name | Type | Description |
|---|---|---|
| DocumentDate | Date | |
| ServiceHeader | Table Microsoft.Service.Document."Service Header" | |
| ServiceLine | Table Microsoft.Service.Document."Service Line" |
OnAfterIsPriceUpdateNeeded
[IntegrationEvent(False,False)]
local procedure OnAfterIsPriceUpdateNeeded(AmountType: Enum "Price Amount Type", FoundPrice: Boolean, CalledByFieldNo: Integer, ServiceLine: Record "Service Line", var Result: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" | |
| FoundPrice | Boolean | |
| CalledByFieldNo | Integer | |
| ServiceLine | Table Microsoft.Service.Document."Service Line" | |
| Result | Boolean |
OnAfterSetPrice
[IntegrationEvent(False,False)]
local procedure OnAfterSetPrice(var ServiceLine: Record "Service Line", PriceListLine: Record "Price List Line", AmountType: Enum "Price Amount Type", var ServiceHeader: Record "Service Header")
Parameters
| Name | Type | Description |
|---|---|---|
| ServiceLine | Table Microsoft.Service.Document."Service Line" | |
| PriceListLine | Table Microsoft.Pricing.PriceList."Price List Line" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" | |
| ServiceHeader | Table Microsoft.Service.Document."Service Header" |
OnBeforeSetPrice
[IntegrationEvent(False,False)]
local procedure OnBeforeSetPrice(var ServiceLine: Record "Service Line", PriceListLine: Record "Price List Line", AmountType: Enum "Price Amount Type", var IsHandled: Boolean, var ServiceHeader: Record "Service Header", CurrPriceType: Enum "Price Type")
Parameters
| Name | Type | Description |
|---|---|---|
| ServiceLine | Table Microsoft.Service.Document."Service Line" | |
| PriceListLine | Table Microsoft.Pricing.PriceList."Price List Line" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" | |
| IsHandled | Boolean | |
| ServiceHeader | Table Microsoft.Service.Document."Service Header" | |
| CurrPriceType | Enum Microsoft.Pricing.PriceList."Price Type" |
OnAfterValidatePrice
[IntegrationEvent(False,False)]
local procedure OnAfterValidatePrice(var ServiceLine: Record "Service Line", CurrPriceType: Enum "Price Type", AmountType: Enum "Price Amount Type", var ServiceHeader: Record "Service Header")
Parameters
| Name | Type | Description |
|---|---|---|
| ServiceLine | Table Microsoft.Service.Document."Service Line" | |
| CurrPriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" | |
| ServiceHeader | Table Microsoft.Service.Document."Service Header" |
OnAfterUpdate
[IntegrationEvent(False,False)]
local procedure OnAfterUpdate(var ServiceLine: Record "Service Line", CurrPriceType: Enum "Price Type", AmountType: Enum "Price Amount Type", var ServiceHeader: Record "Service Header")
Parameters
| Name | Type | Description |
|---|---|---|
| ServiceLine | Table Microsoft.Service.Document."Service Line" | |
| CurrPriceType | Enum Microsoft.Pricing.PriceList."Price Type" | |
| AmountType | Enum Microsoft.Pricing.PriceList."Price Amount Type" | |
| ServiceHeader | Table Microsoft.Service.Document."Service Header" |
OnAfterIsDiscountAllowed
[IntegrationEvent(False,False)]
local procedure OnAfterIsDiscountAllowed(ServiceLine: Record "Service Line", PriceCalculated: Boolean, var Result: Boolean, var ServiceHeader: Record "Service Header")
Parameters
| Name | Type | Description |
|---|---|---|
| ServiceLine | Table Microsoft.Service.Document."Service Line" | |
| PriceCalculated | Boolean | |
| Result | Boolean | |
| ServiceHeader | Table Microsoft.Service.Document."Service Header" |