SupplierOrderItemEntityLifecycleSubscriber

Extends \Shopware\Plugins\ViisonCommon\Classes\Subscribers\Base

package

Default

Methods

getSubscribedEvents

getSubscribedEvents() : array
static

Response

array

Checks the updated supplier order for a changed 'status' and, if the status has changed, updates the 'pickwareIncomingStock' of all order articles.

onSupplierOrderChange(\Enlight_Event_EventArgs $args) 

Arguments

$args

\Enlight_Event_EventArgs

Updates the 'pickwareIncomingStock' attribute of the article detail that is associated with the supplier order item, that is persisted/updated/removed. When the order item is updated, the incoming stock will only be re-calculated, if the 'orderedQuantity' or 'deliveredQuantity' fields were changed. Furthermore the incoming stock is only updates, if the persists/updated/removed supplier order item is associated with a supplier order.

onSupplierOrderItemChange(\Enlight_Event_EventArgs $args) 

Arguments

$args

\Enlight_Event_EventArgs