Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8894

Unexpected results for LineNum when querying an A/P Reserve Invoice

$
0
0

Hi Everyone,

 

I am looking at an 'A/P Reserve Invoice' in Business One, which provides the information below -

 

Capture.JPG

 

When I run the query below I am seeing correct results for the Item, and Quantity, but not for the Row #.

 

SELECT
OPCH.DocNum
, PCH1.LineNum
, PCH1.ItemCode
, PCH1.Quantity
FROM PCH1
LEFT JOIN OPCH ON OPCH.DocEntry = PCH1.DocEntry
WHERE ItemCode = 'EG615.402' AND OPCH.isIns = 'Y'

 

Here is a screen shot of the results that are being returned -

 

Capture.JPG

 

I am under the impression that the isIns flag of the OPCH table dictates whether or not something is an 'A/P Reserve Invoice', as opposed to a standard 'A/P Invoice'.

 

At any rate any help with working out why the LineNum returned by my query is not even remotely similar to that shown in Business One will be greatly appreciated.

 

Kind Regards,

 

David


Viewing all articles
Browse latest Browse all 8894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>