Ver código fonte

Merge branch 'develop'

master
Guillaume 4 anos atrás
pai
commit
df2dbb86f0
1 arquivos alterados com 3 adições e 3 exclusões
  1. +3
    -3
      ShopBundle/Services/Order/OrderUtilsStockTrait.php

+ 3
- 3
ShopBundle/Services/Order/OrderUtilsStockTrait.php Ver arquivo

@@ -23,7 +23,7 @@ trait OrderUtilsStockTrait

$productFamily = $orderProduct->getProduct()->getProductFamily() ;
$productFamily->setAvailableQuantity($newAvailability);
$productFamily->setUpdatedBy($productFamily->getCreatedBy()) ;
$productFamily->setUpdatedBy($orderShop->getUser()) ;

$this->em->persist($productFamily);

@@ -35,7 +35,7 @@ trait OrderUtilsStockTrait

$productFamily = $orderProduct->getProduct()->getProductFamily() ;
$productFamily->setAvailableQuantity($newAvailability);
$productFamily->setUpdatedBy($productFamily->getCreatedBy()) ;
$productFamily->setUpdatedBy($orderShop->getUser()) ;

$this->em->persist($productFamily);

@@ -46,7 +46,7 @@ trait OrderUtilsStockTrait

$product = $orderProduct->getProduct() ;
$product->setAvailableQuantity($newAvailability);
$product->setUpdatedBy($product->getCreatedBy()) ;
$product->setUpdatedBy($orderShop->getUser()) ;

$this->em->persist($product);


Carregando…
Cancelar
Salvar