Hi Everyone,
I am looking at an 'A/P Reserve Invoice' in Business One, which provides the information below -
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 -
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