"Qty. to Receive" and "Qty. to Invoice"

navuser1
Member Posts: 1,334
Hi All,
I’m working on Nav 5.0 SP1 IN (Native).
The Fields “Qty. to Receive” and “Qty. to Invoice” of the SO/PO Document gets populate automatically at time of entering the amount at the “Quantity” Field.
But our client does not satisfy with this.They have individual users to enter data into this fields.
To do this I have to modify some code. But I don’t to modify the Base Code (against Navision principle) in the table Level. To do this I add some code at Form Level (Quantity - OnValidate ()) and (Location Code - OnValidate ()).
It’s working.
But after the posting the SO/PO Document the Same two fields gets automatically populate again.
Where I have to check for this?
If I’m working against Navision than suggest me.. :roll:
I’m working on Nav 5.0 SP1 IN (Native).
The Fields “Qty. to Receive” and “Qty. to Invoice” of the SO/PO Document gets populate automatically at time of entering the amount at the “Quantity” Field.
But our client does not satisfy with this.They have individual users to enter data into this fields.
To do this I have to modify some code. But I don’t to modify the Base Code (against Navision principle) in the table Level. To do this I add some code at Form Level (Quantity - OnValidate ()) and (Location Code - OnValidate ()).
It’s working.
But after the posting the SO/PO Document the Same two fields gets automatically populate again.
Where I have to check for this?
If I’m working against Navision than suggest me.. :roll:
Now or Never
0
Comments
-
Check the Sales & Receivables Setup, it has a field to initalize Qty. to Ship fields.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Alex Chow wrote:Check the Sales & Receivables Setup, it has a field to initalize Qty. to Ship fields.
It's working at time of entering the value in the Quantity field.
But after selecting the Location Code the "Qty. to Receive" gets automatically
populated.Now or Never0 -
You should not put code on Forms that modifies data.David Singleton0
-
David Singleton wrote:You should not put code on Forms that modifies data.
Ok David
Thanks for your suggestion.Now or Never0 -
start the debugger or Codecoverage to see where the Qty fields are filled ;-)Do you make it right, it works too!0
-
Alex Chow wrote:Check the Sales & Receivables Setup, it has a field to initalize Qty. to Ship fields.
This check working for the Quantity field.
But When we select the Location code it is not working.
What is the solution for that ??
Can I put some code or Call the same funtion-SetDefaultQuantity
at the end of the Location Code - OnValidate() trigger ??Now or Never0 -
navuser1 wrote:It will take lots of time
One of the reasons why you can't make it work right is that you put the code on the form, where it doesn't belong. I hope you are taking David's comment seriously, and that you removed the code from the form. This type of code belongs in the table.0 -
DenSter wrote:One of the reasons why you can't make it work right is that you put the code on the form, where it doesn't belong. I hope you are taking David's comment seriously, and that you removed the code from the form. This type of code belongs in the table.
Yes DenSter. I follow the David's comments.
It's working fine.
Thanks to all . =D>Now or Never0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions