|
|
@@ -25,6 +25,7 @@ use Lc\CaracoleBundle\Model\Order\OrderProductInterface; |
|
|
|
use Lc\CaracoleBundle\Model\Order\OrderReductionCartInterface; |
|
|
|
use Lc\CaracoleBundle\Model\Order\OrderReductionCreditInterface; |
|
|
|
use Lc\CaracoleBundle\Model\Order\OrderShopInterface; |
|
|
|
use Lc\CaracoleBundle\Model\Order\OrderStatusHistoryModel; |
|
|
|
use Lc\CaracoleBundle\Model\Order\OrderStatusInterface; |
|
|
|
use Lc\CaracoleBundle\Model\Order\OrderStatusModel; |
|
|
|
use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface; |
|
|
@@ -216,7 +217,8 @@ class OrderShopBuilder |
|
|
|
$orderShop->setOrderStatusProtected($orderStatus); |
|
|
|
|
|
|
|
$orderStatusHistoryFactory = new OrderStatusHistoryFactory(); |
|
|
|
$orderStatusHistory = $orderStatusHistoryFactory->create($orderShop, $orderStatus); |
|
|
|
$origin = $forceByAdmin ? OrderStatusHistoryModel::ORIGIN_ADMIN : OrderStatusHistoryModel::ORIGIN_USER; |
|
|
|
$orderStatusHistory = $orderStatusHistoryFactory->create($orderShop, $orderStatus, $origin); |
|
|
|
|
|
|
|
$orderShop->addOrderStatusHistory($orderStatusHistory); |
|
|
|
|