Codeunit 7045 Price Asset - Service Cost

Base Application, Microsoft.Pricing.Asset

Source AL, 148 lines

src/Layers/W1/BaseApp/Service/Pricing/PriceAssetServiceCost.Codeunit.allines 12 to 27 of 148, Copyright (c) Microsoft Corporation. MIT

codeunit 7045 "Price Asset - Service Cost" implements "Price Asset"{    var        ServiceCost: Record "Service Cost";        UnitofMeasure: Record "Unit of Measure";    procedure GetNo(var PriceAsset: Record "Price Asset")    begin        PriceAsset."Table Id" := Database::"Service Cost";        if ServiceCost.GetBySystemId(PriceAsset."Asset ID") then begin            PriceAsset."Asset No." := ServiceCost.Code;            FillAdditionalFields(PriceAsset);        end else            PriceAsset.InitAsset();    end;

All 148 lines

Events 3 in 29

[IntegrationEvent] OnAfterPutRelatedAssetsToList(PriceAsset: Record "Price Asset"; var PriceAssetList: Codeunit "Price Asset List")new in 18
[IntegrationEvent] OnAfterFillAdditionalFields(var PriceAsset: Record "Price Asset"; ServiceCost: Record "Service Cost")new in 24
[IntegrationEvent] OnAfterFillBestLine(PriceCalculationBuffer: Record "Price Calculation Buffer"; PriceAmountType: Enum "Price Amount Type"; var PriceListLine: Record "Price List Line")new in 25

Public procedures 11 in 29

GetNo(var PriceAsset: Record "Price Asset")17-29
GetId(var PriceAsset: Record "Price Asset")17-29
IsLookupOK(var PriceAsset: Record "Price Asset"): Boolean17-29
ValidateUnitOfMeasure(var PriceAsset: Record "Price Asset"): Boolean17-29
IsLookupUnitOfMeasureOK(var PriceAsset: Record "Price Asset"): Boolean17-29
IsLookupVariantOK(var PriceAsset: Record "Price Asset"): Boolean17-29

All 11 procedures

Changes 1 in 25

List17181920212223242526272829
Events111
[IntegrationEvent] OnAfterFillBestLine(PriceCalculationBuffer: Record "Price Calculation Buffer"; PriceAmountType: Enum "Price Amount Type"; var PriceListLine: Record "Price List Line")new in 25
added

All 3 changes in 17-29