Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gordon Saxby 1459 posts 1880 karma points
    Jun 08, 2012 @ 16:15
    Gordon Saxby
    0

    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?

     

  • Anders Burla 2560 posts 8256 karma points
    Jun 11, 2012 @ 08:52
    Anders Burla
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft