Browse Source

Processus de commande

feature/export_comptable
Fab 4 years ago
parent
commit
a9faa79bdb
6 changed files with 11 additions and 8 deletions
  1. +4
    -3
      ShopBundle/Services/OrderUtils.php
  2. +2
    -1
      ShopBundle/Services/Price/OrderProductPriceUtils.php
  3. +1
    -1
      ShopBundle/Services/Price/OrderShopPriceUtils.php
  4. +2
    -1
      ShopBundle/Services/Price/PriceUtilsTrait.php
  5. +1
    -1
      ShopBundle/Services/Price/ProductPriceUtils.php
  6. +1
    -1
      ShopBundle/Services/PriceUtils.phpOld

+ 4
- 3
ShopBundle/Services/OrderUtils.php View File

use Lc\ShopBundle\Form\Backend\Order\OrderReductionCreditType; use Lc\ShopBundle\Form\Backend\Order\OrderReductionCreditType;
use Lc\ShopBundle\Model\Product; use Lc\ShopBundle\Model\Product;
use Lc\ShopBundle\Model\ProductFamily; use Lc\ShopBundle\Model\ProductFamily;
use Lc\ShopBundle\Services\Price\OrderShopPriceUtils;
use Symfony\Component\HttpFoundation\Session\SessionInterface; use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\Security\Core\Security; use Symfony\Component\Security\Core\Security;


protected $orderShopRepo; protected $orderShopRepo;
protected $reductionCreditRepo ; protected $reductionCreditRepo ;
protected $orderReductionCreditRepo ; protected $orderReductionCreditRepo ;
protected $priceUtils;
protected $orderShopPriceUtils;
protected $productFamilyUtils; protected $productFamilyUtils;
protected $documentUtils; protected $documentUtils;
protected $session; protected $session;


public function __construct(EntityManagerInterface $em, Security $security, UserUtils $userUtils, public function __construct(EntityManagerInterface $em, Security $security, UserUtils $userUtils,
MerchantUtilsInterface $merchantUtils, PriceUtils $priceUtils, ProductFamilyUtilsInterface $productFamilyUtils,
MerchantUtilsInterface $merchantUtils, OrderShopPriceUtils $orderShopPriceUtils, ProductFamilyUtilsInterface $productFamilyUtils,
DocumentUtils $documentUtils, SessionInterface $session) DocumentUtils $documentUtils, SessionInterface $session)
{ {
$this->em = $em; $this->em = $em;
$this->orderShopRepo = $this->em->getRepository($this->em->getClassMetadata(OrderShopInterface::class)->getName()); $this->orderShopRepo = $this->em->getRepository($this->em->getClassMetadata(OrderShopInterface::class)->getName());
$this->reductionCreditRepo = $this->em->getRepository($this->em->getClassMetadata(ReductionCreditInterface::class)->getName()); $this->reductionCreditRepo = $this->em->getRepository($this->em->getClassMetadata(ReductionCreditInterface::class)->getName());
$this->orderReductionCreditRepo = $this->em->getRepository($this->em->getClassMetadata(OrderReductionCreditInterface::class)->getName()); $this->orderReductionCreditRepo = $this->em->getRepository($this->em->getClassMetadata(OrderReductionCreditInterface::class)->getName());
$this->priceUtils = $priceUtils;
$this->orderShopPriceUtils = $orderShopPriceUtils;
$this->productFamilyUtils = $productFamilyUtils; $this->productFamilyUtils = $productFamilyUtils;
$this->documentUtils = $documentUtils; $this->documentUtils = $documentUtils;
$this->session = $session; $this->session = $session;

+ 2
- 1
ShopBundle/Services/Price/OrderProductPriceUtils.php View File

<?php <?php


namespace Lc\ShopBundle\Price\Services;
namespace Lc\ShopBundle\Services\Price;



use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Collection;
use Lc\ShopBundle\Context\OrderProductInterface; use Lc\ShopBundle\Context\OrderProductInterface;

+ 1
- 1
ShopBundle/Services/Price/OrderShopPriceUtils.php View File

<?php <?php


namespace Lc\ShopBundle\Price\Services;
namespace Lc\ShopBundle\Services\Price;


use Lc\ShopBundle\Context\OrderReductionCreditInterface; use Lc\ShopBundle\Context\OrderReductionCreditInterface;
use Lc\ShopBundle\Context\OrderShopInterface; use Lc\ShopBundle\Context\OrderShopInterface;

+ 2
- 1
ShopBundle/Services/Price/PriceUtilsTrait.php View File

<?php <?php


namespace Lc\ShopBundle\Price\Services;
namespace Lc\ShopBundle\Services\Price;



use Lc\ShopBundle\Context\OrderProductInterface; use Lc\ShopBundle\Context\OrderProductInterface;
use Lc\ShopBundle\Context\OrderShopInterface; use Lc\ShopBundle\Context\OrderShopInterface;

+ 1
- 1
ShopBundle/Services/Price/ProductPriceUtils.php View File

<?php <?php


namespace Lc\ShopBundle\Price\Services;
namespace Lc\ShopBundle\Services\Price;


use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Collection;
use Lc\ShopBundle\Context\OrderProductInterface; use Lc\ShopBundle\Context\OrderProductInterface;

ShopBundle/Services/PriceUtils.php → ShopBundle/Services/PriceUtils.phpOld View File

use Lc\ShopBundle\Context\ProductPropertyInterface; use Lc\ShopBundle\Context\ProductPropertyInterface;
use Lc\ShopBundle\Context\ReductionCatalogInterface; use Lc\ShopBundle\Context\ReductionCatalogInterface;


class PriceUtils
class PriceUtilsOld
{ {


public function getPrice($entity) public function getPrice($entity)

Loading…
Cancel
Save