Auto selection of item from that lotNo,which has expiration date near during creating sales order.

ManiNav
Member Posts: 120
Hi Everyone,
I am creating sales order, so i need to select in sales line item from the LotNo which will expire first[ie. which LotNo 'expiration date is near']. It should be automatic. How can i proceed this; whether i should try with codeunit or should create a button in sales order page.
eg. ItemNo LotNo Expiration-Date Quantity
100 lot1 7/2/2021 10
100 lot2 7/1/2021 20
So, if i am selecting in sales line, itemno:100, with quantity:15; then it should take automatic from lotno: lot2, which will expire first.
[if i need 25, then first it should take 20 quantity from lot2 and 5 quantity from lot1]
please guide me to proceed.
Thanks in advance,
Mani.
I am creating sales order, so i need to select in sales line item from the LotNo which will expire first[ie. which LotNo 'expiration date is near']. It should be automatic. How can i proceed this; whether i should try with codeunit or should create a button in sales order page.
eg. ItemNo LotNo Expiration-Date Quantity
100 lot1 7/2/2021 10
100 lot2 7/1/2021 20
So, if i am selecting in sales line, itemno:100, with quantity:15; then it should take automatic from lotno: lot2, which will expire first.
[if i need 25, then first it should take 20 quantity from lot2 and 5 quantity from lot1]
please guide me to proceed.
Thanks in advance,
Mani.
0
Answers
-
This required quite lot of code lines and you have to use item tracking line page to write the code. it is looks simple but you need to write some good coding lines together with some RND.0
-
It's possible if you are using warehousing, see this article which describes how to set up FEFO (first expired first out)...
https://docs.microsoft.com/en-gb/dynamics-nav-app/warehouse-picking-by-fefo0
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