Explorar o código

added description in stock by pointsale datatable

chemi ledon %!s(int64=6) %!d(string=hai) anos
pai
achega
0dbfe90855
Modificáronse 1 ficheiros con 1 adicións e 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?