Posting new fields

Roman
Member Posts: 4
Hi everybody,
I have the Problem that I need new fields witch should be passed by the posting-routine, from the Sales Line to the Cust. Ledger Entry. So can me anybody tells how to solve thie Problem?
with best Regards
Roman Klimaschewski
I have the Problem that I need new fields witch should be passed by the posting-routine, from the Sales Line to the Cust. Ledger Entry. So can me anybody tells how to solve thie Problem?
with best Regards
Roman Klimaschewski
0
Comments
-
It is not so easy. Why? Because there is just one Customer Ledger Entry for many Sales Lines... :-) If you want to transfer the value from Sales header, it is easier... ;-)0
-
hi,
using the Header instead of the Line should be also posible... but what I have to do in this example?
with best Regards
Roman Klimaschewski0 -
Check out Codeunit 10201, Transfer Custom Fields. You may be able to work within the confines of standard Navision without having to do too much modification. I have used this, and while it took me a little bit of time to figure out what was going on, it was certainly one of the quickest one-line modifications that I have ever had to do.There is no data, only bool!0
-
Sorry.... not Worldwide, I think. I don't have CDU 10201 and the number is on state customization level.I don't envy anybody who caught up his aim. I travel gladly.0
-
Codeunit 10201 is just local US object... not accessible on whole world... :-)0
-
This is quite a simple process, 4 steps
1. Add your field to Table 81 "Gen. Journal Line"
2. Add your field to Table 21 "Cust. Ledger Entry"
3. Codeunit 80, and find this text
// Post customer entry
Window.UPDATE(4,1);
at the end of this section about 20 lines add your field
GenJnlLine."Source Code" := SrcCode;
GenJnlLine."Posting No. Series" := "Posting No. Series";
// REF INITIALS DATE
// -
GenJnlLine."My New Field" := "My New Field"; from the Sales Header one value per order
// +
TempJnlLineDim.DELETEALL;
TempDocDim.RESET;
4. Final bit move it to the Ledgers in Codeunit 12 Gen. Jnl.-Post Line
Look for function PostCust() and add your code again Here
CustLedgEntry."Payment Tolerance Amount" :=
ROUND(Currency."Payment Tolerance %" * Amount / 100,Currency."Amount Rounding Precision");
// REF INITIALS DATE
// -
CustLedgEntry."My New Field" := "My New Field"; from the Gen. Journal Line
// +
END;
END;
DtldCVLedgEntryBuf.DELETEALL;
DtldCVLedgEntryBuf.INIT;
See its not that hard, we transfer the field from sales header to general journal line and then to the customer ledger entry. :whistle:
This is the same scenario for purchases Items, Jobs, Resources ect:Analyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0 -
Yes, transfering fields from header easy... :-)0
-
Thanks alot this solved my Problem0
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