Relationships between tables Purch_ Inv_ + Sales Inv

mazheika
Member Posts: 5
in SQL General
Please, help me. I need information on the sales invoice regarding quantity, price, etc., but in the report, I want to see the price at which the item was purchased, the currency used, and the purchase date.
How can I track this or combine sales invoice and purchase invoice?
How can I track this or combine sales invoice and purchase invoice?
0
Answers
-
Unless you work with drop shipment or special order, you can use Item Ledger Entry and Item Application Entry tables in order to figure this out. This depends on the costing method used by the item.
As an alternative, you can use item tracking. Assing a lot on receipt and record the lot again on shipment. Or you can use Costing Methode ::Specific to establish a link.
If you used any transfers between locations between purchase and sales, anything that relies on Item Application Entry migth get cumbersome very fast.0 -
Unless you work with drop shipment or special order, you can use Item Ledger Entry and Item Application Entry tables in order to figure this out. This depends on the costing method used by the item.
As an alternative, you can use item tracking. Assing a lot on receipt and record the lot again on shipment. Or you can use Costing Methode ::Specific to establish a link.
If you used any transfers between locations between purchase and sales, anything that relies on Item Application Entry migth get cumbersome very fast.
I do not understand how to complete this chain here and go to the purchase invoice
if you help, I will be grateful
SELECT *
FROM [Training$Sales Invoice Header$437] AS sih
LEFT JOIN [Training$Sales Invoice Line$437] AS sil ON sil.[Document No_] = sih.[No_]
JOIN [Training$Value Entry$437] AS ve ON ve.[Document No_] = sih.[No_] AND sil.[Line No_] = ve.[Document Line No_]
JOIN [dbo].[Training$Item Ledger Entry$437] AS ile ON ve.[Item Ledger Entry No_] = ile.[Entry No_]
WHERE ve.[Source Code] != 'INVTADJMT'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