KVSFCYPostInventoryCostToGL#
Procedures#
InitializeRequest(Option, Code[20], Boolean) :#
Summary: Initializes the request parameters for posting inventory cost to the general ledger. This procedure configures the posting method, document number, and posting mode that will be used when running the inventory cost posting process. It allows programmatic setup of the report parameters without user interaction through the request page.
procedure InitializeRequest(NewPostMethod: Option; NewDocNo: Code[20]; NewPost: Boolean):
Parameters:
NewPostMethod: The posting method option (per Posting Group or per Entry) that determines the granularity of general ledger entries. Per Posting Group creates summary entries, while per Entry creates detailed entries for each value entry.NewDocNo: The document number to be assigned to the general ledger entries created during posting. Required when posting per Posting Group, should be empty when posting per Entry.NewPost: Indicates whether to actually post the inventory costs to the general ledger. When true, performs actual posting; when false, runs in test mode to preview what would be posted.
Events#
OnAfterOnPreDataItem(Record Post Value Entry to G/L, Text) :#
Summary: Event after OnPreDataItem for posting value entry to G/L.
[IntegrationEvent(false, false)]
local procedure OnAfterOnPreDataItem(var PostValueEntryToGL: Record "Post Value Entry to G/L"; CompanyName: Text):
[EventSubscriber(ObjectType::Report, Report::"KVSFCYPostInventoryCostToGL", 'OnAfterOnPreDataItem', '', false, false)]
local procedure DoSomethingOnAfterOnPreDataItem(var PostValueEntryToGL: Record "Post Value Entry to G/L"; CompanyName: Text)
begin
end;
Parameters:
PostValueEntryToGL: Post value entry to G/L record.CompanyName: Company name.
OnBeforePreReport(Record Item, Record Value Entry, Record Post Value Entry to G/L) :#
Summary: Event before PreReport for posting inventory cost to G/L.
[IntegrationEvent(true, false)]
local procedure OnBeforePreReport(var Item: Record "Item"; var ItemValueEntry: Record "Value Entry"; var PostValueEntryToGL: Record "Post Value Entry to G/L"):
[EventSubscriber(ObjectType::Report, Report::"KVSFCYPostInventoryCostToGL", 'OnBeforePreReport', '', false, false)]
local procedure DoSomethingOnBeforePreReport(var Item: Record "Item"; var ItemValueEntry: Record "Value Entry"; var PostValueEntryToGL: Record "Post Value Entry to G/L")
begin
end;
Parameters:
Item: Item record.ItemValueEntry: Item value entry record.PostValueEntryToGL: Post value entry to G/L record.