How to link Sales Invoice Header and Sales Shipment Header

nav_student
Member Posts: 175
Hi guys i create a Report with this format
Data Items
Customer
Sales Invoice Header
On the section of Sales Invoice Header i want to connect informattion of the Sales Shipment Header.
Can you help me?
Thanks in advance.
Data Items
Customer
Sales Invoice Header
On the section of Sales Invoice Header i want to connect informattion of the Sales Shipment Header.
Can you help me?
Thanks in advance.
0
Comments
-
If you do a search on this forum, there has been some good discussion on how to do this.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
for a student there doesn't seem to be alot of studying? 8)
Go to help - C/Side Ref Guide - Search "GET"0 -
I use the Sales Invoice Line to see the relations
Sales Invoice Header Value Entry Item Ledger Entry SalesShipment Header No.<------------------->Doc No. ItemLedger Entry No.<------> Entry No. Document No.<------------>No.
So i Ident the tables according to this relationshipSales Invoice Header Value Entry Item Ledger Entry Sales Shipment Header
Do you think that is the best way?0 -
I wouldn't do as dataItem in report but in Code.0
-
nav_student wrote:
Do you think that is the best way?
Shouldn't you ask the client exactly what they want? if they show you exactly how they want to see the data, it will be simple to then program.David Singleton0 -
Ara3n how do you do on code?
By doing several GET´s?0 -
well get is used if you know the PK.
In your case to get the value entryvalueentry.setrange("Document No.","Sales Invoice Header"."No."); valueentry.setrange("Posting Date","Sales Invoice Header"."Posting date"); if valueentry.findfirst then begin ItemLedgerEntry.get(valueentry."Item Ledger Entry No."); SalesShipmentHeader.get(ItemLedgerEntry."Document No."); end;
0 -
ara3n, thank you for this example!
Best Regards!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