Interface "Average Cost Entry Point"
Methods
GetMaxValuationDate
The method find latest valuation date.
procedure GetMaxValuationDate(ItemLedgerEntry: Record "Item Ledger Entry", ValueEntry: Record "Value Entry"): Date
Parameters
| Name | Type | Description |
|---|---|---|
| ItemLedgerEntry | Table Microsoft.Inventory.Ledger."Item Ledger Entry" |
Set Item Ledger Entry with data for search filters. |
| ValueEntry | Table Microsoft.Inventory.Ledger."Value Entry" |
Set Value Entry record which provide original Valuation Date for the search. |
Returns
| Type | Description |
|---|---|
| Date |
GetValuationPeriod
The method find valuation period for posting date.
procedure GetValuationPeriod(var CalendarPeriod: Record Date, PostingDate: Date)
Parameters
| Name | Type | Description |
|---|---|---|
| CalendarPeriod | Table System.Utilities.Date |
Date record for valuation period. |
| PostingDate | Date |
Set Posting Date for the search. |
DeleteBuffer
The method delete average cost adjustment buffer records for selected Item and from Valuation Date.
procedure DeleteBuffer(ItemNo: Code[20], FromValuationDate: Date)
Parameters
| Name | Type | Description |
|---|---|---|
| ItemNo | Code[20] |
Set Item No. fo filtering buffer records. Use blank value to skip this filter. |
| FromValuationDate | Date |
Set the filter from Valuation Date. Use 0D to skip this filter. |
IsEntriesAdjusted
The method check is all ledger entries have been adjusted for selected item and before ending date.
procedure IsEntriesAdjusted(ItemNo: Code[20], EndingDate: Date): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| ItemNo | Code[20] |
Set Item No. fo filtering buffer records. Use blank value to skip this filter. |
| EndingDate | Date |
Set the filter before Ending Date. Use 0D to skip this filter. |
Returns
| Type | Description |
|---|---|
| Boolean |
LockBuffer
The method lock average cost adjustment buffer table.
procedure LockBuffer()
UpdateValuationDate
The method update average cost adjustment buffer table based on data in value entry.
procedure UpdateValuationDate(ValueEntry: Record "Value Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| ValueEntry | Table Microsoft.Inventory.Ledger."Value Entry" |
Set parameter Value Entry with data for update. |