Interface "Price Asset"
Base Application · Microsoft.Pricing.Asset
Across versions
- BC23-30present
Base Application · Microsoft.Pricing.Asset · BC23-30 · source at ea08af5e · facts from BC29
Procedures
GetNo(var PriceAsset: Record "Price Asset")GetId(var PriceAsset: Record "Price Asset"): The method fills the Price Asset parameter with “Asset ID” and other data from the asset defined in the implementation codeunit.IsLookupOK(var PriceAsset: Record "Price Asset"): Boolean: The method runs the modal page for looking up for an asset.ValidateUnitOfMeasure(var PriceAsset: Record "Price Asset"): Boolean: The method validates if the unit of measure exists for the asset. Not used. This validation should happen in IsLookupUnitOfMeasureOK.IsLookupUnitOfMeasureOK(var PriceAsset: Record "Price Asset"): Boolean: The method runs the modal page for looking up for a unit of measure.IsLookupVariantOK(var PriceAsset: Record "Price Asset"): Boolean: The method runs the modal page for looking up for an item variant.IsAssetNoRequired(): Boolean: The method should return true for an asset that requires “Asset No.” to be filled. In W1 returns false just for one asset type - All.FillBestLine(PriceCalculationBuffer: Record "Price Calculation Buffer"; AmountType: Enum "Price Amount Type"; var PriceListLine: Record "Price List Line"): The method is called in case there is no a price list line that matches all filters defined by the document/journal line. As a result, the PriceListLine parameter gets pricing data from an asset card or another source.FilterPriceLines(PriceAsset: Record "Price Asset"; var PriceListLine: Record "Price List Line"): Boolean: The method should add the filters for PriceListLine related to the PriceAsset, e.g., besides “Asset Type” and “Asset No.” Item adds “Varian Code”, Resource adds “Work Type Code”PutRelatedAssetsToList(PriceAsset: Record "Price Asset"; var PriceAssetList: Codeunit "Price Asset List"): The method should add assets related to the current one to build the multi-level PriceAssetList. E.g., a resource asset can add up to two levels: “Resource Group” and “All resources” to setup the hierarchical search, while an item asset adds “Item Discount Group” at the same level as “Item” is, so b…FillFromBuffer(var PriceAsset: Record "Price Asset"; PriceCalculationBuffer: Record "Price Calculation Buffer"): The method should fill the PriceAsset with asset related data from the PriceCalculationBuffer. Used in Add() method of the “Price Asset List” codeunit.
Implemented by
- Codeunit 7040 “Price Asset - All”
- Codeunit 7041 “Price Asset - Item”
- Codeunit 7042 “Price Asset - Item Disc. Group”
- Codeunit 7043 “Price Asset - Resource”
- Codeunit 7044 “Price Asset - Resource Group”
- Codeunit 7045 “Price Asset - Service Cost”
- Codeunit 7046 “Price Asset - G/L Account”
- Enum 7004 “Price Asset Type”
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "interface", object_name: "Price Asset"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.