Преглед изворни кода

Implémentation OrginProduct

feature/export_comptable
Fab пре 4 година
родитељ
комит
03ccaebf51
2 измењених фајлова са 4 додато и 5 уклоњено
  1. +1
    -2
      ShopBundle/Controller/Backend/ProductFamilyController.php
  2. +3
    -3
      ShopBundle/Model/ProductFamily.php

+ 1
- 2
ShopBundle/Controller/Backend/ProductFamilyController.php Прегледај датотеку

@@ -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 Прегледај датотеку

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

Loading…
Откажи
Сачувај