|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $orderShop; |
|
|
return $orderShop; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function refreshOrderShops(array $orderShops): array |
|
|
|
|
|
{ |
|
|
|
|
|
foreach ($orderShops as $orderShop) { |
|
|
|
|
|
foreach ($orderShop->getOrderProducts() as $orderProduct) { |
|
|
|
|
|
$this->entityManager->refresh($orderProduct); |
|
|
|
|
|
} |
|
|
|
|
|
$this->entityManager->refresh($orderShop); |
|
|
|
|
|
} |
|
|
|
|
|
return $orderShops; |
|
|
|
|
|
} |
|
|
public function isReductionCreditAddedToOrder( |
|
|
public function isReductionCreditAddedToOrder( |
|
|
OrderShopInterface $orderShop, |
|
|
OrderShopInterface $orderShop, |
|
|
ReductionCreditInterface $reductionCredit |
|
|
ReductionCreditInterface $reductionCredit |