|
|
|
|
|
|
|
|
|| $force) { |
|
|
|| $force) { |
|
|
|
|
|
|
|
|
$this->changeOrderStatus($order, OrderStatus::ALIAS_DELETED, $user); |
|
|
$this->changeOrderStatus($order, OrderStatus::ALIAS_DELETED, $user); |
|
|
|
|
|
|
|
|
|
|
|
$return = true; |
|
|
} |
|
|
} |
|
|
// cancel |
|
|
// cancel |
|
|
elseif ($this->producerSolver->getConfig('option_behavior_cancel_order') == Producer::BEHAVIOR_DELETE_ORDER_STATUS) { |
|
|
elseif ($this->producerSolver->getConfig('option_behavior_cancel_order') == Producer::BEHAVIOR_DELETE_ORDER_STATUS) { |
|
|
$this->changeOrderStatus($order, OrderStatus::ALIAS_CANCELED, $user); |
|
|
$this->changeOrderStatus($order, OrderStatus::ALIAS_CANCELED, $user); |
|
|
$this->orderBuilder->update($order); |
|
|
|
|
|
|
|
|
$return = true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if($return) { |
|
|
if($return) { |