Codeunit 5849 "Avg. Cost Entry Point Handler"
Base Application · Microsoft.Inventory.Costing
Across versions
- BC23-30present
Neighbourhood 10 connected objects and pages
Base Application · Microsoft.Inventory.Costing · BC23-30 · source at ea08af5e · facts from BC29
Events published
OnBeforeInitialize(var AverageCostEntryPoint: Interface "Average Cost Entry Point"; var IsHandled: Boolean)(integration)
Procedures
GetMaxValuationDate(ItemLedgerEntry: Record "Item Ledger Entry"; ValueEntry: Record "Value Entry"): DateGetValuationPeriod(var CalendarPeriod: Record Date; PostingDate: Date)LockBuffer()UpdateValuationDate(ValueEntry: Record "Value Entry")IsEntriesAdjusted(itemNo: Code[20]; EndingDate: Date): BooleanDeleteBuffer(ItemNo: Code[20]; FromValuationDate: Date)
Plus 1 local procedures.
Called by
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 22 “Item Jnl.-Post Line” (4 calls:
TouchItemEntryCost → UpdateValuationDate,UndoQuantityPosting → UpdateValuationDate,UpdateAvgCostAdjmtBuffer → LockBuffer, …) - Codeunit 5810 “Change Average Cost Setting” (3 calls:
OnRun → LockBuffer,ProcessItemAvgCostPoint → DeleteBuffer,ProcessItemAvgCostPoint → UpdateValuationDate) - Codeunit 361 “MoveEntries” (2 calls:
MoveItemEntries → DeleteBuffer,MoveItemEntries → IsEntriesAdjusted) - Codeunit 5820 “Close Inventory Period” (1 call:
CheckCostIsAdjusted → IsEntriesAdjusted) - Codeunit 5822 “Cost Adjustment Bucket Runner” (1 call:
LockTables → LockBuffer) - Codeunit 5899 “Calc. Inventory Value-Check” (1 call:
CheckAdjusted → IsEntriesAdjusted) - Report 795 “Adjust Cost - Item Entries” (1 call:
LockTables → LockBuffer) - Table 313 “Inventory Setup” (1 call:
CheckCostAdjustedBeforeEarliestAllowedValDate → IsEntriesAdjusted) - Table 339 “Item Application Entry” (1 call:
GetVisitedEntries → GetMaxValuationDate) - Table 5802 “Value Entry” (1 call:
GetAvgToDate → GetValuationPeriod)
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: "codeunit", object_name: "Avg. Cost Entry Point Handler"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.