Posting Routine problem

aliennav
Member Posts: 449
Guys!
There's a problem.
I have added a field(Decimal) in the sales line table.While making sales order I am inserting some thing in that field.Now I want that field to get reflected in G/L Entry.
Any suggesstions?
Early response is solicited.
Thanx in advance
There's a problem.
I have added a field(Decimal) in the sales line table.While making sales order I am inserting some thing in that field.Now I want that field to get reflected in G/L Entry.
Any suggesstions?
Early response is solicited.
Thanx in advance
0
Comments
-
Create the same field in Gen. Jnl. Line and then search for "Post sales and VAT to G/L entries from posting buffer" description in Sales-Post codeunit. You will see assignments from Sales Header to Gen. Jnl. Line. You can add your assignment there.Ufuk Asci
Pargesoft0 -
And you also need to create the same field in T17.
And in codeunit 12, you need to transfer the field from T83:"G/L Journal Line" to T17:"G/L Entry".Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:And you also need to create the same field in T17.
And in codeunit 12, you need to transfer the field from T83:"G/L Journal Line" to T17:"G/L Entry".
Can u please explain the last step.
ie. How to transfer the field.Where should be the code written??(And whatcode)0 -
ufuk wrote:aliennav wrote:Can u please explain the last step.
ie. How to transfer the field.Where should be the code written??(And whatcode)
On InitGLEntry
GLEntry.YourField := GenJnlLine.YourField;Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
if you have only one sales line, sound ok to record it in g/l entry.
But in first place why g/l entry?
say if you have 10 sales lines, how do you record these in g/l entry? and why?Uday0 -
ufuk wrote:Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
You'll definately need to add the field (I'd suggest with the same field number) to all tables involved. Then instead of directly in the posting routines I would add the actual transfer to the "Transfer Custom Fields" codeunit, which is created specifically for this purpose. There are functions in there to transfer fields from journal to ledger, from one ledger to another, etc.
It looks like this is a US localization though, so I don't know if it is available elsewhere.0 -
pruday wrote:if you have only one sales line, sound ok to record it in g/l entry.
But in first place why g/l entry?
say if you have 10 sales lines, how do you record these in g/l entry? and why?
If you want to sum line amounts , I think basically you can add a flowfield to SalesHeader which sums the sales lines amount. Then you can transfer this amount to G/L Entry in CU12.Ufuk Asci
Pargesoft0 -
kriki wrote:And you also need to create the same field in T17.
And in codeunit 12, you need to transfer the field from T83:"G/L Journal Line" to T17:"G/L Entry".0 -
aliennav wrote:kriki wrote:And you also need to create the same field in T17.
And in codeunit 12, you need to transfer the field from T83:"G/L Journal Line" to T17:"G/L Entry".DenSter wrote:You'll definately need to add the field (I'd suggest with the same field number) to all tables involved. Then instead of directly in the posting routines I would add the actual transfer to the "Transfer Custom Fields" codeunit, which is created specifically for this purpose. There are functions in there to transfer fields from journal to ledger, from one ledger to another, etc.
It looks like this is a US localization though, so I don't know if it is available elsewhere.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
guys I acheived it but now I am getting the value only in the credit line(entry) and not in the debit entry.Like other values such as description etc.I want to get this value(added one) in both the lines.
Till now I have added the code in trigger named "InitGLEntry(GLAccNo : Code[20];Amount : Decimal;AmountAddCurr : Decimal;UseAmountAddCurr : Boolean;SystemCreatedEntry : Boolean)"
where this code ws written."
GLEntry.INIT;
GLEntry."Posting Date" := GenJnlLine."Posting Date";
GLEntry."Document Date" := GenJnlLine."Document Date";
GLEntry."Document Type" := GenJnlLine."Document Type";
Now what to do for debit entry??0 -
kriki wrote:aliennav wrote:Now what to do for debit entry??
I didn't mean purchase entry.
When there is a transaction ,2 entries go in G/L Entry table.1 for debit ,other for credit in 2 different accounts.I am talking bout that 2nd transaction(Debit one)0 -
Search for "GLEntry.INSERT;" and put your code just before the statement.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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