Codeunit "Price Source List"
ID 7011
Namespace: Microsoft.Pricing.Source
Methods
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
SetPriceType
procedure SetPriceType(NewPriceType: Enum "Price Type")
Parameters
IncLevel
SetLevel
procedure SetLevel(Level: Integer)
Parameters
Name
Type
Description
Level
Integer
Add
procedure Add(SourceType: Enum "Price Source Type", SourceNo: Code[20])
Parameters
Add
procedure Add(SourceType: Enum "Price Source Type", ParentSourceNo: Code[20], SourceNo: Code[20])
Parameters
Add
procedure Add(SourceType: Enum "Price Source Type", SourceId: Guid)
Parameters
Add
procedure Add(SourceType: Enum "Price Source Type")
Parameters
Add
procedure Add(PriceSource: Record "Price Source" temporary)
Parameters
AddChildren
procedure AddChildren(PriceSource: Record "Price Source" temporary)
Parameters
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
Returns
Type
Description
Code[20]
Copy
procedure Copy(var FromPriceSourceList: Codeunit "Price Source List")
Parameters
GetList
procedure GetList(var ToTempPriceSource: Record "Price Source" temporary): Boolean
Parameters
Returns
First
procedure First(var PriceSource: Record "Price Source" temporary, AtLevel: Integer): Boolean
Parameters
Returns
Next
procedure Next(var PriceSource: Record "Price Source" temporary): Boolean
Parameters
Returns
GetSourceGroup
procedure GetSourceGroup(var DtldPriceCalculationSetup: Record "Dtld. Price Calculation Setup"): Boolean
Parameters
Returns
Remove
procedure Remove(SourceType: Enum "Price Source Type"): Boolean
Parameters
Returns
RemoveAtLevel
procedure RemoveAtLevel(SourceType: Enum "Price Source Type", Level: Integer): Boolean
Parameters
Returns
Events
OnAddOnBeforeInsert
[IntegrationEvent(True,False)]
local procedure OnAddOnBeforeInsert(var PriceSource: Record "Price Source" temporary)
Parameters
OnAfterGetValue
[IntegrationEvent(True,False)]
local procedure OnAfterGetValue(SourceType: Enum "Price Source Type", var Result: Code[20])
Parameters
OnBeforeAddChildren
[IntegrationEvent(True,False)]
local procedure OnBeforeAddChildren(PriceSource: Record "Price Source" temporary, var TempChildPriceSource: Record "Price Source" temporary)
Parameters
See also