Codeunit "Avg. Cost Entry Point Handler"

ID 5849
Namespace: Microsoft.Inventory.Costing

Methods

GetMaxValuationDate

procedure GetMaxValuationDate(ItemLedgerEntry: Record "Item Ledger Entry", ValueEntry: Record "Value Entry"): Date

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

Returns

Type Description
Date

GetValuationPeriod

procedure GetValuationPeriod(var CalendarPeriod: Record Date, PostingDate: Date)

Parameters

Name Type Description
CalendarPeriod Table System.Utilities.Date
PostingDate Date

LockBuffer

procedure LockBuffer()

UpdateValuationDate

procedure UpdateValuationDate(ValueEntry: Record "Value Entry")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

IsEntriesAdjusted

procedure IsEntriesAdjusted(itemNo: Code[20], EndingDate: Date): Boolean

Parameters

Name Type Description
itemNo Code[20]
EndingDate Date

Returns

Type Description
Boolean

DeleteBuffer

procedure DeleteBuffer(ItemNo: Code[20], FromValuationDate: Date)

Parameters

Name Type Description
ItemNo Code[20]
FromValuationDate Date

Events

OnBeforeInitialize

[IntegrationEvent(False,False)]
local procedure OnBeforeInitialize(var AverageCostEntryPoint: Interface "Average Cost Entry Point", var IsHandled: Boolean)

Parameters

Name Type Description
AverageCostEntryPoint Interface Microsoft.Inventory.Costing."Average Cost Entry Point"
IsHandled Boolean

See also