[WIP] Refactor generic & normal price
This commit is contained in:
@@ -38,6 +38,7 @@ class Articles
|
||||
public static function getMeta(&$data = [])
|
||||
{
|
||||
$data['categories_options'] = Categories::getOptions();
|
||||
$data['price_generics'] = PriceGenericCategories::getOptionsWithChildrens();
|
||||
$data['families_options'] = ArticleFamilies::getOptions();
|
||||
$data['taxes_options'] = Taxes::getOptions();
|
||||
$data['attribute_families_options'] = PriceFamilies::getOptions();
|
||||
@@ -64,7 +65,7 @@ class Articles
|
||||
|
||||
public static function getPricesByArticle($article)
|
||||
{
|
||||
return Prices::getByArticle($article->id)->toArray();
|
||||
return Prices::getByArticle($article->id);
|
||||
}
|
||||
|
||||
public static function get($id)
|
||||
|
||||
Reference in New Issue
Block a user