Commit 5c5a7d59 by Yvon Kerdoncuff

in rec app, enable vendor ref sorting by moving it from tooltip to new column

parent 97e2cf85
Pipeline #4124 failed with stage
in 0 seconds
......@@ -527,16 +527,18 @@ function initLists() {
if ('barcode' in full) {
display_barcode = full.barcode;
}
let supplier_code = "Aucune";
if ('supplier_code' in full && full.supplier_code) {
supplier_code = full.supplier_code;
}
return '<div class="tooltip">' + data
+ ' <span class="tooltiptext tooltip-lg tt_twolines">Code barre : '
+ display_barcode
+ ' Réf. fournisseur : '
+ supplier_code + '</span> </div>';
+ ' <span class="tooltiptext tooltip-lg">Code barre : '
+ display_barcode + '</span> </div>';
}
},
{ data:"supplier_code",
title: "Réf. fournisseur",
className:"dt-body-center",
width: "10%",
render: function (data) {
return data === false ? "" : data;
}
},
{ data:"product_uom.1",
......@@ -612,17 +614,10 @@ function initLists() {
if ('barcode' in full) {
display_barcode = full.barcode;
}
let supplier_code = "Aucune";
if ('supplier_code' in full && full.supplier_code) {
supplier_code = full.supplier_code;
}
let display = '<div class="tooltip">' + data
+ ' <span class="tooltiptext tooltip-lg tt_twolines">Code barre : '
+ display_barcode
+ ' Réf. fournisseur : '
+ supplier_code + '</span> </div>';
+ ' <span class="tooltiptext tooltip-lg">Code barre : '
+ display_barcode + '</span> </div>';
if (full.supplier_shortage) {
display += ' <div class="tooltip"><i class="fas fa-info-circle"></i>'
......@@ -633,6 +628,14 @@ function initLists() {
return display;
}
},
{ data:"supplier_code",
title: "Réf. fournisseur",
className:"dt-body-center",
width: "10%",
render: function (data) {
return data === false ? "" : data;
}
},
{data:"product_uom.1", title: "Unité vente", className:"dt-body-center", orderable: false, width: "5%"},
{
data:"product_qty",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment