order admin

This commit is contained in:
Etienne Roudeix
2013-09-25 15:55:48 +02:00
parent d967242a59
commit 1ffcaa7dd4
6 changed files with 120 additions and 71 deletions

View File

@@ -36,6 +36,7 @@ class OrderEvent extends ActionEvent
protected $postage = null;
protected $ref = null;
protected $status = null;
protected $deliveryRef = null;
/**
* @param Order $order
@@ -117,6 +118,14 @@ class OrderEvent extends ActionEvent
$this->status = $status;
}
/**
* @param $deliveryRef
*/
public function setDeliveryRef($deliveryRef)
{
$this->deliveryRef = $deliveryRef;
}
/**
* @return null|Order
*/
@@ -188,4 +197,12 @@ class OrderEvent extends ActionEvent
{
return $this->status;
}
/**
* @return null|string
*/
public function getDeliveryRef()
{
return $this->deliveryRef;
}
}

View File

@@ -302,6 +302,7 @@ final class TheliaEvents
const ORDER_BEFORE_PAYMENT = "action.order.beforePayment";
const ORDER_UPDATE_STATUS = "action.order.updateStatus";
const ORDER_UPDATE_DELIVERY_REF = "action.order.updateDeliveryRef";
const ORDER_PRODUCT_BEFORE_CREATE = "action.orderProduct.beforeCreate";
const ORDER_PRODUCT_AFTER_CREATE = "action.orderProduct.afterCreate";