Codeunit 5130120 M365 JobStructureLine-Price

Codeunit 5130120 M365 JobStructureLine-Price

Methods

GetTableNo

procedure GetTableNo(): Integer

Parameters / Return Value

  • Returns Integer

SetLine

procedure SetLine(priceType: Enum "Price Type"; line: Variant)

Parameters / Return Value

  • priceType Enum "Price Type"

  • line Variant


SetLine

procedure SetLine(priceType: Enum "Price Type"; header: Variant; line: Variant)

Parameters / Return Value

  • priceType Enum "Price Type"

  • header Variant

  • line Variant


SetSources

procedure SetSources(var newPriceSourceList: Codeunit "Price Source List")

Parameters / Return Value

  • newPriceSourceList Codeunit "Price Source List"

GetLine

procedure GetLine(var line: Variant)

Parameters / Return Value

  • line Variant

GetLine

procedure GetLine(var header: Variant; var line: Variant)

Parameters / Return Value

  • header Variant

  • line Variant


GetPriceType

procedure GetPriceType(): Enum "Price Type"

Parameters / Return Value

  • Returns Enum "Price Type"

IsPriceUpdateNeeded

procedure IsPriceUpdateNeeded(amountType: Enum "Price Amount Type"; foundPrice: Boolean; calledByFieldNo: Integer) result: Boolean

Parameters / Return Value

  • amountType Enum "Price Amount Type"

  • foundPrice Boolean

  • calledByFieldNo Integer

  • Returns Boolean


IsDiscountAllowed

procedure IsDiscountAllowed() result: Boolean

Parameters / Return Value

  • Returns Boolean

Verify

procedure Verify()

SetAssetSourceForSetup

procedure SetAssetSourceForSetup(var dtldPriceCalculationSetup: Record "Dtld. Price Calculation Setup"): Boolean

Parameters / Return Value

  • dtldPriceCalculationSetup Record "Dtld. Price Calculation Setup"

  • Returns Boolean


GetAssetType

procedure GetAssetType() assetType: Enum "Price Asset Type"

Parameters / Return Value

  • Returns Enum "Price Asset Type"

CopyToBuffer

procedure CopyToBuffer(var priceCalculationBufferMgt: Codeunit "Price Calculation Buffer Mgt."): Boolean

Parameters / Return Value

  • priceCalculationBufferMgt Codeunit "Price Calculation Buffer Mgt."

  • Returns Boolean


SetPrice

procedure SetPrice(amountType: Enum "Price Amount Type"; priceListLine: Record "Price List Line")

Parameters / Return Value

  • amountType Enum "Price Amount Type"

  • priceListLine Record "Price List Line"


ValidatePrice

procedure ValidatePrice(amountType: Enum "Price Amount Type")

Parameters / Return Value

  • amountType Enum "Price Amount Type"

Update

procedure Update(amountType: Enum "Price Amount Type")

Parameters / Return Value

  • amountType Enum "Price Amount Type"

Events

OnAfterAddSources

local procedure OnAfterAddSources(jobStructureHeader: Record "M365 Job Structure Header"; jobStructureLine: Record "M365 Job Structure Line";priceType: Enum "Price Type"; var priceSourceList: Codeunit "Price Source List")

Parameters / Return Value

  • jobStructureHeader Record "M365 Job Structure Header"

  • jobStructureLine Record "M365 Job Structure Line"

  • priceType Enum "Price Type"

  • priceSourceList Codeunit "Price Source List"


OnAfterFillBuffer

local procedure OnAfterFillBuffer(var priceCalculationBuffer: Record "Price Calculation Buffer"; jobStructureHeader: Record "M365 Job Structure Header"; jobStructureLine: Record "M365 Job Structure Line")

Parameters / Return Value

  • priceCalculationBuffer Record "Price Calculation Buffer"

  • jobStructureHeader Record "M365 Job Structure Header"

  • jobStructureLine Record "M365 Job Structure Line"


OnAfterGetDocumentDate

local procedure OnAfterGetDocumentDate(var documentDate: Date; jobStructureHeader: Record "M365 Job Structure Header"; jobStructureLine: Record "M365 Job Structure Line")

Parameters / Return Value

  • documentDate Date

  • jobStructureHeader Record "M365 Job Structure Header"

  • jobStructureLine Record "M365 Job Structure Line"


OnAfterSetPrice

local procedure OnAfterSetPrice(var jobStructureLine: Record "M365 Job Structure Line"; priceListLine: Record "Price List Line"; amountType: Enum "Price Amount Type")

Parameters / Return Value

  • jobStructureLine Record "M365 Job Structure Line"

  • priceListLine Record "Price List Line"

  • amountType Enum "Price Amount Type"



EOS Labs -