use Lc\ShopBundle\Context\FilterMultipleMerchantsInterface; | use Lc\ShopBundle\Context\FilterMultipleMerchantsInterface; | ||||
use Lc\ShopBundle\Context\MerchantInterface; | use Lc\ShopBundle\Context\MerchantInterface; | ||||
use Lc\ShopBundle\Context\MerchantUtilsInterface; | use Lc\ShopBundle\Context\MerchantUtilsInterface; | ||||
use Lc\ShopBundle\Context\OrderUtilsInterface; | |||||
use Lc\ShopBundle\Context\StatusInterface; | use Lc\ShopBundle\Context\StatusInterface; | ||||
use Lc\ShopBundle\Context\TreeInterface; | use Lc\ShopBundle\Context\TreeInterface; | ||||
use Lc\ShopBundle\Form\AbstractEditPositionType; | use Lc\ShopBundle\Form\AbstractEditPositionType; | ||||
protected $utils; | protected $utils; | ||||
protected $merchantUtils ; | protected $merchantUtils ; | ||||
protected $mailjetTransport ; | protected $mailjetTransport ; | ||||
protected $orderUtils ; | |||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, Utils $utils, | public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, Utils $utils, | ||||
MerchantUtilsInterface $merchantUtils, MailjetTransport $mailjetTransport) | |||||
MerchantUtilsInterface $merchantUtils, MailjetTransport $mailjetTransport, OrderUtilsInterface $orderUtils) | |||||
{ | { | ||||
$this->security = $security; | $this->security = $security; | ||||
$this->userManager = $userManager; | $this->userManager = $userManager; | ||||
$this->utils = $utils; | $this->utils = $utils; | ||||
$this->merchantUtils = $merchantUtils ; | $this->merchantUtils = $merchantUtils ; | ||||
$this->mailjetTransport = $mailjetTransport ; | $this->mailjetTransport = $mailjetTransport ; | ||||
$this->orderUtils = $orderUtils ; | |||||
} | } | ||||
/** | /** |
/** | /** | ||||
* @ORM\MappedSuperclass() | * @ORM\MappedSuperclass() | ||||
*/ | */ | ||||
abstract class OrderShop implements FilterMerchantInterface | |||||
abstract class OrderShop extends AbstractEntity implements FilterMerchantInterface | |||||
{ | { | ||||
/** | /** |
return $query->getQuery()->getOneOrNullResult() ; | return $query->getQuery()->getOneOrNullResult() ; | ||||
} | } | ||||
public function findAllByDateStartEnd($dateStart, $dateEnd) | |||||
{ | |||||
$query = $this->findByMerchantQuery() | |||||
->andWhere('e.createdAt >= :dateStart') | |||||
->setParameter('dateStart', $dateStart) | |||||
->andWhere('e.createdAt <= :dateEnd') | |||||
->setParameter('dateEnd', $dateEnd) | |||||
; | |||||
return $query->getQuery()->getResult() ; | |||||
} | |||||
} | } |
{% endblock %} | {% endblock %} | ||||
{% block head_custom_stylesheets %} | {% block head_custom_stylesheets %} | ||||
<link rel="stylesheet" href="{{ asset('bundles/lcshop/css/backend/custom.css') }}"> | <link rel="stylesheet" href="{{ asset('bundles/lcshop/css/backend/custom.css') }}"> | ||||
{% for asset_css in easyadmin_config('design.assets.css') %} | |||||
<link rel="stylesheet" href="{{ asset(asset_css) }}"> | |||||
{% endfor %} | |||||
{% endblock head_custom_stylesheets %} | {% endblock head_custom_stylesheets %} | ||||
{# | {# | ||||
{% set favicon = easyadmin_config('design.assets.favicon') %} | {% set favicon = easyadmin_config('design.assets.favicon') %} | ||||
<link rel="icon" type="{{ favicon.mime_type }}" href="{{ asset(favicon.path) }}"/> | <link rel="icon" type="{{ favicon.mime_type }}" href="{{ asset(favicon.path) }}"/> | ||||
{% endblock %} | {% endblock %} | ||||
</head> | </head> | ||||
{% block body %} | {% block body %} |
protected $security; | protected $security; | ||||
protected $userUtils; | protected $userUtils; | ||||
protected $merchantUtils; | protected $merchantUtils; | ||||
private $orderShopRepo; | |||||
protected $orderShopRepo; | |||||
protected $priceUtils ; | protected $priceUtils ; | ||||
protected $productFamilyUtils ; | protected $productFamilyUtils ; | ||||