Bläddra i källkod

Finalisation app purcahseOrder

packProduct
Fabien Normand 3 år sedan
förälder
incheckning
de84ab05d4
2 ändrade filer med 10 tillägg och 1 borttagningar
  1. +9
    -0
      Controller/Product/ProductFamilyAdminController.php
  2. +1
    -1
      Repository/Order/OrderShopStore.php

+ 9
- 0
Controller/Product/ProductFamilyAdminController.php Visa fil



namespace Lc\CaracoleBundle\Controller\Product; namespace Lc\CaracoleBundle\Controller\Product;


use EasyCorp\Bundle\EasyAdminBundle\Config\Crud;
use EasyCorp\Bundle\EasyAdminBundle\Config\KeyValueStore; use EasyCorp\Bundle\EasyAdminBundle\Config\KeyValueStore;
use EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext; use EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext;
use Lc\CaracoleBundle\Container\Order\OrderShopContainer; use Lc\CaracoleBundle\Container\Order\OrderShopContainer;


abstract class ProductFamilyAdminController extends AbstractAdminController abstract class ProductFamilyAdminController extends AbstractAdminController
{ {
public function configureCrud(Crud $crud): Crud
{
$crud = parent::configureCrud($crud);

$crud->setDefaultSort(['id' => 'DESC']);

return $crud;
}


public function getRepositoryQuery() :RepositoryQueryInterface public function getRepositoryQuery() :RepositoryQueryInterface
{ {

+ 1
- 1
Repository/Order/OrderShopStore.php Visa fil

ReductionCartInterface $reductionCart, ReductionCartInterface $reductionCart,
$query = null $query = null
): int { ): int {
$query = $this->createDefaultQuery($query);
$query = $this->createQuery($query);


$query $query
->selectCount() ->selectCount()

Laddar…
Avbryt
Spara