get a field from G/L Register to show up in G/L Entry...

demi222
Member Posts: 131
can anyone help?
I want whatever the "No." field of the G/L Register table is to show up in a newly added field in the G/L Entry table...
can anyone help me get started at least?
I want whatever the "No." field of the G/L Register table is to show up in a newly added field in the G/L Entry table...
can anyone help me get started at least?
0
Comments
-
Add a field "G/L Register No." to the G/L Entry Table and in
the end of Function "InitGLEntry" of CU 12 Gen. Jnl.-Post Line add :
GLEntry."No. Series" := GenJnlLine."Posting No. Series";
GLEntry."System-Created Entry" := SystemCreatedEntry;
GLEntry."Prior-Year Entry" := GLEntry."Posting Date" < FiscalYearStartDate;
// ---
GLEntry."G/L Register No." := GLReg."No.";
// +++
GLCalcAddCurrency(AmountAddCurr,UseAmountAddCurr);
Kai Kowalewski0 -
Thank you so much! That was easier than I had expected!! I was searching in all the wrong codeunits!!
Could I ask you one more thing? Now that I have made the change, and everything works great... how can I update all the records that were done before this change, so that they can get the number also?0 -
Create a report with a DataItem for Table 45 G/L Register.
Create a record variable GLEntry for Table 17 G/L Entry
In the OnAfterGetRecord write :
GLEntry.SETRANGE("Entry No.","From Entry No.","To Entry No.");
GLEntry.MODIFYALL("G/L Register No.","G/L Register"."No.");
You can set a filter on the G/L Register."No." to test it. It may take very long to run.Kai Kowalewski0 -
Thanks a lot... I'll try it out!
I appreciate your help!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions