Warehouse Receipt
LewisTioga
Member Posts: 40
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
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
0
Best Answer
-
[Topic moved from 'Navision DOS' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!5
Answers
-
The source type for a purchase line is always 39 (this is the table number of the purchase line table).
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!Olof Simren - Microsoft Dynamics NAV Expert | Founder of Naviona
My Dynamics NAV Blog: olofsimren.com
My Google Plus Profile
Naviona - My Dynamics NAV Partner0 -
[Topic moved from 'Navision DOS' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!5
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
