Codeunit "Price Source List"

ID 7011
Namespace: Microsoft.Pricing.Source

Methods

Init

procedure Init()

GetMinMaxLevel

procedure GetMinMaxLevel(var Level: array[2] of Integer)

Parameters

Name Type Description
Level array[2] of Integer

GetPriceType

procedure GetPriceType(): Enum "Price Type"

Returns

Type Description
Enum Microsoft.Pricing.PriceList."Price Type"

SetPriceType

procedure SetPriceType(NewPriceType: Enum "Price Type")

Parameters

Name Type Description
NewPriceType Enum Microsoft.Pricing.PriceList."Price Type"

IncLevel

procedure IncLevel()

SetLevel

procedure SetLevel(Level: Integer)

Parameters

Name Type Description
Level Integer

Add

procedure Add(SourceType: Enum "Price Source Type", SourceNo: Code[20])

Parameters

Name Type Description
SourceType Enum Microsoft.Pricing.Source."Price Source Type"
SourceNo Code[20]

Add

procedure Add(SourceType: Enum "Price Source Type", ParentSourceNo: Code[20], SourceNo: Code[20])

Parameters

Name Type Description
SourceType Enum Microsoft.Pricing.Source."Price Source Type"
ParentSourceNo Code[20]
SourceNo Code[20]

Add

procedure Add(SourceType: Enum "Price Source Type", SourceId: Guid)

Parameters

Name Type Description
SourceType Enum Microsoft.Pricing.Source."Price Source Type"
SourceId Guid

Add

procedure Add(SourceType: Enum "Price Source Type")

Parameters

Name Type Description
SourceType Enum Microsoft.Pricing.Source."Price Source Type"

Add

procedure Add(PriceSource: Record "Price Source" temporary)

Parameters

Name Type Description
PriceSource Table Microsoft.Pricing.Source."Price Source"

AddChildren

procedure AddChildren(PriceSource: Record "Price Source" temporary)

Parameters

Name Type Description
PriceSource Table Microsoft.Pricing.Source."Price Source"

AddJobAsSources

procedure AddJobAsSources(JobNo: Code[20], JobTaskNo: Code[20])

Parameters

Name Type Description
JobNo Code[20]
JobTaskNo Code[20]

GetValue

procedure GetValue(SourceType: Enum "Price Source Type"): Code[20]

Parameters

Name Type Description
SourceType Enum Microsoft.Pricing.Source."Price Source Type"

Returns

Type Description
Code[20]

Copy

procedure Copy(var FromPriceSourceList: Codeunit "Price Source List")

Parameters

Name Type Description
FromPriceSourceList Codeunit Microsoft.Pricing.Source."Price Source List"

GetList

procedure GetList(var ToTempPriceSource: Record "Price Source" temporary): Boolean

Parameters

Name Type Description
ToTempPriceSource Table Microsoft.Pricing.Source."Price Source"

Returns

Type Description
Boolean

First

procedure First(var PriceSource: Record "Price Source" temporary, AtLevel: Integer): Boolean

Parameters

Name Type Description
PriceSource Table Microsoft.Pricing.Source."Price Source"
AtLevel Integer

Returns

Type Description
Boolean

Next

procedure Next(var PriceSource: Record "Price Source" temporary): Boolean

Parameters

Name Type Description
PriceSource Table Microsoft.Pricing.Source."Price Source"

Returns

Type Description
Boolean

GetSourceGroup

procedure GetSourceGroup(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

Remove

procedure Remove(SourceType: Enum "Price Source Type"): Boolean

Parameters

Name Type Description
SourceType Enum Microsoft.Pricing.Source."Price Source Type"

Returns

Type Description
Boolean

RemoveAtLevel

procedure RemoveAtLevel(SourceType: Enum "Price Source Type", Level: Integer): Boolean

Parameters

Name Type Description
SourceType Enum Microsoft.Pricing.Source."Price Source Type"
Level Integer

Returns

Type Description
Boolean

Events

OnAddOnBeforeInsert

[IntegrationEvent(True,False)]
local procedure OnAddOnBeforeInsert(var PriceSource: Record "Price Source" temporary)

Parameters

Name Type Description
PriceSource Table Microsoft.Pricing.Source."Price Source"

OnAfterGetValue

[IntegrationEvent(True,False)]
local procedure OnAfterGetValue(SourceType: Enum "Price Source Type", var Result: Code[20])

Parameters

Name Type Description
SourceType Enum Microsoft.Pricing.Source."Price Source Type"
Result Code[20]

OnBeforeAddChildren

[IntegrationEvent(True,False)]
local procedure OnBeforeAddChildren(PriceSource: Record "Price Source" temporary, var TempChildPriceSource: Record "Price Source" temporary)

Parameters

Name Type Description
PriceSource Table Microsoft.Pricing.Source."Price Source"
TempChildPriceSource Table Microsoft.Pricing.Source."Price Source"

See also