瀏覽代碼

Merge branch 'develop'

master
Guillaume 4 年之前
父節點
當前提交
df2dbb86f0
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      ShopBundle/Services/Order/OrderUtilsStockTrait.php

+ 3
- 3
ShopBundle/Services/Order/OrderUtilsStockTrait.php 查看文件

@@ -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…
取消
儲存