Browse Source

Merge branch 'develop' of https://forge.laclic.fr/Laclic/CaracoleBundle into develop

packProduct
Guillaume 2 years ago
parent
commit
acd29b9be3
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      Solver/Order/OrderShopSolver.php

+ 10
- 1
Solver/Order/OrderShopSolver.php View File



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

Loading…
Cancel
Save