|
|
@@ -73,7 +73,7 @@ class AvailableProductsDatatable
|
|
|
products = AvailableProduct.activos.where(pointsale_id: params[:id]).activos
|
|
|
else
|
|
|
products_in_pointsale = @pointsale.products.activos_children.pluck(:id)
|
|
|
- products = Product.activos_children.where.not(id: products_in_pointsale)
|
|
|
+ products = Product.activos_children.where.not(id: products_in_pointsale).order('products.name')
|
|
|
end
|
|
|
|
|
|
products = products.page(page).per_page(per_page)
|