Add categories for generic prices
This commit is contained in:
@@ -33,6 +33,15 @@ class PriceGenericValues
|
||||
return PriceGenericValue::find($id);
|
||||
}
|
||||
|
||||
public static function storePrices($generic_id, $values)
|
||||
{
|
||||
foreach ($values as $value)
|
||||
{
|
||||
$value['price_generic_id'] = $generic_id;
|
||||
self::store($value);
|
||||
}
|
||||
}
|
||||
|
||||
public static function store($data)
|
||||
{
|
||||
$id = isset($data['id']) ? $data['id'] : false;
|
||||
|
||||
Reference in New Issue
Block a user