hello
I want to flow data from sales header to gl entry. I have created field on sales header and gl entry. So as i post sales order i want that data to be flow to gl entry. So how can we do that in busiuness central.
hello
I want to flow data from sales header to gl entry. I have created field on sales header and gl entry. So as i post sales order i want that data to be flow to gl entry. So how can we do that in busiuness central.
Great, Good to know that your problem is solved.
Thanks Nitin,
It worked
Hi,
Can you please change your code as per below?
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Gen. Jnl.-Post Line", 'OnAfterInitGLEntry', '', true, true)]
local procedure OnAfterInitGLEntry(var GLEntry: Record "G/L Entry"; GenJournalLine: Record "Gen. Journal Line"; Amount: Decimal; AddCurrAmount: Decimal; UseAddCurrAmount: Boolean; var CurrencyFactor: Decimal)
begin
glEntry."Nick Name":=GenJnlLine."Nick Name";
end;
[EventSubscriber(ObjectType::table, database::"Gen. Journal Line", 'OnAfterCopyGenJnlLineFromSalesHeader', '', true, true)]
local procedure OnAfterCopyGenJnlLineFromSalesHeader(SalesHeader: Record "Sales Header"; var GenJournalLine: Record "Gen. Journal Line")
begin
GenJournalLine."Nick Name":=SalesHeader."Practice Name";
end;
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,558 Super User 2024 Season 2
Martin Dráb 228,645 Most Valuable Professional
nmaenpaa 101,148