浏览代码

Processus de commande

feature/export_comptable
Fab 4 年前
父节点
当前提交
a9faa79bdb
共有 6 个文件被更改,包括 11 次插入8 次删除
  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 查看文件

@@ -22,6 +22,7 @@ use Lc\ShopBundle\Model\Document;
use Lc\ShopBundle\Form\Backend\Order\OrderReductionCreditType;
use Lc\ShopBundle\Model\Product;
use Lc\ShopBundle\Model\ProductFamily;
use Lc\ShopBundle\Services\Price\OrderShopPriceUtils;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\Security\Core\Security;

@@ -36,13 +37,13 @@ class OrderUtils
protected $orderShopRepo;
protected $reductionCreditRepo ;
protected $orderReductionCreditRepo ;
protected $priceUtils;
protected $orderShopPriceUtils;
protected $productFamilyUtils;
protected $documentUtils;
protected $session;

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)
{
$this->em = $em;
@@ -52,7 +53,7 @@ class OrderUtils
$this->orderShopRepo = $this->em->getRepository($this->em->getClassMetadata(OrderShopInterface::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->priceUtils = $priceUtils;
$this->orderShopPriceUtils = $orderShopPriceUtils;
$this->productFamilyUtils = $productFamilyUtils;
$this->documentUtils = $documentUtils;
$this->session = $session;

+ 2
- 1
ShopBundle/Services/Price/OrderProductPriceUtils.php 查看文件

@@ -1,6 +1,7 @@
<?php

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


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

+ 1
- 1
ShopBundle/Services/Price/OrderShopPriceUtils.php 查看文件

@@ -1,6 +1,6 @@
<?php

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

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

+ 2
- 1
ShopBundle/Services/Price/PriceUtilsTrait.php 查看文件

@@ -1,6 +1,7 @@
<?php

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


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

+ 1
- 1
ShopBundle/Services/Price/ProductPriceUtils.php 查看文件

@@ -1,6 +1,6 @@
<?php

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

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

ShopBundle/Services/PriceUtils.php → ShopBundle/Services/PriceUtils.phpOld 查看文件

@@ -10,7 +10,7 @@ use Lc\ShopBundle\Context\ProductInterface;
use Lc\ShopBundle\Context\ProductPropertyInterface;
use Lc\ShopBundle\Context\ReductionCatalogInterface;

class PriceUtils
class PriceUtilsOld
{

public function getPrice($entity)

正在加载...
取消
保存