fixes
This commit is contained in:
@@ -41,6 +41,6 @@ class PriceListValue extends Model
|
||||
|
||||
public function scopeByQuantity($query, $quantity)
|
||||
{
|
||||
return $query->orderBy('quantity', 'desc')->where($this->table . '.quantity', '<', $quantity)->first();
|
||||
return $query->orderBy('quantity', 'desc')->where($this->table . '.quantity', '<=', $quantity)->first();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ class Shelve extends Model
|
||||
use HasRelationships;
|
||||
|
||||
protected $guarded = ['id'];
|
||||
protected $table = 'shop_categories';
|
||||
protected $table = 'categories';
|
||||
|
||||
public function articles()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user