How Don't let Inventory be negative?
Nuno_Pereira
Member Posts: 31
How I configure navision to don't let Inventory be negative? Please It's Urgent.
0
Comments
-
In CU 22 add the following line
IF (((ItemLedgEntry."Entry Type" IN [ItemLedgEntry."Entry Type"::"Negative Adjmt.", ItemLedgEntry."Entry Type"::Consumption]) AND ("Source Type" = "Source Type"::Item)) OR (ItemLedgEntry."Entry Type" = ItemLedgEntry."Entry Type"::Transfer)) AND (ItemLedgEntry.Quantity < 0) THEN ERROR(Text005,ItemLedgEntry."Item No."); //Start 001 if (ItemLedgEntry.Quantity < 0) then ERROR(Text005,ItemLedgEntry."Item No."); //End 0010 -
I think that situation is not so easy as ara3n wrote, because:
1. Users can post entries with date preceding last posted entries and inventory shoud not be negative in any date
2. Revaluation (adjustation) and hours accounting from production module entries deals with quantity too but doesn't cause inventory changes0 -
lubost. Just try it. It works. It's that easy.
1. You first issue. Item application is not date sensetive, Application is done in fifo, unless you have serial or lot no assigned. At which case you'll get Item tracking error that the item is not in inventory.
2. Second issue. Reevaluation does not create any Item Ledger Entry. The change in code errors out when item ledger is inserted.
If you look at the code. It already errors out if let's say you try to post a consumption journal. My code changes basically applies it to any entry type.
I've done this for a client a year ago. Haven't had any issues, provided when you implement this change that all your inventory is positive.0 -
Yes, this small change is working, I can confirm that. We are using it nearly for all customers... :-) you can easilly modify it to just not let users to sell into negative nos., or block it in generally...0
-
I don't get it!
lubost has a point ... users can post entries with date preceding last posted entries! I mean if I sell in January an item that I produced in February then it's still wrong and further development is needed to prevent that! This small change is correct only if the users enter information in real-time!0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 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

