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



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


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




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


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




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


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



Loading…
Cancel
Save