Hi I have a quick question for development.
On the Purchase Order Page on within the Reopen button I want to basically search for the Warehouse Receipt Line for the production order. These are filtered by

(I know the SETRANGE Used for the Source No. comes from the Purchase Header No. but I am unsure on where the other two actually come from. )
I then need to say If there is a Warehouse Receipt Line Present, prompt a confirm.
If the Confirm returns yes then find the Warehouse Receipt Line and the Header relating to it and Delete it. I've used this code so far but its missing a few lines. If anyone can direct me on where to go from here that would be appreciated!

If I have missed information out please ask!
Thanks
Answers
The source subtype for a purchase order is always 1 (this is the document type of the purchase line, Order = 1).
I hope this was what you where asking for.
Cheers!
My Dynamics NAV Blog: olofsimren.com
My Google Plus Profile
Naviona - My Dynamics NAV Partner
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!