Browse Source

Correctif déduction stocks

feature/export_comptable
Guillaume 4 years ago
parent
commit
3a32298f93
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      ShopBundle/Services/Order/OrderUtilsStockTrait.php

+ 3
- 3
ShopBundle/Services/Order/OrderUtilsStockTrait.php View File

@@ -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);


Loading…
Cancel
Save