feat: product search
This commit is contained in:
@@ -120,7 +120,7 @@ class ProductService(BaseService):
|
||||
stmt.where(
|
||||
or_(
|
||||
Product.name.ilike(f'%{search_input}%'),
|
||||
Product.barcodes.any(ProductBarcode.barcode == search_input),
|
||||
Product.barcodes.any(ProductBarcode.barcode.ilike(f'%{search_input}%')),
|
||||
Product.article.ilike(f'%{search_input}%')
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user