Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am writing some code that needs to be fired when an order line is added or updated (qty). I see you have "OrderLineAdded" and "OrderLineUpdated" ...
For OrderLineAdded, the comment says
"This event is fired when an order line has just been added to the order.The orderline may not be new. In that case the quantity has been changed."
Does this mean I could use the OrderLineAdded event for both situations - new order line added AND existing order line quantity changed?
Or is it best to fire my code from both events?
Hi Gordon
OrderLineAdded is executed when a new order line is added to the order. And OrderLineUpdated is when an existing one is updated with maybe properties, quantity etc. So you need to use both events to be covered depending on your case.
Kind regardsAnders
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Event Model questions
I am writing some code that needs to be fired when an order line is added or updated (qty). I see you have "OrderLineAdded" and "OrderLineUpdated" ...
For OrderLineAdded, the comment says
"This event is fired when an order line has just been added to the order.
The orderline may not be new. In that case the quantity has been changed."
Does this mean I could use the OrderLineAdded event for both situations - new order line added AND existing order line quantity changed?
Or is it best to fire my code from both events?
Hi Gordon
OrderLineAdded is executed when a new order line is added to the order. And OrderLineUpdated is when an existing one is updated with maybe properties, quantity etc. So you need to use both events to be covered depending on your case.
Kind regards
Anders
is working on a reply...