add new metrics, graph metrics, prepare basket to storage
This commit is contained in:
@@ -22,4 +22,14 @@ class OfferStocks
|
||||
{
|
||||
return Offers::getField($id, 'stock_current');
|
||||
}
|
||||
|
||||
public static function getAlerts()
|
||||
{
|
||||
return Offer::active()->where('stock_current', '<', 15)->get();
|
||||
}
|
||||
|
||||
public static function countAlerts()
|
||||
{
|
||||
return Offer::active()->where('stock_current', '<', 15)->count();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user