Bläddra i källkod

Implémentation OrginProduct

feature/export_comptable
Fab 4 år sedan
förälder
incheckning
03ccaebf51
2 ändrade filer med 4 tillägg och 5 borttagningar
  1. +1
    -2
      ShopBundle/Controller/Backend/ProductFamilyController.php
  2. +3
    -3
      ShopBundle/Model/ProductFamily.php

+ 1
- 2
ShopBundle/Controller/Backend/ProductFamilyController.php Visa fil

@@ -373,7 +373,6 @@ class ProductFamilyController extends AdminController


}
dump($sortableProductsField);
ksort($sortableProductsField);

$editForm->handleRequest($this->request);
@@ -464,7 +463,7 @@ dump($sortableProductsField);
'entity' => $entity,
'categories' => $categories,
'sortableProductsField' => array(),
'totalProductOrdered' => array()
'totalProductOrdered' => array('total'=>0)
];

return $this->executeDynamicMethod('render<EntityName>Template', ['new', $this->entity['templates']['new'], $parameters]);

+ 3
- 3
ShopBundle/Model/ProductFamily.php Visa fil

@@ -243,7 +243,7 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr

case self::BEHAVIOR_COUNT_STOCK_BY_PRODUCT :

foreach($this->getProducts() as $product) {
foreach($this->getProductsOnline() as $product) {
$availableQuantity += $product->getAvailableQuantityInherited() ;
}
break ;
@@ -753,7 +753,7 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr
{
if ($this->getActiveProducts()) {
$arrayCountProducts = [];
$products = $this->getProducts();
$products = $this->getProductsOnline();

foreach ($products as $product) {
$titleProduct = $product->getTitleInherited();
@@ -777,7 +777,7 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr
public function getProductsGroupByTitle()
{
$arrayProductsGroupByTitle = [];
$products = $this->getProducts();
$products = $this->getProductsOnline();

foreach ($products as $product) {
if($product->getStatus() == 1) {

Laddar…
Avbryt
Spara