Fix on preview mode
This commit is contained in:
@@ -16,6 +16,11 @@ class Tariffs
|
||||
return $export;
|
||||
}
|
||||
|
||||
public static function getPrices($id)
|
||||
{
|
||||
return Tariff::with(['price_lists.price_list_values','price_lists.sale_channel'])->find($id);
|
||||
}
|
||||
|
||||
public static function getOptions()
|
||||
{
|
||||
return Tariff::orderBy('name', 'asc')->get()->pluck('name', 'id')->toArray();
|
||||
|
||||
Reference in New Issue
Block a user