a query
vijay_sr261982
Member Posts: 39
Hai all,
I had a query... In the master card there is a feild called "Re Order Quantity".
condition is if reorderqty is greater than or equal to inventory then imediately system should
pop up a message "Item shd be ordered". Suppose if inventory is > than system should automatically
create a PO.
i had tried by writing the coding in table level (in Item -27) under (Inventory - on validate).
coz, it shd get check when accessing inventory in other forms.
CODING :
ReorderLevel as decimal
reorderqty as decimal
CurrentQty as decimal
ReorderLevel := "Reorder Point";
reorderqty := "Reorder Quantity";
CurrentQty := Inventory;
IF Inventory <= ReorderLevel THEN MESSAGE('Item should be ordered...!!!');
But it not throwing message when ever inventory is less than Reorderqty.
Kimdly let me know am in the right way.
](*,) ](*,)
I had a query... In the master card there is a feild called "Re Order Quantity".
condition is if reorderqty is greater than or equal to inventory then imediately system should
pop up a message "Item shd be ordered". Suppose if inventory is > than system should automatically
create a PO.
i had tried by writing the coding in table level (in Item -27) under (Inventory - on validate).
coz, it shd get check when accessing inventory in other forms.
CODING :
ReorderLevel as decimal
reorderqty as decimal
CurrentQty as decimal
ReorderLevel := "Reorder Point";
reorderqty := "Reorder Quantity";
CurrentQty := Inventory;
IF Inventory <= ReorderLevel THEN MESSAGE('Item should be ordered...!!!');
But it not throwing message when ever inventory is less than Reorderqty.
Kimdly let me know am in the right way.
](*,) ](*,)
0
Comments
-
This should be a report and not a pop-up, like its done in req. worksheet, calculate plan. There you will also get substitute items etc for free.0
-
u must try business notificationsNrapendra Singh
(Sr. Tech. Consultant)
Dataman Computer Systems (P) Ltd.
web :www.datamannet.com
mail :nrapendra@datamannet.com0 -
vijay_sr261982 wrote:i had tried by writing the coding in table level (in Item -27) under (Inventory - on validate).
coz, it shd get check when accessing inventory in other forms.
Inventory is a flowfield. There is no advantage to put code behind because user never validates this field ...
As Mbad said, this field is used by Req. Worksheet, that's the engine of the reordering policy in Nav.0 -
Your request can be done, but you must a bit change your logic:
1. If you want to pop up message during browse cards, you should move your code to OnAfterGetCurrentRecord trigger on form.
2. If you don't want to pop up message during browse cards, you should create item on some existing button (or create new one) and move your code to OnPush trigger on it.
3. You must invoke CALCFIELDS(Inventory) before you want to use their value.0 -
You should use a report which should display all the items which have inventory less than Reorder Qty.
Though I would prefer using Req. Worksheet and Calculate Plan. You can create the purchase order directly from there.CA Sandeep Singla
http://ssdynamics.co.in0 -
Thanks for all of u..........
As per ur sugessions now am am doing this by creating a report.
let me describe actual requirement form my client.
1. Auto generation of POs of those items, which crosses reorder level.
System should check for those items ,in which that items are set to make PO auto.
Pls give some much sugesstions (to which i have to refer). (eg. Codeunit, Report).0 -
We do this sort-of, I took the report #699 that the req. worksheet uses, and modified it so that the dates are filled in as today + 20 days that way is orders.
Orderdate := today + 20 ;
todate := today + 20 ;
currTemplateName := 'REQ' ;
currWorksheetName := 'SF'; just a worksheet I have set up for this
this report is then ran from the job scheduler every night, so in the morning, the purchasing guy comes in opens the req worksheet named SF and he has everything ready to review, he reviews the worksheet and then does the "Carry out action message" which creats all the PO's.
it is simple and works well, with only a report required and no special programing
If you want it to run the carry out action message, you could make a modification to report 493, to defualt:
CurrTemplateName := 'REQ';
CurrWorksheetName := 'SF';
you could then also have this run after the first report in the job scheduler and it would all be automatic0
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