Event issue when inserting additional saleslines using code
mo_x
Member Posts: 50
Hi,
i have a small issue regarding events. I'm inserting additional saleslines using event onModify. For example, when the line is modified several lines is added. That part works correct. But the issue is when posting. When i specify amount on "qty to-ship" and post it as "shipping", the "quantity shipped" field on salesline becomes empty afterwards. Hope the issue is understandable.
i have a small issue regarding events. I'm inserting additional saleslines using event onModify. For example, when the line is modified several lines is added. That part works correct. But the issue is when posting. When i specify amount on "qty to-ship" and post it as "shipping", the "quantity shipped" field on salesline becomes empty afterwards. Hope the issue is understandable.
0
Answers
-
I have worked on an issue exactly like this but it is working fine. Can you confirm that after posting as "ship" does an item ledger entry or sales shipment document is created ?0
-
And does quantity shipped field becomes empty for all lines or just in the lines that you have inserted using event.0
-
Hey bilarai,
It only becomes empty for the lines that i inserted with events. Bu posted sales shipment shows the correct value, only on sales order it becomes empty.0 -
Hey juhl,
The insert part works perfectly, but when modifying the field qty to ship, the quantity shipped becomes empty. I think the problem is that i'm inserting new line using onafterModify event. And that resets the fields.0 -
I don't think so, from what I can read.
Inserting the line based on a condition, has nothing to do with posting.
That's why you need to compare the lines by running the table, to see all fields.
Something must be different in the lines with error.
The system can't tell the difference on how the lines was created, so it's not an event issue, but data related.
Unless you have custom code on the posting as well?Follow me on my blog juhl.blog0
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
- 329 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