Transfer Field from Sales Header to Invoice Header
idonav
Member Posts: 31
I would like to transfer a field from Sales Header to Sales Invoice Header.
The field I want to transfer is field no "5794" - my license does not allow me to create this field in Invoice Header, so I can not use the transferfields function which would do it automatically.
Where should I write the code (in the cleanest way) to transfer this field to a field no in the 50000 series in sales invoice header?
The field I want to transfer is field no "5794" - my license does not allow me to create this field in Invoice Header, so I can not use the transferfields function which would do it automatically.
Where should I write the code (in the cleanest way) to transfer this field to a field no in the 50000 series in sales invoice header?
0
Best Answer
-
Look into Codeunit 80, function InsertInvoiceHeader. You can add your lines copying the field after TRANSFERFIELDS there.Slawek Guzek - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;5
Answers
-
Look into Codeunit 80, function InsertInvoiceHeader. You can add your lines copying the field after TRANSFERFIELDS there.Slawek Guzek - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;5 -
Hi
What Slawek_Guzek suggest is totally correct.
But just in case I want to remind you that there is a reason why Sales Invoice Header does not have 5794, when you use get shipment line in Sales invoice, there is a possibility that one sales header can have multiple 5794(Shipping Agent Service Code), in that case, you should add (Shipping Agent Service Code) in Sales Invoice Line instead of Sales Invoice Header.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

