Commit 2f994b0d by François C.

Display U instead of Unité(s) to make lines more readable

parent a2126725
Pipeline #2190 passed with stage
in 1 minute 27 seconds
......@@ -407,7 +407,18 @@ function initLists() {
+ display_barcode + '</span> </div>';
}
},
{data:"product_uom.1", title: "Unité vente", className:"dt-body-center", orderable: false},
{ data:"product_uom.1",
title: "Unité vente",
className:"dt-body-center",
orderable: false,
render: function (data) {
if (data.toLowerCase().indexOf('unit') === 0) {
return "U";
} else {
return data;
}
}
},
{
data:"product_qty",
title: "Qté",
......
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