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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user