Shipment no. in invoice line - how to?
arcull
Member Posts: 191
Hi everyone. I saw that when using "Get Shipment Lines" navision populates fileds "Shipment No." and "Shipment Line No." in sales line of the invoice document. However when you post the invoice, these two fields are not in posted invoice line anymore. So my idea was to copy those two fields from sales line to sales invoice line and the data should get there via trensfer fields method. Did anyone have situation like this? Would I hamper original system some how with this custumization, or is it pretty save to do it this way? Thanks for your suggestions.
0
Comments
-
arcull wrote:So my idea was to copy those two fields from sales line to sales invoice line and the data should get there via trensfer fields method.
I do notice that sales lines fields 63 & 64 Shipment No. & Shipment Line No do not exist in the Sales Invoice Line.
Don't Know why, but if you did create them using the same Number, Name & Size in the sales invoice line table that the field would transfer without any additional code needed.0 -
Problem is that you can't create fields with ID's lower than 50000 in standard objects. In this case, you'll have to add some fields in the range that you can develop in, and change the code that transfers the field to the posted document.Savatage wrote:arcull wrote:So my idea was to copy those two fields from sales line to sales invoice line and the data should get there via trensfer fields method.
I do notice that sales lines fields 63 & 64 Shipment No. & Shipment Line No do not exist in the Sales Invoice Line.
Don't Know why, but if you did create them using the same Number, Name & Size in the sales invoice line table that the field would transfer without any additional code needed.
In CU80, search for the following 2 lines of code ;SalesInvLine.INIT; SalesInvLine.TRANSFERFIELDS(TempSalesLine);
Add copying the Shipment field in that block0 -
How about upon filling the standard fields 63 & 64 on validate couldn't you simply transfer the values to your new fields at that time? :-k
OnValidate()
NewShipmentNoField := "Shipment No."
therefore filling the nwe fields then create the same fields in the sales invoice line table to have it transfer over.0 -
Hi,
Table 113 Sales Invoice line has fields 63 and 64 from version 4.0 SP3 onwards on W1, GB and most of the localisations I have looked at.
So it moght be worth looking at your version or a retro fit from one of these versions as this is a static/history table0 -
Thanks for suggestions guys
0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 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