Explorar el Código

added description in stock by pointsale datatable

chemi ledon hace 6 años
padre
commit
0dbfe90855
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/datatables/stock_by_pointsale_datatable.rb

+ 1 - 0
app/datatables/stock_by_pointsale_datatable.rb

@@ -49,6 +49,7 @@ class StockByPointsaleDatatable
 
   def get_display_name(product)
     name = "<label style='margin-bottom:0px'><strong>#{product.name}</strong></label> <br>"
+    name += "#{product.description}<br>"
     name += "#{product.display_attributes} <br>" if product.display_attributes.present?
     name += "SKU: #{product.sku}"
     name += "<br> <i class='fa fa-barcode'></i>: #{product.barcode}" if product.barcode.present?