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.
0
Answers
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.
Have you compared all fields of a manual line and a code inserted line?
But a breakpoint on your events and see if they get hit unexpectedly during posting.
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.
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?