Skip to main content

Notifications

Microsoft Dynamics GP forum
Unanswered

Issue: create a relationship between the table (IV30400) and the view (InventoryTransactions).

Posted on by 20
Hi 
Please help me create a relationship between the table (IV30400) and the view (InventoryTransactions).
 
IV30400Serial and Lot Number History (original table Dynamic GP)
InventoryTransactions :  Inventory Transactions (original view Dynamic GP)
 
The Issue I have is that I cannot retrieve the opening balance accurately based on the lot number.
 
Is there a correct relationship between (IV30400) and (InventoryTransactions ) so that the results are correct?
 
For those with experience please help
-----------------------------------------------------------------
I've used these but have had issues with them :

 SELECT   it.[item number] ,
          it.[TRX Location] ,
         isnull( sum(lt.[SERLTQTY]) , 0 )AS Qty 
 FROM     InventoryTransactions it WITH (NOLOCK) 
                LEFT OUTER JOIN IV30400 lt WITH (NOLOCK) ON lt.DOCNUMBR = it.[Document Number] and lt.LNSEQNBR = it.[Line SEQ Number]
 WHERE    [Document Type] <> 'Transfer'
          AND  it.[item number] BETWEEN  @p_cSItemNumber AND @p_cEItemNumber
          AND  [Document Date]  < @p_dEDate
          AND (lt.SERLTNUM = @L_cLotNumber or rtrim(@L_cLotNumber) = '')   
 GROUP BY it.[item number] ,it.[TRX Location]
Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,888 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,247 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans